Fix cos computation for multiple precision fallback (bz #20357)
[platform/upstream/glibc.git] / ChangeLog
1 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2             Matt Clay  <mclay@lycos.com>
3
4         [BZ #20357]
5         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
6         to call __mpsin/__mpcos and to negate values.
7         * math/auto-libm-test-in: Add test.
8         * math/auto-libm-test-out: Regenerate.
9
10 2016-07-18  Zack Weinberg  <zackw@panix.com>
11
12         * grp/Makefile: Don't install the internal header grp-merge.h.
13
14 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15
16         * sysdeps/aarch64/libm-test-ulps: Regenerated.
17
18 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19
20         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
21
22 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23
24         [BZ #15368]
25         * sysdeps/unix/sysv/linux/nptl-signals.h
26         (__nptl_clear_internal_signals): New function.
27         (__libc_signal_block_all): Likewise.
28         (__libc_signal_block_app): Likewise.
29         (__libc_signal_restore_set): Likewise.
30         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
31         implementation.
32         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
33         the cached pid/tid value in pthread structure.
34
35 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
36
37         [BZ #20347]
38         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
39
40 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
41
42         [BZ #20348]
43         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
44         preadv64, pwrite64 and pwritev64.
45
46 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
47
48         [BZ #20350]
49         * posix/tst-preadwrite.c: Renamed to ...
50         * posix/tst-preadwrite-common.c: This.
51         (PREAD): Removed.
52         (PWRITE): Likewise.
53         (STRINGIFY): Likewise.
54         (STRINGIFY2): Likewise.
55         (do_prepare): Make it static and remove function arguments.
56         (do_test): Likewise.
57         (PREPARE): Updated.
58         (TEST_FUNCTION): New.
59         (name): Make it static.
60         (fd): Likewise.
61         (do_prepare): Use create_temp_file.
62         (do_test): Renamed to ...
63         (do_test_with_offset): This.  Make it static and accept offset.
64         Properly check return value of PWRITE and PREAD.  Return bytes
65         read.  Don't close fd nor unlink name.
66         * posix/tst-preadwrite.c: Rewrite.
67         * posix/tst-preadwrite64.c: Likewise.
68
69 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
70
71         [BZ #20309]
72         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
73         -mtls-dialect=gnu2 works.
74         * configure: Regenerated.
75         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
76         (tests): Add tst-gnu2-tls1.
77         (modules-names): Add tst-gnu2-tls1mod.
78         ($(objpfx)tst-gnu2-tls1): New.
79         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
80         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
81         * elf/tst-gnu2-tls1.c: New file.
82         * elf/tst-gnu2-tls1mod.c: Likewise.
83         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
84         bytes for push in the PLT entry to align the stack.
85
86 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
87
88         [BZ #20349]
89         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
90
91 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
92
93         [BZ #18707]
94         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
95         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
96
97 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
98
99         * sysdeps/unix/sysv/linux/sysdep.h
100         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
101         guards.
102         * misc/tst-preadvwritev-common.c: New file.
103         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
104         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
105         a check for files larger than 2GB.
106
107         * sysdeps/unix/sysv/linux/mips/kernel-features.h
108         (__ASSUME_OFF_DIFF_OFF64): Remove define.
109         * sysdeps/unix/sysv/linux/pread.c
110         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
111         __OFF_T_MATCHES_OFF64_T.
112         * sysdeps/unix/sysv/linux/pread64.c
113         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
114         * sysdeps/unix/sysv/linux/preadv.c
115         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
116         * sysdeps/unix/sysv/linux/preadv64.c
117         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
118         * sysdeps/unix/sysv/linux/pwrite.c
119         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
120         * sysdeps/unix/sysv/linux/pwrite64.c
121         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
122         * sysdeps/unix/sysv/linux/pwritev.c
123         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
124         * sysdeps/unix/sysv/linux/pwritev64.c
125         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
126
127 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
128
129         * sysdeps/unix/sysv/linux/tile/kernel-features.h
130         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
131
132 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
133
134         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
135
136 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
137
138         [BZ #20240]
139         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
140         (CFLAGS-s_modf-ppc32.c): New variable.
141         (CFLAGS-s_modff-ppc32.c): Likewise.
142         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
143         (CFLAGS-s_modf-ppc64.c): Likewise.
144         (CFLAGS-s_modff-ppc64.c): Likewise.
145
146 2016-07-07  Andreas Schwab  <schwab@suse.de>
147
148         [BZ #20263]
149         * nptl/tst-robust10.c: New test.
150         * nptl/Makefile (tests): Add tst-robust10.
151
152 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
153
154         [BZ #20263]
155         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
156
157 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
158
159         * sysdeps/s390/linkmap.h (struct link_map_machine):
160         Remove member gotplt and add member jmprel.
161         * sysdeps/s390/s390-32/dl-machine.h
162         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
163         instead of gotplt with &got[3].
164         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
165         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
166
167 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
168
169         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
170
171 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
172
173         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
174         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
175         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
176         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
177         * libio/vtables.c (_IO_vtable_check)
178         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
179         * libio/libioP.h (IO_set_accept_foreign_vtables)
180         [!PTR_MANGLE]: Do not call PTR_MANGLE.
181
182 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
183
184         [BZ #20314]
185         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
186         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
187         $(common-objpfx)cmath.
188         ($(common-objpfx)cstdlib): New target.
189         ($(common-objpfx)cmath): Likewise.
190
191 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
192
193         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
194
195 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
196
197         [BZ #20327]
198         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
199         are not part of the string.
200
201 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
202
203         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
204         * nptl/tst-cancel4-common.h (fifoname): New variable.
205         (fifofd): Likewise.
206         (cl_fifo): New function.
207         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
208         SIGINT.
209         (tf_open): Add early cancel test.
210
211 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
212
213         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
214
215 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
216
217         * sysdeps/generic/ldsodefs.h
218         (dl_symbol_visibility_binds_local_p): New inline function.
219         * elf/dl-addr.c (determine_info): Treat hidden and internal
220         symbols as local.
221         * elf/dl-lookup.c (do_lookup_x): Likewise.
222         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
223
224 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
225
226         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
227         invalid exception for a sNaN input.
228         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
229         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
230         (__nearbyint_vis3): Likewise
231         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
232         (__nearbyintf_vis3): Likewise
233         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
234         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
235         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
236         Likewise.
237         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
238         Likewise.
239
240 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
241
242         [BZ #20139]
243         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
244         (HAVE_AVX512DQ_ASM_SUPPORT): This.
245         * sysdeps/x86_64/configure.ac: Require assembler from binutils
246         2.24 or above.
247         (HAVE_AVX512_ASM_SUPPORT): Removed.
248         (HAVE_AVX512DQ_ASM_SUPPORT): New.
249         * sysdeps/x86_64/configure: Regenerated.
250         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
251         check unconditional.
252         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
253         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
254         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
255         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
256         Likewise.
257         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
258         Likewise.
259         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
260         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
261         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
262         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
263         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
264         Likewise.
265         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
266         Likewise.
267         * sysdeps/x86_64/multiarch/memset.S: Likewise.
268         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
269         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
270         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
271         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
272         Likewise.
273         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
274         Likewise.
275         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
276         Likewise.
277         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
278         Likewise.
279         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
280         Likewise.
281         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
282         Likewise.
283         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
284         Likewise.
285         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
286         Likewise.
287         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
288         Likewise.
289         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
290         Likewise.
291         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
292         Likewise.
293
294 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
295
296         [BZ #20024]
297         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
298         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
299         of this implementation of vector function.
300         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
301         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
302         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
303         Likewise.
304         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
305         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
306         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
307         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
308         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
309         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
310         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
311         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
312         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
313         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
314         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
315         for testing vector sincos with fixed ABI.
316         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
317         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
318         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
319         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
320         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
321         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
322         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
323         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
324         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
325         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
326         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
327         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
328         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
329         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
330         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
331         * sysdeps/x86_64/fpu/Makefile: Added new tests.
332
333 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
334
335         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
336
337 2016-06-30  Anton Blanchard  <anton@samba.org>
338
339         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
340         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
341         s_sinf-ppc64.
342         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
343         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
344         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
345         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
346
347 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
348
349         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
350         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
351         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
352         e_expf-ppc64.
353         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
354         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
355         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
356         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
357
358 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
359
360         [BZ #20277]
361         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
362         when SHARED is defined.
363
364 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
365
366         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
367         (index_arch_Prefer_ERMS): Likewise.
368         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
369         __memcpy_erms for Prefer_ERMS.
370         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
371         (__memmove_erms): Enabled for libc.a.
372         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
373         __memmove_erms or Prefer_ERMS.
374         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
375         __mempcpy_erms for Prefer_ERMS.
376         * sysdeps/x86_64/multiarch/memset.S (memset): Return
377         __memset_erms for Prefer_ERMS.
378
379 2016-06-30  Andreas Schwab  <schwab@suse.de>
380
381         [BZ #20262]
382         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
383         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
384         of memory.
385
386 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
387
388         [BZ #18645]
389         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
390         (test-extras): Add tst-cleanupx4aux.
391         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
392         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
393         tst-cleanupx4aux.o.
394         * nptl/tst-cleanupx4aux.c: New file.
395
396 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
397
398         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
399
400 2016-06-29  Andreas Schwab  <schwab@suse.de>
401
402         [BZ #20260]
403         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
404         address before the beginning of the string as an integer to avoid
405         array-bounds warning.
406
407 2016-06-28  Richard Henderson  <rth@redhat.com>
408
409         * elf/elf.h (EM_BPF): New.
410         (EM_NUM): Update.
411         (R_BPF_NONE, R_BPF_MAP_FD): New.
412
413         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
414         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
415         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
416         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
417         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
418         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
419         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
420         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
421         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
422         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
423         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
424         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
425         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
426         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
427         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
428         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
429         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
430         (EM_NUM): Update.
431
432 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
433
434         [BZ #18960]
435         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
436         Set _nl_current_LC_CATEGORY_used to two instead of one.
437
438 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
439
440         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
441         (do_test): ... this.
442         (TEST_FUNCTION): New macro.
443          Include test-skeleton.c.
444         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
445         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
446
447 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
448
449         [BZ #15479]
450         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
451         floating-point environment rather than just control word.
452         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
453         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
454         floating-point environment, with "invalid" exceptions merged in,
455         rather than just control word.
456         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
457         * math/libm-test.inc (trunc_test_data): Do not allow spurious
458         "inexact" exceptions.
459
460         [BZ #15479]
461         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
462         floating-point environment rather than just control word.
463         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
464         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
465         floating-point environment, with "invalid" exceptions merged in,
466         rather than just control word.
467         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
468         * math/libm-test.inc (floor_test_data): Do not allow spurious
469         "inexact" exceptions.
470
471         [BZ #15479]
472         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
473         floating-point environment rather than just control word.
474         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
475         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
476         floating-point environment, with "invalid" exceptions merged in,
477         rather than just control word.
478         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
479         * math/libm-test.inc (ceil_test_data): Do not allow spurious
480         "inexact" exceptions.
481
482 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
483
484         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
485         __libc_vfork.
486         (__vfork) [IS_IN (libc)]: Remove alias.
487         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
488         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
489         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
490
491 2016-06-24  Torvald Riegel  <triegel@redhat.com>
492
493         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
494         of atomic_compare_and_exchange_bool_rel.
495         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
496         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
497         catomic_compare_and_exchange_bool_rel): Remove.
498         * sysdeps/aarch64/atomic-machine.h
499         (atomic_compare_and_exchange_bool_rel): Likewise.
500         * sysdeps/alpha/atomic-machine.h
501         (atomic_compare_and_exchange_bool_rel): Likewise.
502         * sysdeps/arm/atomic-machine.h
503         (atomic_compare_and_exchange_bool_rel): Likewise.
504         * sysdeps/mips/atomic-machine.h
505         (atomic_compare_and_exchange_bool_rel): Likewise.
506         * sysdeps/microblaze/atomic-machine.h
507         ( __arch_compare_and_exchange_bool_8_rel,
508         __arch_compare_and_exchange_bool_16_rel): Likewise.
509         * sysdeps/powerpc/atomic-machine.h
510         ( __arch_compare_and_exchange_bool_8_rel,
511         __arch_compare_and_exchange_bool_16_rel): Likewise.
512         * sysdeps/powerpc/powerpc32/atomic-machine.h
513         ( __arch_compare_and_exchange_bool_32_rel,
514         __arch_compare_and_exchange_bool_64_rel): Likewise.
515         * sysdeps/powerpc/powerpc64/atomic-machine.h
516         ( __arch_compare_and_exchange_bool_32_rel,
517         __arch_compare_and_exchange_bool_64_rel): Likewise.
518         * sysdeps/tile/atomic-machine.h
519         (atomic_compare_and_exchange_bool_rel): Likewise.
520
521 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
522
523         [BZ #20296]
524         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
525         when either argument is a NaN.
526         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
527         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
528
529         * math/libm-test.inc (snan_value_ld): New macro.
530         (isgreater_test_data): Add sNaN tests.
531         (isgreaterequal_test_data): Likewise.
532         (isless_test_data): Likewise.
533         (islessequal_test_data): Likewise.
534         (islessgreater_test_data): Likewise.
535         (isunordered_test_data): Likewise.
536         (nextafter_test_data): Likewise.
537         (nexttoward_test_data): Likewise.
538         (remainder_test_data): Likewise.
539         (remquo_test_data): Likewise.
540         (significand_test_data): Likewise.
541         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
542
543 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
544
545         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
546         environment macros are defined.
547         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
548
549 2016-06-23  Florian Weimer  <fweimer@redhat.com>
550
551         [BZ #20191]
552         Implement vtable verification in libio.
553         * Makerules (shlib.lds): Place __libc_IO_vtables section.
554         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
555         * debug/vdprintf_chk.c (__vdprintf_chk): Call
556         _IO_new_file_init_internal instead of _IO_file_init.
557         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
558         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
559         * libio/Makefile (routines): Add vtables.
560         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
561         (_IO_init): Remove, not for internal use.
562         (_IO_init_internal): Declare, internal replacement for _IO_init.
563         (_IO_file_init): Remove, not for internal use.
564         (_IO_new_file_init): Remove, not for internal use.
565         (_IO_new_file_init_internal): Declare, internal replacement for
566         _IO_new_file_init.
567         (_IO_old_file_init): Remove, not for internal use.
568         (_IO_old_file_init_internal): Declare, internal replacement for
569         _IO_old_file_init.
570         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
571         internal use.
572         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
573         Declare.
574         (libio_vtable): New macro.
575         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
576         functions.
577         * libio/fileops.c (_IO_new_file_init_internal): Rename from
578         _IO_new_file_init.
579         (_IO_new_file_init): New externally visible wrapper which disables
580         vtable verification.
581         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
582         Define as vtables.
583         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
584         (_IO_init): New externally visible wrapper which disables
585         vtable verification.
586         * libio/iofdopen.c (_IO_new_fdopen): Call
587         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
588         comment.
589         * libio/iofopen.c (__fopen_internal): Call
590         _IO_new_file_init_internal instead of _IO_file_init.
591         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
592         Define as vtables.
593         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
594         _IO_new_file_init_internal instead of _IO_file_init.
595         * libio/iopopen.c (_IO_new_popen): Likewise.
596         (_IO_proc_jumps): Define as vtable.
597         * libio/iovdprintf.c (_IO_vdprintf): Call
598         _IO_new_file_init_internal instead of _IO_file_init.
599         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
600         (__open_memstream): Call _IO_init_internal instead of _IO_init.
601         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
602         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
603         _IO_old_file_init.
604         (_IO_old_file_init): New externally visible wrapper which disables
605         vtable verification.
606         (_IO_old_file_jumps): Define as vtable.
607         * libio/oldiofdopen.c (_IO_old_fdopen): Call
608         _IO_old_file_init_internal instead of _IO_old_file_init.
609         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
610         * libio/oldiopopen.c (_IO_old_popen): Likewise.
611         (_IO_old_proc_jumps): Define as vtable.
612         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
613         Define as vtables.
614         * libio/vtables.c: New file.
615         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
616         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
617         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
618         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
619         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
620         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
621         instead of _IO_init.
622
623 2016-06-23  Florian Weimer  <fweimer@redhat.com>
624
625         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
626
627 2016-06-23  Florian Weimer  <fweimer@redhat.com>
628
629         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
630         potentially unused.
631
632 2016-06-22  Florian Weimer  <fweimer@redhat.com>
633
634         * test-skeleton.c (write_message): New function.
635         * malloc/tst-mallocfork2.c (write_message): Remove.
636         * debug/tst-longjmp_chk2.c (write_indented): New function.
637         (write_message): Remove.
638         (stackoverflow_handler): Call write_indented.
639
640 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
641
642         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
643         "inexact" exceptions after fnstenv.
644         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
645         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
646         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
647
648 2015-06-22  Zack Weinberg  <zackw@panix.com>
649
650         * sysdeps/generic/bits/hwcap.h: Moved to ...
651         * bits/hwcap.h: Here.
652
653 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
654
655         * sysdeps/aarch64/memcpy.S (memcpy):
656         Further tuning for performance.
657
658 2016-06-21  Florian Weimer  <fweimer@redhat.com>
659
660         [BZ #20284]
661         * malloc/arena.c (reused_arena): Do not return NULL if we start
662         out with a non-corrupted arena.
663
664 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
665
666         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
667         * misc/tst-preadvwritev.c: New file.
668         * misc/tst-preadvwritev64.c: Likewise.
669         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
670         usage.
671         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
672         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
673         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
674         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
675
676 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
677
678         [BZ #19654]
679         * sysdeps/x86_64/fpu/Makefile: Added new tests.
680         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
681         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
682         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
683         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
684         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
685         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
686         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
687         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
688         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
689         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
690         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
691         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
692         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
693         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
694         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
695         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
696         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
697         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
698         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
699         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
700         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
701         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
702         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
703         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
704         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
705
706 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
707
708         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
709         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
710
711 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
712
713         * sysdeps/aarch64/memcpy.S (memcpy):
714         Rewrite of optimized memcpy and memmove.
715         * sysdeps/aarch64/memmove.S (memmove): Remove
716         memmove code (merged into memcpy.S).
717
718 2016-06-20  Florian Weimer  <fweimer@redhat.com>
719
720         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
721         * sysdeps/generic/dl-dtv.h: New file.
722         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
723         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
724         (dtv_t): Remove.
725         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
726         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
727         (dtv_t): Remove.
728         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
729         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
730         (dtv_t): Remove.
731         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
732         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
733         (dtv_t): Remove.
734         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
735         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
736         (dtv_t): Remove.
737         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
738         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
739         (dtv_t): Remove.
740         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
741         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
742         (dtv_t): Remove.
743         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
744         (dtv_t): Remove.
745         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
746         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
747         (dtv_t): Remove.
748         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
749         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
750         (dtv_t): Remove.
751         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
752         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
753         (dtv_t): Remove.
754         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
755         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
756         (dtv_t): Remove.
757         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
758         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
759         (dtv_t): Remove.
760         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
761         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
762         (dtv_t): Remove.
763         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
764         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
765         (dtv_t): Remove.
766         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
767         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
768         (dtv_t): Remove.
769
770 2016-06-20  Florian Weimer  <fweimer@redhat.com>
771
772         Revert symbol poisoning of  __malloc_initialize_hook.
773         * include/stdc-predef.h (__malloc_initialize_hook): Remove
774         poisoning.
775         * malloc/Makefile: Remove un-poisoning.
776         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
777         instead of old__malloc_initialize_hook.
778         * malloc/malloc-hooks.h: Likewise.
779         * malloc/malloc.c: Likewise.
780         * malloc/mcheck-init.c: Likewise.
781
782 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
783
784         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
785
786 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
787
788         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
789         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
790         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
791         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
792
793 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
794
795         * NEWS: Mention addition of nextup and nextdown.
796         * manual/arith.texi: Document nextup and nextdown.
797         * manual/libm-err-tab.pl: Add nextup and nextdown.
798         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
799         * math/Versions (libm): Add GLIBC_2.24.
800         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
801         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
802         Add new test.
803         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
804         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
805         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
806         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
807         (nextup_test_data): Likewise.
808         (nextdown_test_data): Likewise.
809         * math/s_nextdown.c: New file.
810         * math/s_nextdownf.c: Likewise.
811         * math/s_nextdownl.c: Likewise.
812         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
813         F(nextup): New function.
814         F(nextdown): Likewise.
815         * math/tgmath.h: Add nextup and nextdown.
816         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
817         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
818         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
819         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
820         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
821         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
822         Add nextup and nextdown.
823         (CFLAGS-nldbl-nextup.c): New variable.
824         (CFLAGS-nldbl-nextdown.c): Likewise.
825         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
826         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
827         * sysdeps/nacl/libm.abilist: Update.
828         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
829         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
830         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
831         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
832         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
833         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
834         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
835         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
836         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
837         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
838         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
839         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
842         Likewise.
843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
845         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
846         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
847         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
848         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
849         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
850         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
851         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
852         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
853         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
854         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
855         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
856
857 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
858
859         * manual/pattern.texi: Fix typos & grammar errors.
860
861 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
862
863         * manual/search.texi: Fix typos & grammar errors.
864
865 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
866
867         * manual/message.texi: Fix typos & grammar errors.
868
869 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
870
871         * manual/contrib.texi: Fix spelling typos.
872         * manual/crypt.texi: Likewise.
873         * manual/filesys.texi: Likewise.
874         * manual/locale.texi: Likewise.
875         * manual/message.texi: Likewise.
876         * manual/nss.texi: Likewise.
877         * manual/string.texi: Likewise.
878
879 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
880
881         * manual/locale.texi: Fix typos & grammar errors.
882
883 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
884
885         * manual/charset.texi: Fix typos & grammar errors.
886
887 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
888
889         * manual/string.texi: Fix typos.
890
891 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
892
893         * manual/ctype.texi: Fix typos.
894
895 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
896
897         * manual/memory.texi: Fix various typos & grammar errors.
898
899 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
900
901         [BZ #20255]
902         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
903         * math/libm-test.inc (fdim_test_data): Add another test.
904
905         [BZ #6796]
906         [BZ #20255]
907         [BZ #20256]
908         * math/s_fdim.c: Include <math_private.h>.
909         (__fdim): Use math_narrow_eval on result.
910         * math/s_fdimf.c: Include <math_private.h>.
911         (__fdimf): Use math_narrow_eval on result.
912         * sysdeps/i386/fpu/s_fdim.S: Remove file.
913         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
914         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
915         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
916         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
917         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
918         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
919         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
920         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
921         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
922         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
923         * math/libm-test.inc (fdim_test_data): Expect errno setting on
924         overflow.  Add sNaN tests.
925
926         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
927         fpclassify.
928         * math/s_fdimf.c (__fdimf): Likewise.
929         * math/s_fdiml.c (__fdiml): Likewise.
930
931 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
932
933         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
934         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
935         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
936         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
937         ifunc'ed strcasecmp/strncasecmp.
938         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
939         [EALIGN]: Removed.
940         [END]: Likewise.
941         [__strcasecmp]: Define instead of the above to control symbol name.
942         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
943         for __strcasecmp_power8.
944         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
945         for __strncasecmp_power8.
946         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
947         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
948         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
949         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
950         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
951         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
952
953 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
954
955         [BZ #20252]
956         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
957         arguments when second argument is a NaN.
958         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
959         qNaN tests.
960
961         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
962         (conj_test_data): Likewise.
963         (copysign_test_data): Likewise.
964         (creal_test_data): Likewise.
965         (fma_test_data): Likewise.
966         (fmod_test_data): Likewise.
967
968         [BZ #20250]
969         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
970         itself.
971         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
972         zero input to itself.
973         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
974         Likewise.
975         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
976         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
977         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
978         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
979         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
980
981 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
982
983         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
984         * nptl/tst-cancel4-common.c: New file.
985         * nptl/tst-cancel4-common.h: Likewise.
986         * nptl/tst-cancel4.c: Move common definitions to
987         tst-cancel4-common.{c,h} file.
988         * nptl/tst-cancel4_1.c: New test.
989         * nptl/tst-cancel4_2.c: New test.
990
991 2016-06-13  Florian Weimer  <fweimer@redhat.com>
992
993         [BZ #20248]
994         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
995         (write_message): New function.
996         (stackoverflow_handler): Call it instead of printf, to avoid
997         excessive stack usage by printf.
998         (do_test): Restore SIGSEGV, SIGBUS default handlers.
999
1000 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1001
1002         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
1003         (prio_inherit_missing): Remove define.
1004         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1005         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1006         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
1007         Likewise.
1008         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1009         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1010         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1011         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1012         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1013         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1014
1015 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
1016
1017         [BZ #19670]
1018         [BZ #19672]
1019
1020         * io/test-lfs.c (do_prepare): Use xmalloc.
1021         * io/tst-fcntl.c (do_prepare): Likewise.
1022         * libio/tst-fopenloc.c (do_bz17916): Likewise.
1023         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
1024         * login/tst-utmp.c (do_prepare): Likewise.
1025         * posix/tst-exec.c (do_prepare): Likewise.
1026         * posix/tst-pathconf.c (prepare): Likewise.
1027         * posix/tst-spawn.c (do_prepare): Likewise.
1028         * posix/tst-truncate.c (do_prepare): Likewise.
1029         * rt/tst-aio.c (do_prepare): Likewise.
1030         * rt/tst-aio64.c (do_prepare): Likewise.
1031
1032 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1033
1034         [BZ #20237]
1035         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
1036         (get*ent): Set entidx to NULL during initialization.  If entidx is
1037         NULL, start iteration from the beginning.
1038
1039 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1040
1041         * malloc/malloc.c (musable): Return correct size for dumped fake
1042         mmapped chunk.
1043
1044 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1045
1046         [BZ #20222]
1047         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
1048         (_IO_cookie_write): Likewise.
1049         (_IO_cookie_seek): Likewise.
1050         (_IO_cookie_close): Likewise.
1051         (_IO_old_cookie_seek): Likewise.
1052         (set_callbacks): New function.
1053         (_IO_cookie_init): Call set_callbacks to copy callbacks.
1054
1055 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
1056
1057         * locale/programs/localedef.c (oldstyle_tables): Remove.
1058         * locale/programs/localedef.h (oldstyle_tables): Likewise.
1059
1060 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
1061
1062         [BZ #20240]
1063         * math/Makefile (CFLAGS-s_modf.c): New variable.
1064         (CFLAGS-s_modff.c): Likewise.
1065         (CFLAGS-s_modfl.c): Likewise.
1066         * math/libm-test.inc (modf_test_data): Add sNaN tests.
1067
1068 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
1069
1070         [BZ #20215]
1071         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
1072         [!__GNUC_PREREQ (3,2)]: Likewise.
1073
1074 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
1075
1076         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
1077         (msghdr.msg_controllen): Likewise.
1078         (cmsghdr.cmsg_len): Likewise.
1079         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
1080         ptw-oldsendmsg.
1081         (CFLAGS-oldrecvmsg.c): Remove rule.
1082         (CFLAGS-oldsendmsg.c): Likewise.
1083         (CFLAGS-recvmsg.c): Add rule.
1084         (CFLAGS-sendmsg.c): Likewise.
1085         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
1086         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
1087         (CFLAGS-recvmsg.c): Remove rule.
1088         (CFLAGS-sendmsg.c): Likewise.
1089         (CFLAGS-oldrecvmsg.c): Likewise.
1090         (CFLAGS-oldsendmsg.c): Likewise.
1091         (CFLAGS-recvmmsg.c): Likewise.
1092         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
1093         to kernel defined interfaces.
1094         (msghdr.msg_controllen): Likewise.
1095         (cmsghdr.cmsg_len): Likewise.
1096         (msghdr.__glibc_reserved1): Remove member.
1097         (msghdr.__glibc_reserved2): Likewise.
1098         (cmsghdr.__glibc_reserved1): Likewise.
1099         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
1100         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
1101         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1102         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1103         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
1104         version.
1105         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
1106         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
1107         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
1108         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
1109         Remove recvmsg and sendmsg.
1110         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
1111         Likewise.
1112         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1113         Likewise.
1114         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1115         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1116         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1117         Likewise.
1118         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1119         Likewise.
1120         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
1121         [libc] (GLIBC_2.24): Likewise.
1122         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1123         Likewise.
1124         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1125         Likewise.
1126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1127         [libc] (GLIBC_2.24): Likewise.
1128         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1129         Likewise.
1130         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1131         Likewise.
1132         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1133         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1134         Likewise.
1135         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1136         Likewise.
1137         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1138         Likewise.
1139         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
1140         Likewise.
1141         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
1142         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
1143         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
1144         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
1145         version for {recv,send,recm,sendm}msg.
1146         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1147         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1148         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1149         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1150         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1151         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1152         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1153         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1154         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1155         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1156         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1157         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1159         Likewise.
1160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1161         Likewise.
1162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1164         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1165         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1166         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1167         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1168         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1169         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1170         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1171         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1172         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1173         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1174         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1175
1176 2016-06-10  Florian Weimer  <fweimer@redhat.com>
1177
1178         [BZ #19564]
1179         Remove __malloc_initialize_hook from the API.
1180         * malloc/malloc.h (__malloc_initialize_hook): Remove.
1181         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
1182         #pragma GCC poison.
1183         * malloc/malloc-hooks.h: New file.
1184         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
1185         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
1186         (old__malloc_initialize_hook): Rename from
1187         __malloc_initialize_hook to evade poisoning.  Turn into compat
1188         symbol.
1189         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
1190         __malloc_initialize_hook.
1191         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
1192         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
1193         * manual/memory.texi (Hooks for Malloc): Remove
1194         __malloc_initialize_hook.  Adjust hook example.
1195
1196 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
1197
1198         [BZ #20235]
1199         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
1200         itself.
1201         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1202         * math/libm-test.inc (log2_test_data): Add sNaN tests.
1203
1204         [BZ #20234]
1205         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
1206         infinity or NaN input to itself.
1207
1208         [BZ #20233]
1209         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
1210         to itself.
1211
1212         [BZ #20232]
1213         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
1214         itself.
1215
1216 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1217
1218         * sysdeps/x86_64/start.S (_start): Always indirect branch to
1219         __libc_start_main via GOT.
1220
1221 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1222
1223         * sysdeps/x86_64/memcopy.h: New file.
1224         * sysdeps/x86_64/wordcopy.c: Likewise.
1225
1226 2016-06-09  Florian Weimer  <fweimer@redhat.com>
1227
1228         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
1229         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
1230         <cstdlib>.
1231         (optimization_barrier): New.
1232         (do_test): Use it.  Call quick_exit in the global namespace.
1233         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
1234         instead of <cstdlib>, <thread>.
1235         (optimization_barrier): New.
1236         (non_main_thread): Adjust declaration.  Call optimization_barrier.
1237         Call quick_exit in the global namespace.
1238         (do_test): Call optimization_barrier.  Use pthread_create,
1239         pthread_join instead of std::thread.
1240
1241 2016-06-09  Andreas Schwab  <schwab@suse.de>
1242
1243         [BZ #19755]
1244         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
1245         new entries in auto-propagate mode.
1246         * nscd/grpcache.c (cache_addgr): Likewise.
1247
1248 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
1249
1250         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
1251         New functions.
1252         (add_temp_file): Use them.
1253
1254 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
1255
1256         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
1257
1258 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
1259
1260         [BZ #20229]
1261         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
1262         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1263         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
1264
1265         [BZ #20228]
1266         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
1267         itself.
1268         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
1269         * math/libm-test.inc (log10_test_data): Add sNaN tests.
1270
1271         [BZ #20227]
1272         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
1273         itself.
1274         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
1275         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1276         * math/libm-test.inc (log_test_data): Add sNaN tests.
1277
1278         [BZ #20226]
1279         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
1280         itself.
1281         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
1282         * math/libm-test.inc (exp_test_data): Add sNaN tests.
1283         (exp10_test_data): Likewise.
1284         (expm1_test_data): Likewise.
1285
1286         [BZ #20225]
1287         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
1288         itself.
1289         * math/s_ldexpf.c (__ldexpf): Likewise.
1290         * math/s_ldexpl.c (__ldexpl): Likewise.
1291         * math/w_scalbln.c (__w_scalbln): Likewise.
1292         * math/w_scalblnf.c (__w_scalblnf): Likewise.
1293         * math/w_scalblnl.c (__w_scalblnl): Likewise.
1294         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
1295         (scalbln_test_data): Likewise.
1296
1297         [BZ #20224]
1298         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
1299         argument to itself.
1300         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
1301
1302 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1303
1304         [BZ #19776]
1305         * sysdeps/x86_64/memcpy.S: Make it dummy.
1306         * sysdeps/x86_64/mempcpy.S: Likewise.
1307         * sysdeps/x86_64/memmove.S: New file.
1308         * sysdeps/x86_64/memmove_chk.S: Likewise.
1309         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
1310         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
1311         * sysdeps/x86_64/memmove.c: Removed.
1312         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
1313         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
1314         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
1315         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
1316         Likewise.
1317         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1318         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1319         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1320         memcpy-sse2-unaligned, memmove-avx-unaligned,
1321         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
1322         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1323         (__libc_ifunc_impl_list): Replace
1324         __memmove_chk_avx512_unaligned_2 with
1325         __memmove_chk_avx512_unaligned.  Remove
1326         __memmove_chk_avx_unaligned_2.  Replace
1327         __memmove_chk_sse2_unaligned_2 with
1328         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
1329         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
1330         with __memmove_avx512_unaligned.  Replace
1331         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
1332         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
1333         with __memcpy_chk_avx512_unaligned.  Remove
1334         __memcpy_chk_avx_unaligned_2.  Replace
1335         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
1336         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
1337         Replace __memcpy_avx512_unaligned_2 with
1338         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
1339         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
1340         with __mempcpy_chk_avx512_unaligned.  Remove
1341         __mempcpy_chk_avx_unaligned_2.  Replace
1342         __mempcpy_chk_sse2_unaligned_2 with
1343         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
1344         Replace __mempcpy_avx512_unaligned_2 with
1345         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
1346         Replace __mempcpy_sse2_unaligned_2 with
1347         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
1348         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
1349         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
1350         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
1351         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
1352         (ENTRY): Removed.
1353         (END): Likewise.
1354         (ENTRY_CHK): Likewise.
1355         (libc_hidden_builtin_def): Likewise.
1356         Don't include ../memcpy.S.
1357         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
1358         __memcpy_chk_avx512_unaligned_erms and
1359         __memcpy_chk_avx512_unaligned.  Use
1360         __memcpy_chk_avx_unaligned_erms and
1361         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1362         Default to __memcpy_chk_sse2_unaligned.
1363         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
1364         Change function suffix from unaligned_2 to unaligned.
1365         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
1366         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
1367         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
1368         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
1369         (ENTRY): Removed.
1370         (END): Likewise.
1371         (ENTRY_CHK): Likewise.
1372         (libc_hidden_builtin_def): Likewise.
1373         Don't include ../mempcpy.S.
1374         (mempcpy): New.  Add a weak alias.
1375         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
1376         __mempcpy_chk_avx512_unaligned_erms and
1377         __mempcpy_chk_avx512_unaligned.  Use
1378         __mempcpy_chk_avx_unaligned_erms and
1379         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1380         Default to __mempcpy_chk_sse2_unaligned.
1381
1382 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1383
1384         [BZ #19881]
1385         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
1386         into ...
1387         * sysdeps/x86_64/memset.S: This.
1388         (__bzero): Removed.
1389         (__memset_tail): Likewise.
1390         (__memset_chk): Likewise.
1391         (memset): Likewise.
1392         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
1393         defined.
1394         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
1395         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
1396         (__memset_zero_constant_len_parameter): Check SHARED instead of
1397         PIC.
1398         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1399         memset-avx2 and memset-sse2-unaligned-erms.
1400         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1401         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
1402         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
1403         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
1404         (__bzero): Enabled.
1405         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
1406         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
1407         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
1408         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
1409         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
1410         (memset): Removed.
1411         (__memset_chk): Likewise.
1412         (MEMSET_SYMBOL): New.
1413         (libc_hidden_builtin_def): Replace __memset_sse2 with
1414         __memset_sse2_unaligned.
1415         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
1416         __memset_chk_sse2 and __memset_chk_avx2 with
1417         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
1418         Use __memset_chk_sse2_unaligned_erms or
1419         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
1420         __memset_chk_avx512_unaligned_erms and
1421         __memset_chk_avx512_unaligned.
1422
1423 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1424
1425         * math/gen-auto-libm-test.c (fp_format_desc): remove
1426         suffix member.
1427         (output_generic_value): Remove usage of suffix member,
1428         and the resulting unuse of the fp_format argument.
1429         (output_for_one_input_case): Remove unused fp_format
1430         parameter.
1431
1432         * math/auto-libm-test-out: Regenerate.
1433
1434         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
1435         usage with TEST_COND_ibm128.
1436         (TEST_COND_flt_32): Remove.
1437         (TEST_COND_dbl_64): Remove.
1438         (TEST_COND_ldbl_96_intel): Remove.
1439         (TEST_COND_ldbl_96_m68k): Remove.
1440         (TEST_COND_ldbl_128): Remove.
1441
1442 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1443
1444         * auto-libm-test-in:
1445         Replace flt-32 usage with binary32.
1446         Replace dbl-64 usage with binary64.
1447         Replace ldbl-intel-96 usage with intel96.
1448         Replace ldbl-m68k-96 usage with m68k96.
1449         Replace ldbl-128ibm usage with ibm128.
1450         Replace ldbl-128 usage with binary128.
1451
1452         * auto-libm-test-out: Regenerate.
1453
1454 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1455
1456         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
1457         (parse_ulps): Dynamically generate type name matching
1458         string from all_floats.
1459         (get_ulps): Generate the ulps as an array instead.
1460         (output_ulps): Dynamically compose the type based
1461         on the number of supported formats, and print
1462         the indices as type specific helper macros.
1463
1464         * math/libm-test.inc: Remove comment about CHOOSE.
1465         (ulp_data): Generate the type in libm-test-ulps.h.
1466         (ULP_IDX): New macro.
1467         (find_ulps): Update usage of max_ulp.
1468
1469         * math/test-double-vlen2.h (CHOOSE): Remove.
1470         * math/test-double-vlen4.h (CHOOSE): Likewise.
1471         * math/test-double-vlen8.h (CHOOSE): Likewise.
1472         * math/test-float.c (CHOOSE): Likewise.
1473         * math/test-float-finite.c (CHOOSE): Likewise.
1474         * math/test-double.c (CHOOSE): Likewise.
1475         * math/test-double-finite.c (CHOOSE): Likewise.
1476         * math/test-idouble.c (CHOOSE): Likewise.
1477         * math/test-ifloat.c (CHOOSE): Likewise.
1478         * math/test-ildoubl.c (CHOOSE): Likewise.
1479         * math/test-ldouble-finite.c (CHOOSE): Likewise.
1480         * math/test-ldouble.c (CHOOSE): Likewise.
1481
1482         * math/test-float.h (TEST_FLOAT): Remove.
1483         * math/test-double.h (TEST_DOUBLE): Likewise.
1484         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
1485
1486 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1487
1488         * math/gen-libm-test.pl: (apply_lit): New subroutine.
1489         (parse_args): Strip C suffix from floating point literals
1490         typed with 'f' and wrap them with LIT().
1491
1492         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
1493         (test_ff_f_data_nexttoward): Rename to
1494         (test_fj_f_data): New struct.
1495         (nexttoward_test_data): Relabel tests as
1496         TEST_fj_f instead of TEST_ff_f.
1497
1498 2016-06-08  Florian Weimer  <fweimer@redhat.com>
1499
1500         Emacs bug 23726.
1501         * malloc/malloc.c (dumped_main_arena_start): Update comment.
1502         (__libc_realloc): Correct size computation for dumped fake mmapped
1503         chunks.
1504
1505 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
1506
1507         [BZ #20219]
1508         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
1509         to itself.
1510         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
1511
1512         [BZ #20218]
1513         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
1514         to itself.
1515         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
1516
1517 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1518
1519         [BZ #20195]
1520         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
1521         check to ...
1522         (init_cpu_features): Here.
1523
1524 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
1525
1526         [BZ #20214]
1527         * sysdeps/unix/sysv/linux/bits/in.h
1528         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1529          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
1530         Define to 1.
1531         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1532          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
1533         Define to 0.
1534         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
1535         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
1536
1537 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
1538
1539         [BZ #20198]
1540         * stdlib/Makefile (tests): Add tst-quick_exit, and
1541         tst-thread-quick_exit.
1542         [ifeq ($(have-cxx-thread_local),yes)]
1543         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
1544         (CFLAGS-tst-thread-quick_exit.o): Likewise.
1545         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
1546         (LDLIBS-tst-thread-quick_exit): Likewise.
1547         [ifneq ($(have-cxx-thread_local),yes)]
1548         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
1549         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
1550         If run_dtors is true call __call_tls_dtors.
1551         (exit): Call __run_exit_handlers with run_dtors set to true.
1552         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
1553         definition.
1554         * stdlib/quick_exit.c (quick_exit): Remove function.
1555         (__new_quick_exit): New function.
1556         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
1557         function.
1558         * stdlib/tst-quick_exit.cc: New file.
1559         * stdlib/tst-thread-quick_exit.cc: New file.
1560         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
1561         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
1562         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
1563         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
1564         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
1565         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
1566         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
1567         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
1568         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
1569         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
1570         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
1571         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
1572         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
1573         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
1574         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
1575         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
1577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
1578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
1579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
1580         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
1581         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
1582         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
1583         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
1584         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
1585         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
1586         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
1587         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
1588         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
1589         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
1590
1591 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1592
1593         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
1594         a typo in comments.
1595
1596 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1597
1598         [BZ #20213]
1599         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
1600         argument to itself.
1601         * math/libm-test.inc (asin_test_data): Add sNaN tests.
1602
1603 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1604
1605         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
1606         required flags.
1607         (CFLAGS-pwritev64.c): Likewise.
1608         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
1609         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
1610         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
1611         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1612         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
1613         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
1614         syscall from auto-generation.
1615         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
1616         [WORDSIZE == 64] (pwritev64): Remove macro.
1617         [!PWRITEV] (PWRITEV): Likewise.
1618         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1619         [!PWRITEV] (PWRITE): Likewise.
1620         [!PWRITEV] (OFF_T): Likewise.
1621         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1622         (LO_HI_LONG): Remove macro.
1623         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1624         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1625         (PWRITEV): Remove macro.
1626         (PWRITEV_REPLACEMENTE): Likewise.
1627         (PWRITE): Likewise.
1628         (OFF_T): Likewise.
1629         (pwritev64): New function.
1630         * nptl/tst-cancel4.c (tf_writev): Add test.
1631
1632         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1633         required flags.
1634         (CFLAGS-preadv64.c): Likewise.
1635         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1636         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1637         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1638         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1639         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1640         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1641         syscall from auto-generation.
1642         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1643         [WORDSIZE == 64] (preadv64): Remove macro.
1644         [!PREADV] (PREADV): Likewise.
1645         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1646         [!PREADV] (PREAD): Likewise.
1647         [!PREADV] (OFF_T): Likewise.
1648         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1649         (LO_HI_LONG): Remove macro.
1650         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1651         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1652         (PREADV): Remove macro.
1653         (PREADV_REPLACEMENTE): Likewise.
1654         (PREAD): Likewise.
1655         (OFF_T): Likewise.
1656         (preadv64): New function.
1657         * nptl/tst-cancel4.c (tf_preadv): Add test.
1658
1659 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1660
1661         [BZ #20212]
1662         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1663         argument to itself.
1664         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1665
1666 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1667
1668         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1669         New symbol defined as libc_hidden_def.
1670         (strcasestr): Became a weak alias to __strcasestr.
1671         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1672         according to multi-arch support.  Move __stpncpy hidden
1673         definition from here to...
1674         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1675         symbol stpncpy.
1676         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1677         libc_hidden_builtin_def.
1678         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1679         memset symbol to use when multi-arch support is available.
1680
1681 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1682
1683         * dlfcn/tst-rec-dlopen.c: Include string.h.
1684
1685 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1686
1687         * manual/install.texi: Remove mention of --without-tls
1688         * INSTALL: Regenerate.
1689
1690 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1691
1692         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1693         Remove.
1694         (call_function, interposed_malloc_called): New variables.
1695         (malloc): New function.
1696         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1697         and clear call_function as needed.
1698
1699 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1700
1701         * include/wchar.h (__wmemset): Use __typeof.
1702
1703 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1704
1705         * include/wchar.h (__wmemset): Declare function without typeof.
1706
1707 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1708
1709         [BZ #20205]
1710         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1711         exponent when incrementing negative subnormal with low mantissa
1712         word zero.
1713         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1714         Add another test.
1715
1716 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1717
1718         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1719         __wmemset instead of wmemset.
1720
1721 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1722
1723         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1724         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1725         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1726         __USE_KERNEL_IPV6_DEFS to 0.
1727         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1728         Update comment.
1729
1730 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1731
1732         [BZ #19861]
1733         Do not use IFUNC resolver with potentially unrelocated symbol.
1734         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1735         (DEFINE_FORK): Remove macro and inline definition.
1736         (fork_alias): Renamed from fork_ifunc.
1737         (__fork_alias): Renamed from __fork_ifunc.
1738
1739 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1740
1741         [BZ 19653]
1742         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1743         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1744
1745 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1746
1747         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1748         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1749         i386-linux-gnu).
1750         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1751         Set to no.
1752         * sysdeps/mach/hurd/configure: Refresh.
1753
1754 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1755
1756         [BZ #20178]
1757         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1758         on failure instead of exit.
1759
1760 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1761
1762         [BZ #3629]
1763         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1764         of POSIX.1-2008.
1765
1766 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1767
1768         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1769           Use PLT entry for calling _hurd_self_sigstate.
1770
1771 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1772
1773         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1774         available logical processors with SMT level type sharing L2
1775         cache for Intel processors.
1776
1777 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1778
1779         [BZ #20160]
1780         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1781         argument to itself before returning the result.
1782         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1783         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1784         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1785         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1786         Likewise.
1787         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1788         Likewise.
1789         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1790         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1791         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1792         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1793         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1794         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1795
1796         [BZ #20160]
1797         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1798         argument to itself before returning the result.
1799         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1800         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1801         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1802         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1803         Likewise.
1804         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1805         Likewise.
1806         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1807         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1808         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1809         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1810         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1811         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1812
1813 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1814
1815         * libm-test.inc: Replace usage of M_El with
1816         (lit_e): New macro.
1817
1818 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1819
1820         * libm-test.inc: Replace usage of M_PI_4l with
1821         (lit_pi_4_d): New macro.
1822
1823 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1824
1825         * libm-test.inc: Replace usage of M_PIl with
1826         (lit_pi): New macro.
1827
1828 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1829
1830         * libm-test.inc: Replace usage of M_PI2l with
1831         (lit_pi_2_d): New macro.
1832
1833         * math/test-double.h (LITM): New macro.
1834         * math/test-float.h (LITM): Likewise.
1835         * math/test-ldouble.h (LITM): Likewise.
1836
1837 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1838
1839         * libm-test.inc (M_PI_34l): Rename to
1840         (lit_pi_3_m_4_d): New Macro.
1841         (M_PI_34_LOG10El): Rename to
1842         (lit_pi_3_m_4_ln10_m_d): New Macro.
1843         (M_PI2_LOG10El): Rename to
1844         (lit_pi_2_ln10_m_d):  New Macro.
1845         (M_PI4_LOG10El): Rename to
1846         (lit_pi_4_ln10_m_d):  New Macro.
1847         (M_PI_LOG10El): Rename to
1848         (lit_pi_ln10_d):  New Macro.
1849
1850 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1851
1852         [BZ #20157]
1853         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1854         determine whether to negate low half if [_ARCH_PPCGR], and integer
1855         comparison otherwise.
1856         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1857         determine whether to negate low half.
1858
1859         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1860         (NO_TEST_INLINE_DOUBLE): Likewise.
1861         (TEST_COND_x86_64): Likewise.
1862         (TEST_COND_x86): Likewise.
1863         (M_PI_6l): Likewise.
1864
1865 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1866
1867         * math/libm-test.inc:
1868         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1869         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1870         (TEST_LDOUBLE): Update usage to evaluate as true if
1871         the guarded tests match the property being tested.
1872         (LDBL_MAX_EXP): Change to MAX_EXP.
1873         (LDBL_MIN_EXP): Change to MIN_EXP.
1874         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1875         nexttoward tests.
1876
1877 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1878
1879         * math/libm-test.inc:
1880         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1881         (TYPE_MIN): Likewise.
1882         (TYPE_TRUE_MIN): Likewise.
1883         (TYPE_MAX): Likewise.
1884         (MIN_EXP): Likewise.
1885         (MAX_EXP): Likewise.
1886         (MANT_DIG): Likewise.
1887
1888         (FSTR_MAX): New macro.
1889         (__CONCATX): Likewise.
1890         (QTYPE_STR): Likewise.
1891         (TEST_COND_binary32): Likewise.
1892         (TEST_COND_binary64): Likewise.
1893         (TEST_COND_binary128): Likewise.
1894         (TEST_COND_ibm128): Likewise.
1895         (TEST_COND_intel96): Likewise.
1896         (TEST_COND_m68k96): Likewise.
1897
1898         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1899         (TEST_COND_dbl_64): Likewise.
1900         (TEST_COND_ldbl_96_intel): Likewise.
1901         (TEST_COND_ldbl_96_m68k): Likewise.
1902         (TEST_COND_ldbl_128): Likewise.
1903         (TEST_COND_ldbl_128ibm): Likewise.
1904
1905         (plus_zero): Redefine using LIT macro.
1906         (minus_zero): Likewise.
1907         (plus_infty): Redefine as (INF).
1908         (minux_infty): Redefine as (-INF).
1909         (max_value): Redefine as TYPE_MAX.
1910         (min_value): Redefine as TYPE_MIN.
1911         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1912
1913         (print_float): Refactor to use snprintf to convert FLOAT values
1914         to string. This brings it closer to dropin replacement of strtof
1915         for the TS 18661 defined types.
1916         (update_stats): Likewise.
1917         (print_complex_function_ulps): Likewise.
1918         (print_max_error): Likewise.
1919         (print_complex_max_error): Likewise.
1920         (check_float_internal): Likewise.
1921
1922         * math/test-float.h (PREFIX): New macro.
1923         (LIT): Likewise.
1924         (TYPE_STR): Likewise.
1925         (FTOSTR): Likewise.
1926
1927         * math/test-double.h (PREFIX): New macro.
1928         (LIT): Likewise.
1929         (TYPE_STR): Likewise.
1930         (FTOSTR): Likewise.
1931
1932         * math/test-ldouble.h (PREFIX): New macro.
1933         (LIT): Likewise.
1934         (TYPE_STR): Likewise.
1935         (FTOSTR): Likewise.
1936
1937 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1938
1939         [BZ #20156]
1940         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1941         to itself when zero or not finite.
1942         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1943         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1944         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1945         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1946
1947 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1948
1949         [BZ #20153]
1950         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1951         x * x + x for infinities and NaNs.
1952
1953         [BZ #20151]
1954         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1955         argument to itself before returning result.
1956         (__ieee754_y0l): Likewise.
1957         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1958         (__ieee754_y1l).
1959
1960         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1961         (atan_test_data): Likewise.
1962         (ceil_test_data): Likewise.
1963         (cos_test_data): Likewise.
1964         (cosh_test_data): Likewise.
1965         (erf_test_data): Likewise.
1966         (exp2_test_data): Likewise.
1967         (fabs_test_data): Likewise.
1968         (floor_test_data): Likewise.
1969         (ilogb_test_data): Likewise.
1970         (j0_test_data): Likewise.
1971         (j1_test_data): Likewise.
1972         (jn_test_data): Likewise.
1973         (lgamma_test_data): Likewise.
1974         (lrint_test_data): Likewise.
1975         (llrint_test_data): Likewise.
1976         (logb_test_data): Likewise.
1977         (lround_test_data): Likewise.
1978         (llround_test_data): Likewise.
1979         (nearbyint_test_data): Likewise.
1980         (rint_test_data): Likewise.
1981         (round_test_data): Likewise.
1982         (sin_test_data): Likewise.
1983         (sincos_test_data): Likewise.
1984         (sinh_test_data): Likewise.
1985         (sqrt_test_data): Likewise.
1986         (tan_test_data): Likewise.
1987         (tanh_test_data): Likewise.
1988         (tgamma_test_data): Likewise.
1989         (trunc_test_data): Likewise.
1990         (y0_test_data): Likewise.
1991         (y1_test_data): Likewise.
1992         (yn_test_data): Likewise.
1993
1994         * math/libm-test.inc: Update comment about NaN testing.
1995         (TEST_SNAN): New macro.
1996         (snan_value): Likewise.
1997         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1998         (fpclassify_test_data): Add sNaN tests.
1999         (isfinite_test_data): Likewise.
2000         (isinf_test_data): Likewise.
2001         (isnan_test_data): Likewise.
2002         (isnormal_test_data): Likewise.
2003         (issignaling_test_data): Likewise.
2004         (signbit_test_data): Likewise.
2005         * math/gen-libm-test.pl (%beautify): Add snan_value.
2006         (show_exceptions): Add argument $test_snan.
2007         (parse_args): Handle snan_value as non-finite.  Update call to
2008         show_exceptions.
2009         * math/Makefile (libm-test-no-inline-cflags): Add
2010         -fsignaling-nans.
2011
2012 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2013
2014         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
2015         (CFLAGS-oldsendmsg.c): Add rule.
2016         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
2017         Correct recvmsg symbol name.
2018         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
2019         Likewise.
2020
2021 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2022
2023         * sysdeps/unix/sysv/linux/Makefile
2024         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
2025         oldsendmmsg.
2026         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
2027         sendmmsg.
2028         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2029         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2030         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2031         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2033         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2034         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2035         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
2036         Likewise.
2037         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2038         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
2039         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
2040         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
2041         iovlen and controllen fields to adjust to POSIX specification.
2042         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
2043
2044         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
2045         and change to correct expected type.
2046         (msghdr.msg_controllen): Likewise.
2047         (cmsghdr.cmsg_len): Likewise.
2048         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
2049         expected POSIX assumption about the size.
2050         (msghdr.msg_controllen): Likewise.
2051         (msghdr.__glibc_reserved1): Likewise.
2052         (msghdr.__glibc_reserved2): Likewise.
2053         (cmsghdr.cmsg_len): Likewise.
2054         (cmsghdr.__glibc_reserved1): Likewise.
2055         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
2056         Add ptw-oldrecvmsg and ptw-oldsendmsg.
2057         (CFLAGS-sendmsg.c): Remove rule.
2058         (CFLAGS-recvmsg.c): Likewise.
2059         (CFLAGS-oldsendmsg.c): Add rule.
2060         (CFLAGS-oldrecvmsg.c): Likewise.
2061         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
2062         recvmsg and sendmsg.
2063         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
2064         Likewise.
2065         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
2066         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
2067         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
2068         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
2069         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
2070         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
2071         Likewise.
2072         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
2073         Likewise.
2074         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
2075         Likewise.
2076         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
2077         Likewise.
2078         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
2079         Likewise.
2080         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
2081         Likewise.
2082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
2083         (GLIBC_2.24): Likewise.
2084         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
2085         Likewise.
2086         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
2087         Likewise.
2088         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
2089         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
2090         Likewise.
2091         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
2092         Likewise.
2093         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
2094         Likewise.
2095         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
2096         (GLIBC_2.24): Likewise.
2097         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
2098         Likewise.
2099         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
2100         Likewise.
2101         * sysdeps/unix/sysv/linux/Makefile
2102         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
2103         (CFLAGS-sendmsg.c): Add rule.
2104         (CFLAGS-recvmsg.c): Likewise.
2105         (CFLAGS-oldsendmsg.c): Likewise.
2106         (CFLAGS-oldrecvmsg.c): Likewise.
2107         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
2108         initialization.
2109         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
2110         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
2111         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
2112         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
2113         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
2114         iovlen and controllen fields to adjust to POSIX specification.
2115         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
2116         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
2117         added recvmsg and sendmsg.
2118         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2119         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2120         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2121         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2122         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2123         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2124         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2125         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2126         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2127         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2128         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2129         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
2130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2131         Likewise.
2132         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2134         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2135         Likewise.
2136         Likewise.
2137         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2138         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2139         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2140         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2141         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2142         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2143         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2144         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2145         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2146         Likewise.
2147         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2148         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2149
2150         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
2151         from auto-generation.
2152         (sendmsg): Likewise.
2153         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
2154         (sendmsg): Likewise.
2155         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
2156         (sendmsg): Likewise.
2157         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
2158         (sendmsg): Likewise.
2159         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
2160         (sendmsg): Likewise.
2161         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
2162         (sendmsg): Likewise.
2163         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
2164         Likewise.
2165         (sendmsg): Likewise.
2166         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
2167         (sendmsg): Likewise.
2168         * sysdeps/unix/sysv/linux/i386/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/kernel-features.h
2178         (__ASSUME_SENDMSG_SYSCALL): Define.
2179         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2180         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2181         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2182         Remove.
2183         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2184         Likewise.
2185         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2186         Undefine.
2187         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2188         Likewise.
2189         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2190         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2191         Remove.
2192         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2193         Likewise.
2194         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2195         Undefine.
2196         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2197         Likewise.
2198         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2199         (__ASSUME_SENDMSG_SYSCALL): Undefine.
2200         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2201         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2202         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2203         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2204         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2205         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2206         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2207
2208 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2209
2210         * stdlib/gen-tst-strtod-round.c: Add backslash to
2211         compile command in comment.
2212         (printfp): Remove the literal suffix, and define an infinite
2213         value as INF to avoid expansion clash with INFINITY.
2214         (round_str): Remove the literal suffix.
2215         (round_for_all): Likewise, remove the now duplicate ldbl-64
2216         entry, and remove some magic constants.
2217
2218         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
2219         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
2220         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
2221         (_CONCAT): New macro.
2222         (CONCAT): Likewise.
2223         (CHOOSE_ld): Likewise.
2224         (CHOOSE_f): Likewise.
2225         (CHOOSE_d): Likewise.
2226         (FTYPE_MEMBER): Likewise.
2227         (BOOL_MEMBER): Likewise.
2228         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
2229         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
2230         (_XNTRY): Likewise.
2231         (XNTRY): Likewise.
2232         (_ENTRY): Likewise.
2233         (ENTRY): Likewise.
2234         (test_exactness): Generate members via macro.
2235         (test_results): Likewise.
2236         (test): Update members.
2237         (TEST): Redefine using new macros.
2238         (INF): New macro.
2239         (fetestmodes): New structure.
2240         (do_test): Refactor to be type generic.
2241         (test_in_one_mode): Refactor duplicate code into
2242         (GEN_ONE_TEST): New macro.
2243
2244         * stdlib/tst-strtod-round-data.h: Regenerate.
2245
2246         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
2247         Extend to pass additional arbitrary parameters to
2248         generators.
2249
2250 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
2251
2252         [BZ #15479]
2253         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
2254         floating-point state after first floating-point operation on
2255         input.  Restore full floating-point state instead of just rounding
2256         mode.
2257         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
2258         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
2259         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
2260         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
2261         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
2262
2263         [BZ #15479]
2264         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
2265         floating-point state after first floating-point operation on
2266         input.  Restore full floating-point state instead of just rounding
2267         mode.
2268         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
2269         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
2270         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
2271         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
2272         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
2273
2274 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2275
2276         [BZ #19727]
2277         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
2278         valid high surrogate.
2279         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
2280         of an utf16 surrogate.
2281         * iconv/gconv_simple.c (BODY): Likewise.
2282         * iconvdata/bug-iconv12.c: New file.
2283         * iconvdata/Makefile (tests): Add bug-iconv12.
2284
2285 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2286
2287         [BZ #19726]
2288         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
2289         outptrp in case of an illegal input.
2290         * iconv/tst-iconv6.c: New file.
2291         * iconv/Makefile (tests): Add tst-iconv6.
2292
2293 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2294
2295         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
2296         an error in case of a value in range of an utf16 low surrogate.
2297
2298 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2299
2300         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
2301         an error in case of a value in range of an utf16 low surrogate.
2302
2303 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2304
2305         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
2306         Move to ...
2307         * sysdeps/s390/Makefile: ... here.
2308         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
2309         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
2310         (BRANCH_ON_COUNT): New define.
2311         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
2312         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
2313         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
2314         run on s390-32, too.
2315         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
2316         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
2317         run on s390-32, too.
2318         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
2319         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
2320         run on s390-32, too.
2321
2322 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2323
2324         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
2325         etf3eh or new vector loop-variant.
2326
2327 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2328
2329         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
2330         etf3eh or new vector loop-variant.
2331
2332 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2333
2334         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
2335         or new vector loop-variant.
2336
2337 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2338
2339         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
2340         Rename to TR_LOOP and usage of tr instead of troo instruction.
2341
2342 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2343
2344         * sysdeps/s390/multiarch/gconv_simple.c: New File.
2345         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
2346
2347 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2348
2349         * sysdeps/s390/multiarch/8bit-generic.c: New File.
2350         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
2351         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
2352         New override define.
2353         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
2354
2355 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2356
2357         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
2358         * sysdeps/s390/configure.ac: Add test for S390 vector register
2359         support in gcc.
2360         * sysdeps/s390/configure: Regenerated.
2361
2362 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2363
2364         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
2365         Install file from $(objpfx)gconv-modules.
2366         ($(objpfx)gconv-modules): Concatenate architecture specific file
2367         in variable sysdeps-gconv-modules and gconv-modules in src dir.
2368         * sysdeps/s390/gconv-modules: New file.
2369         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
2370         Deleted.
2371         ($(objpfx)gconv-modules-s390): Deleted.
2372         (sysdeps-gconv-modules): New variable.
2373
2374 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2375
2376         [BZ #15479]
2377         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
2378         of immediate operand to rounding instruction.
2379         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
2380         Likewise.
2381         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
2382         Likewise.
2383         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
2384         Likewise.
2385
2386 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2387
2388         * math/libm-test.inc (MIN_EXP): Directly define as
2389         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
2390
2391 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2392
2393         * math/libm-test.inc (MANT_DIG): Directly define as
2394         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
2395
2396 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2397
2398         * stdlib/gen-tst-strtod-round.c (main):
2399           Change usage to more closely match the generated
2400           output.  Add usage and compilation instructions.
2401           (string_to_fp): Add and use FILE* parameter as
2402           output target.
2403           (print_fp): Likewise.
2404           (round_str): Likewise.
2405           (round_for_all): Likewise.
2406         * stdlib/tst-strtod-round.c (tests): Move into
2407         * stdlib/tst-strtod-round-data.h: New file.
2408
2409 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2410
2411         [BZ #15479]
2412         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
2413         (__round): Do not force "inexact" exception.
2414         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
2415         variable.
2416         (__round): Do not force "inexact" exception.
2417         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
2418         (__roundf): Do not force "inexact" exception.
2419         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
2420         (__roundl): Do not force "inexact" exception.
2421         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
2422         (__roundl): Do not force "inexact" exception.
2423         * math/libm-test.inc (round_test_data): Do not allow spurious
2424         "inexact" exceptions.
2425
2426         [BZ #15479]
2427         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
2428         exception in comment.
2429         (huge): Remove variable.
2430         (__floor): Do not force "inexact" exception.
2431         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
2432         "inexact" exception in comment.
2433         (huge): Remove variable.
2434         (__floor): Do not force "inexact" exception.
2435         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
2436         exception in comment.
2437         (huge): Remove variable.
2438         (__floorf): Do not force "inexact" exception.
2439         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
2440         exception in comment.
2441         (huge): Remove variable.
2442         (__floorl): Do not force "inexact" exception.
2443
2444         [BZ #15479]
2445         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
2446         exception in comment.
2447         (huge): Remove variable.
2448         (__ceil): Do not force "inexact" exception.
2449         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
2450         "inexact" exception in comment.
2451         (huge): Remove variable.
2452         (__ceil): Do not force "inexact" exception.
2453         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
2454         (__ceilf): Do not force "inexact" exception.
2455         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
2456         exception in comment.
2457         (huge): Remove variable.
2458         (__ceill): Do not force "inexact" exception.
2459
2460 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2461
2462         * config.h.in (BIND_NOW): New.
2463         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
2464         * configure: Regenerated.
2465         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
2466         indirect branch via the GOT slot.
2467
2468 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2469
2470         [BZ #19765]
2471         * sysdeps/s390/mempcpy.S: New File.
2472         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2473         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
2474         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2475         Add mempcpy variants.
2476         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
2477         (memcpy): Adjust to be usable from mempcpy entry point.
2478         (__memcpy_mvcle): Likewise.
2479         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2480         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
2481         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
2482         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
2483         (__memcpy_z10): Likewise.
2484         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2485
2486 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2487
2488         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
2489         Remove __GI_ symbol.
2490         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
2491         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
2492         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
2493         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2494         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
2495         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
2496
2497 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2498
2499         * sysdeps/s390/s390-64/memcpy.S (memcpy):
2500         Use cghi instead of chi to compare 64bit value.
2501
2502 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2503
2504         * sysdeps/s390/s390-32/memcpy.S (memcpy):
2505         Jump to 1MB check before executing mvc-loop.
2506
2507 2016-05-24  Florian Weimer  <fweimer@redhat.com>
2508
2509         [BZ #6527]
2510         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
2511         unconditionally.
2512         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
2513
2514 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2515
2516         * stdlib/tst-strtod6.c (do_test): Use new type generic
2517         invocation of the test function.
2518         (test): Refactor into ...
2519         (TEST_STRTOD): New macro base function.
2520
2521 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2522
2523         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
2524         (TEST_STRTOD): New macro.
2525         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
2526
2527 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2528
2529         * stdlib/tst-strtod6.c (do_test): Use new type generic
2530         invocation of the test function.
2531         (test): Refactor into ...
2532         (TEST_STRTOD): New macro base function.
2533
2534 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2535
2536         CVE-2016-4429
2537         [BZ #20112]
2538         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
2539         payload.
2540
2541 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2542
2543         [BZ #20111]
2544         * bits/sockaddr.h (_SS_SIZE): Define.
2545         * bits/socket.h (_SS_SIZE): Remove.
2546         (_SS_PADSIZE): Adjust to account for all padding.
2547         (struct sockaddr_storage): Update comment.  Avoid implicit
2548         padding.
2549         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
2550         (_SS_PADSIZE): Adjust to account for all padding.
2551         (struct sockaddr_storage): Update comment.  Avoid implicit
2552         padding.
2553         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
2554         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
2555         (_SS_PADSIZE): Adjust to account for all padding.
2556         (struct sockaddr_storage): Update comment.  Avoid implicit
2557         padding.
2558         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
2559         __SS_SIZE is 126 in this version.
2560         * inet/tst-sockaddr.c: New file.
2561         * inet/Makefile (tests): Add tst-sockaddr.c
2562         (tst-sockaddr.c): Compile with non-strict aliasing.
2563
2564 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
2565
2566         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
2567         [XPG3 || XPG4].
2568         (NL_ARGMAX): Also expect for [XPG3].
2569         (NL_LANGMAX): Likewise.
2570         (NL_MSGMAX): Likewise.
2571         (NL_NMAX): Likewise.
2572         (NL_SETMAX): Likewise.
2573         (NL_TEXTMAX): Likewise.
2574         (NZERO): Likewise.
2575         (TMP_MAX): Likewise.
2576         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
2577         variable.
2578
2579         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
2580         (PF_MAX): Update value.
2581         (AF_KCM): New macro.
2582         (SOL_NETBEUI): Likewise.
2583         (SOL_LLC): Likewise.
2584         (SOL_DCCP): Likewise.
2585         (SOL_NETLINK): Likewise.
2586         (SOL_TIPC): Likewise.
2587         (SOL_RXRPC): Likewise.
2588         (SOL_PPPOL2TP): Likewise.
2589         (SOL_BLUETOOTH): Likewise.
2590         (SOL_PNPIPE): Likewise.
2591         (SOL_RDS): Likewise.
2592         (SOL_IUCV): Likewise.
2593         (SOL_CAIF): Likewise.
2594         (SOL_ALG): Likewise.
2595         (SOL_NFC): Likewise.
2596         (SOL_KCM): Likewise.
2597         (MSG_BATCH): New enum value and macro.
2598
2599 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2600
2601         [BZ #18185]
2602         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
2603         sharing L2 cache to 2 for Knights Landing.
2604
2605 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
2606
2607         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
2608         (FTW_DP): Do not expect for [XPG3 || XPG4].
2609         (FTW_SL): Do not expect for [XPG3].
2610         (FTW_SLN): Likewise.
2611         (FTW_PHYS): Likewise.
2612         (FTW_MOUNT): Likewise.
2613         (FTW_DEPTH): Likewise.
2614         (FTW_CHDIR): Likewise.
2615         (nftw): Likewise.
2616         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
2617         variable.
2618
2619 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2620
2621         * manual/errno.texi: Fix various typos & grammar errors.
2622
2623 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2624
2625         * manual/intro.texi: Fix duplicated typo.
2626
2627 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2628
2629         [BZ #13304]
2630         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2631         <float.h>, <math_private.h> and <stdlib.h>.
2632         (add_split): New function.
2633         (mul_split): Likewise.
2634         (ext_val): New typedef.
2635         (store_ext_val): New function.
2636         (mul_ext_val): New function.
2637         (compare): New function.
2638         (add_split_ext): New function.
2639         (__fmal): After checking for Inf, NaN and zero, compute result as
2640         an exact sum of scaled double values in round-to-nearest before
2641         adding those up and adjusting for other rounding modes.
2642         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2643         tests of fma.
2644         * math/auto-libm-test-out: Regenerated.
2645
2646 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2647
2648         [BZ #20119]
2649         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2650         processor level type mask for CPUID with EAX == 11.
2651
2652 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2653
2654         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2655         logical threads if the HTT bit is 0.
2656         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2657         (index_cpu_HTT): Likewise.
2658         (reg_HTT): Likewise.
2659
2660 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2661
2662         [BZ #20115]
2663         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2664         Remove alignments on jump targets.
2665
2666 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2667
2668         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2669         (getpwent): Likewise.
2670         (setpwent): Likewise.
2671         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2672         variable.
2673
2674         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2675         (remque): Likewise.
2676         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2677         variable.
2678
2679 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2680
2681         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2682         not being tested.
2683
2684 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2685
2686         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2687         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2688         call.
2689         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2690         (__condvar_cleanup1): Likewise.
2691
2692 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2693
2694         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2695         New
2696         (__pthread_unwind): Renamed to ...
2697         (PTHREAD_UNWIND): This.
2698         (__pthread_enable_asynccancel): Replace
2699         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2700
2701 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2702
2703         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2704         (CLONE_NEWCGROUP): New macro.
2705
2706         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2707         (Q_GETNEXTQUOTA): New macro.
2708
2709 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2710
2711         [BZ #19907]
2712         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2713         buffer updated by the previous run.
2714         * string/test-memcpy.c (do_one_test): Likewise.
2715         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2716         * string/test-memmove.c (do_one_test): Likewise.
2717
2718 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2719
2720         [BZ #20094]
2721         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2722         not [__USE_XOPEN].
2723         (unlockpt): Likewise.
2724         (ptsname): Likewise.
2725         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2726         variable.
2727
2728         [BZ #20076]
2729         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2730         instead of [__USE_UNIX98].
2731         (S_ISSOCK): Likewise.
2732         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2733         variable.
2734
2735         [BZ #20074]
2736         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2737         [__USE_POSIX].
2738         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2739         variable.
2740
2741         [BZ #20051]
2742         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2743         (ttyslot): Do not declare.
2744         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2745         (ttyslot): New prototype.
2746         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2747         variable.
2748         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2749
2750 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2751
2752         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2753
2754 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2755
2756         Fix race condition in tst-mallocfork2, use fewer resources.
2757         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2758         to current process group.
2759         (signal_sender): Yield in the non-sleeping case.
2760
2761 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2762
2763         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2764         (ecvt): Likewise.
2765         (fcvt): Likewise.
2766         (gcvt): Likewise.
2767         (getsubopt): Likewise.
2768         (grantpt): Likewise.
2769         (initstate): Likewise.
2770         (l64a): Likewise.
2771         (mktemp): Likewise.
2772         (mkstemp): Likewise.
2773         (ptsname): Likewise.
2774         (random): Likewise.
2775         (realpath): Likewise.
2776         (setstate): Likewise.
2777         (srandom): Likewise.
2778         (ttyslot): Likewise.
2779         (unlockpt): Likewise.
2780         (valloc): Likewise.
2781
2782         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2783         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2784         variable.
2785
2786 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2787
2788         [BZ #20072]
2789         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2790         init_cpu_features only if SHARED is defined.
2791         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2792
2793 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2794
2795         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2796         non-inclusive caches on Intel processors.
2797
2798 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2799
2800         * malloc/malloc.c (dumped_main_arena_start)
2801         (dumped_main_arena_end): New variables.
2802         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2803         (do_check_chunk): Skip dumped fake mmapped chunks.
2804         (munmap_chunk): Likewise.
2805         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2806         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2807         mmapped chunks.
2808         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2809         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2810         and dumped_main_arena_end to cover the dumped heap.
2811
2812 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2813
2814         * conform/data/time.h-data (getdate_err): Do not expect for
2815         [XPG3].
2816         (getdate): Likewise.
2817         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2818         variable.
2819
2820         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2821         (F_ULOCK): Likewise.
2822         (F_TEST): Likewise.
2823         (F_TLOCK): Likewise.
2824         (useconds_t): Likewise.
2825         (intptr_t): Do not expect for [XPG3] or [XPG4].
2826         (brk): Do not expect for [XPG3]
2827         (fchown): Likewise.
2828         (fchdir): Likewise.
2829         (ftruncate): Likewise.
2830         (getdtablesize): Likewise.
2831         (gethostid): Likewise.
2832         (getpagesize): Likewise.
2833         (getpgid): Likewise.
2834         (getsid): Likewise.
2835         (getwd): Likewise.
2836         (lchown): Likewise.
2837         (lockf): Likewise.
2838         (readlink): Likewise.
2839         (sbrk): Likewise.
2840         (setpgrp): Likewise.
2841         (setregid): Likewise.
2842         (setreuid): Likewise.
2843         (symlink): Likewise.
2844         (sync): Likewise.
2845         (truncate): Likewise.
2846         (ualarm): Likewise.
2847         (usleep): Likewise.
2848         (vfork): Likewise.
2849         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2850         variable.
2851
2852         [BZ #20054]
2853         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2854         not [__USE_UNIX98].
2855         * conform/data/unistd.h-data (gethostname): Do not expect for
2856         [XPG3].
2857
2858         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2859         [!POSIX] (S_IFBLK): Likewise.
2860         [!POSIX] (S_IFCHR): Likewise.
2861         [!POSIX] (S_IFIFO): Likewise.
2862         [!POSIX] (S_IFREG): Likewise.
2863         [!POSIX] (S_IFDIR): Likewise.
2864         [!POSIX] (S_IFLNK): Likewise.
2865         [!POSIX] (S_IFSOCK): Likewise.
2866         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2867         variable.
2868         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2869
2870 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2871
2872         * sysdeps/aarch64/memset.S (__memset):
2873         Rewrite of optimized memset.
2874
2875 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2876
2877         [BZ #19703]
2878         Partially async-signal-safe fork for single-threaded processes.
2879         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2880         variable.  Do not acquire and reset/release malloc and libio locks
2881         in single-threaded processes.
2882         * malloc/tst-mallocfork2.c: New file.
2883         * malloc/Makefile (tests): Add it.
2884
2885 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2886
2887         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2888         argument.  Use scratch buffer instead of extend_alloca.
2889         (gethosts): Use scratch buffer instead of extend_alloca.
2890         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2891         extend_alloca.
2892         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2893
2894 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2895
2896         [BZ #20055]
2897         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2898         instead of [__USE_UNIX98].
2899         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2900         [__USE_UNIX98].
2901         * conform/data/termios.h-data (tcgetsid): Do not expect for
2902         [XPG3].
2903         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2904         variable.
2905         (test-xfail-XPG4/termios.h/conform): Likewise.
2906
2907 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2908
2909         Do not use mcheck in localedef.
2910         * locale/programs/localedef.c (turn_on_mcheck)
2911         (__malloc_initialize_hook): Remove.
2912
2913 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2914
2915         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2916         * sysdeps/s390/s390-64/Makefile: Likewise.
2917
2918 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2919
2920         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2921         Remove ifunc-defines.sym.
2922         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2923         Likewise.
2924         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2925         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2926         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2927         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2928         rtld-global-offsets.sym.
2929         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2930         * sysdeps/x86/cpu-features-offsets.sym: This.
2931         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2932         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2933
2934 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2935
2936         [BZ #20073]
2937         * io/sys/stat.h (fchmod): Declare for
2938         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2939         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2940         variable.
2941
2942         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2943         [XPG3] (S_IFSOCK): Likewise.
2944         [XPG3] (S_ISVTX): Likewise.
2945         [XPG3] (S_ISLNK): Likewise.
2946         [XPG3] (S_ISSOCK): Likewise.
2947         [XPG3] (fchmod): Likewise.
2948         [XPG3] (lstat): Likewise.
2949         [XPG3] (mknod): Likewise.
2950
2951         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2952         [XPG3].  Expect type long and XFAIL for [XPG4].
2953         (st_blocks): Likewise.
2954
2955         [BZ #20044]
2956         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2957         (pthread_atfork): New prototype.
2958         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2959         variable.
2960
2961         [BZ #20043]
2962         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2963         prototype.
2964
2965 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2966
2967         [BZ #20017]
2968         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2969         gmtime.
2970
2971 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2972
2973         [BZ #19994]
2974         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2975         flag in _res.options.
2976
2977 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2978
2979         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2980         [XPG3 || XPG4].
2981         (blksize_t): Likewise.
2982         (clockid_t): Likewise.
2983         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2984         variable.
2985         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2986
2987 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2988
2989         * sysdeps/unix/sysv/linux/s390/init-first.c:
2990         Add VDSO_SYMBOL(getcpu).
2991         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2992         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2993         Add VDSO_SYMBOL(getcpu).
2994         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2995         New define HAVE_GETCPU_VSYSCALL.
2996         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2997
2998 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2999
3000         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
3001         instead of <sysdeps/x86_64/cacheinfo.c>.
3002         * sysdeps/x86_64/cacheinfo.c: Moved to ...
3003         * sysdeps/x86/cacheinfo.c: Here.
3004
3005 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3006
3007         * malloc/malloc-internal.h: Adjust header file guard.
3008
3009 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3010
3011         [BZ #19787]
3012         * inet/getnameinfo.c (check_sprintf_result): New function.
3013         (CHECKED_SNPRINTF): New macro.
3014         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
3015         to the host buffer.
3016         (gni_host_local): Use checked_copy to copy the host name.
3017         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
3018         (gni_serv_local): Use checked_copy to copy the service name.
3019         (getnameinfo): Remove unnecessary truncation of result buffers.
3020
3021 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3022
3023         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
3024         in case of inet_ntop failure.
3025
3026 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3027
3028         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
3029         avoid long lines.
3030         (gni_host_inet_numeric): Likewise.  Reduce scope of local
3031         variables.
3032         (gni_host_inet, gni_host_local): Add comment.
3033         (gni_host): Add comment.  Use temporary to avoid long lines.
3034
3035 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3036
3037         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
3038         registers specifiers where general purpose registers specifiers should
3039         have been used.
3040
3041 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3042
3043         [BZ #19779]
3044         CVE-2016-1234
3045         Avoid copying names of directory entries.
3046         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
3047         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
3048         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
3049         (struct readdir_result): New type.
3050         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
3051         (GL_READDIR): New macros.
3052         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
3053         (convert_dirent, convert_dirent64): New functions.
3054         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
3055         convert_dirent64.  Adjust references to the readdir result.
3056         * sysdeps/unix/sysv/linux/i386/glob64.c:
3057         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
3058         * posix/bug-glob2.c (LONG_NAME): Define.
3059         (filesystem): Add LONG_NAME.
3060         (my_DIR): Increase the size of room_for_dirent.
3061
3062 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
3063
3064         [BZ #20041]
3065         * misc/sys/select.h (__need_timespec): Only define if
3066         [__USE_XOPEN2K].
3067         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
3068         variable.
3069         (test-xfail-XPG4/utmpx.h/conform): Likewise.
3070         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
3071         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
3072
3073 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3074             Segher Boessenkool  <segher@gcc.gnu.org>
3075
3076         [BZ #20004]
3077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
3078         (__novec_swapcontext): Add missing load.
3079
3080 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
3081
3082         [BZ #20023]
3083         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
3084         <time.h>.
3085         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
3086         variable.
3087         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
3088
3089 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3090
3091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
3092         flags CLONE_VM compare.
3093
3094 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3095
3096         [BZ #20031]
3097         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
3098         completely empty.
3099
3100 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3101
3102         [BZ #19573]
3103         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
3104         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
3105         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
3106         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
3107         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
3108         (hesiod_free_list): Mark as hidden.
3109         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
3110         res_set, res_get.
3111         * hesiod/hesiod.c: Remove unnecessary forward declarations.
3112         (init, __hesiod_res_get, __hesiod_res_set): Remove.
3113         (hesiod_init): Remove obsolete res_ninit call.
3114         (hesiod_end): Do not free resolver state.  Do not invoke callback.
3115         (hesiod_bind): Do not call init.
3116         (get_txt_records): Use res_mkquery, res_send instead of
3117         res_nmkquery, res_nsend.
3118         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
3119         instead of _nss_hesiod_init.
3120         (_nss_hesiod_initgroups_dyn): Likewise.
3121         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
3122         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
3123         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
3124
3125 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3126
3127         * hesiod/hesiod_p.h (DEF_RHS): Remove.
3128         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
3129
3130 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3131
3132         * hesiod/hesiod.h: Remove RCS keyword.
3133         * hesiod/hesiod_p.h: Likewise.
3134
3135         * hesiod/hesiod.c: Likewise.
3136
3137 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
3138
3139         [BZ #12450]
3140         * locale/iso-639.def: Add Samogitian/sgs.
3141
3142 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
3143
3144         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
3145
3146         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
3147
3148 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
3149             Carlos O'Donell  <carlos@redhat.com>
3150
3151         [BZ #19072]
3152         * grp/Makefile (headers): Add grp-merge.h
3153         (routines): Add grp-merge.
3154         * grp/getgrgid_r.c: Include grp-merge.h.
3155         (DEEPCOPY_FN): Define.
3156         (MERGE_FN): Define.
3157         * grp/getgrname_r.c: Include grp-merge.h.
3158         (DEEPCOPY_FN): Define.
3159         (MERGE_FN): Define.
3160         * grp/grp-merge.c: New file.
3161         * grp/grp-merge.h: New file.
3162         * include/grp-merge.h: New file.
3163         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
3164         __copy_grp@GLIBC_PRIVATE.
3165         * manual/nss.texi (Actions in the NSS configuration): Describe
3166         return, continue, and merge.
3167         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
3168         (DEEPCOPY_FN): Define.
3169         (MERGE_FN): Define.
3170         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
3171         (DEEPCOPY_FN): Define.
3172         (MERGE_FN): Define.
3173         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
3174         [!MERGE_FN]: Define __merge_einval.
3175         (CHECK_MERGE): Define.
3176         (REENTRANT_NAME): Process merge if do_merge is true.
3177         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
3178         (__nss_getent_r): Likewise.
3179         * nss/nsswitch.c (nss_parse_service_list): Likewise.
3180         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
3181
3182 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3183
3184         [BZ #20012]
3185         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
3186         length to calculate the buffer to read.
3187         (fmemopen_write): Set the buffer position based on bytes written.
3188         (fmemopen_seek): Return EINVAL for invalid whence modes.
3189
3190         [BZ #19957]
3191         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
3192         tst-getpid2.
3193         (test): Add tst-clone2.
3194         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
3195         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
3196         pid/tid fields for CLONE_VM.
3197         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
3198         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
3199         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
3200         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
3201         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
3202         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
3203         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
3204         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
3205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
3206         Likewise.
3207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
3208         Likewise.
3209         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
3210         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
3211         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
3212         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
3213         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
3214         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
3215         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
3216         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
3217
3218 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3219
3220         [BZ #19642]
3221         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
3222         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
3223         (gni_serv_local, gni_serv): New functions extracted from
3224         getnameinfo.
3225         (getnameinfo): Call gni_host and gni_serv to perform the
3226         processing.  Always free scratch buffer.
3227
3228 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3229
3230         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
3231         remaining bytes in the dest string, with zeros.
3232
3233 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3234
3235         [BZ #20010]
3236         CVE-2016-3706
3237         * sysdeps/posix/getaddrinfo.c
3238         (convert_hostent_to_gaih_addrtuple): New function.
3239         (gethosts): Call convert_hostent_to_gaih_addrtuple.
3240         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
3241         AF_INET data.
3242
3243 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3244
3245         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
3246         callback function gl_readdir.
3247         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
3248         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
3249         (glob_in_dir): Remove len.  Use strdup instead of malloc and
3250         memcpy to copy the name.
3251         * manual/pattern.texi (Calling Glob): Document requirements for
3252         implementations of the gl_readdir callback function.
3253         * manual/examples/mkdirent.c: New example.
3254         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
3255         per the manual guidance.
3256         * posix/tst-gnuglob.c (my_readdir): Likewise.
3257
3258 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
3259
3260         [BZ #20014]
3261         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
3262         not [__USE_POSIX].
3263         (getchar_unlocked): Likewise.
3264         (putc_unlocked): Likewise.
3265         (putchar_unlocked): Likewise.
3266         (flockfile): Likewise.
3267         (ftrylockfile): Likewise.
3268         (funlockfile): Likewise.
3269         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
3270         variable.
3271         (test-xfail-XPG4/stdio.h/conform): Likewise.
3272
3273         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
3274         Expect constant.
3275         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
3276         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
3277         variable.
3278         (test-xfail-XPG4/langinfo.h/conform): Likewise.
3279         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
3280
3281         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
3282         [__USE_LARGEFILE64] (off64_t): Likewise.
3283         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
3284         variable.
3285
3286 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3287
3288         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
3289
3290 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3291
3292         * resolv/inet_addr.c: Reindent preprocessor conditionals.
3293         * resolv/res_init.c: Likewise.
3294         * resolv/res_mkquery.c: Likewise.
3295
3296 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3297
3298         * resolv/res_init.c (isascii): Do not define.  Use definition in
3299         <ctype.h>.
3300         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
3301         (LOG_AUTH): Remove.
3302         (SPRINTF): Remove, adjust caller.
3303         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
3304
3305 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3306
3307         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
3308         SUNSECURITY conditional.
3309         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
3310
3311 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3312
3313         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
3314         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
3315         Remove BSD-related preprocessor conditionals.
3316         * conf/portability.h: Remove.
3317
3318 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3319
3320         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
3321         * resolv/res_data.c: Likewise.
3322
3323 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3324
3325         * resolv/res_comp.c: Remove code conditional on __ultrix__.
3326         * resolv/res_data.c: Remove code conditional on ultrix.
3327
3328 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3329
3330         * resolv/res_init.c (RFC1535): Do not define.  Remove
3331         RFC1535 preprocessor conditionals.
3332         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
3333         because there configuration options which make the resolver
3334         behavior different.
3335
3336 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3337
3338         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
3339         RESOLVSORT preprocessor conditionals.
3340         * resolv/nss_dns/dns-host.c: Likewise.
3341         * resolv/res_init.c: Likewise.
3342
3343 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3344
3345         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
3346         is never defined.
3347
3348 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3349
3350         * inet/inet_lnaof.c: Remove SCSS keyword.
3351         * inet/inet_mkadr.c: Likewise.
3352         * inet/inet_net.c: Likewise.
3353         * inet/inet_netof.c: Likewise.
3354         * inet/rcmd.c: Likewise.
3355         * inet/rexec.c: Likewise.
3356         * inet/ruserpass.c: Likewise.
3357
3358 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3359
3360         * resolv/inet_addr.c: Remove _LIBC conditionals.
3361         * resolv/res_data.c: Likewise.
3362         * resolv/res_init.c: Likewise.
3363         * resolv/res_mkquery.c: Likewise.
3364         * resolv/res_libc.c: Update comment.
3365         * resolv/README: Update.
3366
3367 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3368
3369         * resolv/gethnamaddr.c: Remove SCSS keyword.
3370         * resolv/herror.c: Likewise.
3371         * resolv/inet_addr.c: Likewise.
3372         * resolv/inet_net_ntop.c: Likewise.
3373         * resolv/inet_net_pton.c: Likewise.
3374         * resolv/inet_neta.c: Likewise.
3375         * resolv/inet_ntop.c: Likewise.
3376         * resolv/inet_pton.c: Likewise.
3377         * resolv/ns_date.c: Remove RCS keyword.
3378         * resolv/ns_name.c: Likewise.
3379         * resolv/ns_netint.c: Likewise.
3380         * resolv/ns_parse.c: Likewise.
3381         * resolv/ns_print.c: Likewise.
3382         * resolv/ns_samedomain.c: Likewise.
3383         * resolv/ns_ttl.c: Likewise.
3384         * resolv/nsap_addr.c: Likewise.
3385         * resolv/res_comp.c: Remove SCSS and RCS keyword.
3386         * resolv/res_data.c: Remove RCS keyword.
3387         * resolv/res_debug.c: Remove SCSS and RCS keyword.
3388         * resolv/res_init.c: Likewise.
3389         * resolv/res_mkquery.c: Likewise.
3390         * resolv/res_query.c: Likewise.
3391         * resolv/res_send.c: Likewise.
3392
3393 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3394
3395         * conform/data/stdio.h-data (fdopen): Expect also for
3396         [XPG3 || XPG4].
3397
3398         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
3399         (fseeko): Likewise.
3400         (ftello): Likewise.
3401         (ftrylockfile): Likewise.
3402         (funlockfile): Likewise.
3403         (getc_unlocked): Likewise.
3404         (getchar_unlocked): Likewise.
3405         (putc_unlocked): Likewise.
3406         (putchar_unlocked): Likewise.
3407
3408 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3409
3410         [BZ #19868]
3411         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
3412         DNS packet syntax checks (which were not needed before).  Skip
3413         over non-PTR records.
3414
3415 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3416
3417         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
3418         definition.  Include <stddef.h> instead.
3419
3420 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3421
3422         [BZ #19831]
3423         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
3424         function.
3425         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
3426         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
3427
3428 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3429
3430         [BZ #19862]
3431         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
3432         (getanswer_r): Do not call syslog.
3433         (gaih_getanswer_slice): Likewise.
3434         * resolv/gethnamaddr.c (AskedForGot): Remove.
3435         (getanswer): Do not call syslog.
3436         (gethostbyaddr): Likewise.
3437
3438 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3439
3440         * conform/data/signal.h-data (union sigval): Expect also if
3441         [XOPEN2K].
3442         (struct sigevent): Likewise.
3443         (SIGEV_NONE): Likewise.
3444         (SIGEV_SIGNAL): Likewise.
3445         (SIGEV_THREAD): Likewise.
3446         (SIGRTMIN): Likewise.
3447         (SIGRTMAX): Likewise.
3448         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
3449         variable.
3450         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
3451
3452 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3453
3454         [BZ #19830]
3455         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
3456         (gaih_getanswer_slice): Likewise.
3457         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
3458         Also check for availability of RR metadata.
3459
3460 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3461
3462         [BZ #19825]
3463         * resolv/res_send.c (send_vc): Remove early *resplen2
3464         initialization.  Set *resplen2 on socket error.  Call
3465         close_and_return_error for other errors.
3466
3467 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
3468
3469         * sysdeps/unix/sysv/linux/netiucv/iucv.h
3470         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
3471         (SCM_IUCV_TRGCLS): New define.
3472
3473 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3474
3475         [BZ #20005]
3476         * libio/fmemopen.c (fmemopen_write): Update internal position after
3477         write.
3478         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
3479         * stdio-common/tst-fmemopen4.c: New file..
3480
3481 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
3482
3483         [BZ #19996]
3484         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
3485         not [__USE_XOPEN2K].
3486         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
3487         variable.
3488
3489         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
3490         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
3491         variable.
3492
3493         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
3494         [__USE_XOPEN2K8].
3495         [__USE_LARGEFILE64] (off64_t): Likewise.
3496         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
3497         variable.
3498
3499 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
3500
3501         [BZ #19989]
3502         * libio/stdio.h (cuserid): Do not declare if
3503         [__USE_XOPEN2K && !__USE_GNU].
3504         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
3505         variable.
3506
3507 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3508
3509         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3510         (sysdep_routines): Add P8 and PPC64 strcspn targets.
3511         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3512         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3513         ifunc'ed strcspn.
3514         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3515         [EALIGN]: Removed.
3516         [END]: Likewise
3517         [STRSPN]: Define instead of the above to control symbol name.
3518         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
3519         New file.
3520         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
3521         Likewise.
3522         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
3523         Likewise.
3524         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
3525         Likewise.
3526         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3527         [INITIAL_MASK]: New macro.
3528         [STRCSPN]: Likewise.
3529         [UPDATE_MASK]: Likewise.
3530         [USE_AS_STRCSPN]: Lisewise.
3531
3532 2016-04-25  Florian Weimer  <fweimer@redhat.com>
3533
3534         [BZ #19931]
3535         * stdio-common/tst-vfprintf-width-prec.c: New file.
3536         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
3537         (tests-special): Add tst-vfprintf-width-prec-mem.out.
3538         (generated): Add mtrace-related files.
3539         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
3540         (tst-%-mem.out): New pattern rule, replaces
3541         tst-printf-bz18872-mem.out.
3542         * stdio-common/vfprintf.c (vfprintf): When handling a precision
3543         specifier, deallocate any previously allocated work buffer.
3544
3545 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3546
3547         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
3548         Add nop before __startcontext, add explaining comments.
3549
3550 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
3551
3552         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
3553         any more. Notably since IPV6_PKTINFO has been reintroduced with a
3554         completely different API.
3555
3556         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
3557         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
3558         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
3559         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
3560         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
3561         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
3562         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
3563         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
3564         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
3565         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
3566
3567 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3568
3569         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
3570
3571 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
3572
3573         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
3574         when it is the default of 0.
3575
3576 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3577
3578         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
3579         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3580         (sysdep_routines): Add new strcasestr targets.
3581         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3582         (__libc_ifunc_impl_list): Likewise.
3583         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
3584         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
3585         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
3586         * sysdeps/powerpc/powerpc64/power8/Makefile:
3587         New file to add strcasestr-ppc64 to sysdep_routines.
3588         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
3589         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
3590
3591 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
3592
3593         * benchtests/Makefile (wcsmbs-benchset): Include only for
3594         native builds and runs.
3595         (LOCALES): Likewise.
3596         (bench-build): Build timing-type here instead of the bench
3597         target.  Generate locale only for native builds.
3598         * benchtests/README: Add note for cross-building.
3599
3600         * benchtests/Makefile (bench-clean): Clean up extra-objs.
3601
3602         * benchtests/README: Update README to include instructions on
3603         using bench-build.
3604
3605         * Makefile.in (bench-build): New target.
3606         * Rules (PHONY): Add bench-build target.
3607         * benchtests/Makefile (bench): Depend on bench-build.
3608         (bench-build): New target.
3609
3610 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3611
3612         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
3613         profil_reply_port.
3614         (profile_waiter): Do not initialize profil_reply_port.
3615         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
3616         frequency instead of tick length in us.
3617
3618 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
3619
3620         [BZ #18712]
3621         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3622         (__old_mempcpy_small): Likewise.
3623         (__old_strcpy_small): Likewise.
3624         (__old_stpcpy_small): Likewise.
3625         (__old_strpbrk_c2): Fix compat symbol name.
3626         (__old_strpbrk_c3): Likewise.
3627         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3628         (__mempcpy_small): Remove.
3629         (__strcpy_small): Remove.
3630         (__stpcpy_small): Remove.
3631
3632 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3633
3634         [BZ #19400]
3635         * locale/iso-639.def: Add the Talossan/tzl language.
3636
3637 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3638
3639         [BZ #16983]
3640         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3641         comment.  Add "ln" to strchr check on postal_fmt.
3642
3643 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3644
3645         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3646         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3647         tel_dom_fmt.
3648
3649 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3650
3651         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3652         (sysdep_routines): Added __strlen_power8.
3653         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3654         __strlen_power8 entry.
3655         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3656         Implementation for POWER8.
3657         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3658         for __strlen_power8.
3659         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3660         Implementation for POWER8.
3661
3662 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3663
3664         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3665
3666 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3667
3668         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3669         Goldmont and Airmont processors.
3670
3671 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3672
3673         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3674         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3675         (__STRING2_SMALL_GET32): Remove.
3676         (memset): Remove.
3677         (__memset_1): Remove.
3678         (__memset_gc): Remove.
3679         (__mempcpy): Remove.
3680         (mempcpy): Remove.
3681         (__mempcpy_args): Remove.
3682         (strchr): Remove.
3683         (strcpy): Remove.
3684         (strcpy_args): Remove.
3685         (__stpcpy_args): Remove.
3686         (__strcmp_cc): Remove.
3687         (__strcmp_gc): Remove.
3688         (strstr): Remove.
3689
3690 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3691
3692         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3693         * nis/nis_call.c (nis_server_cache_add): Likewise.
3694
3695 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3696
3697         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3698
3699 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3700
3701         * malloc/arena.c (__malloc_fork_lock_parent)
3702         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3703         internal_function attribute.
3704
3705 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3706
3707         * stdio-common/printf_fp.c (__printf_fp_l):
3708         Rename ___printf_fp_l to __printf_fp_l and
3709         remove strong alias. Use libc_hidden_def instead
3710         of ldbl_hidden_def macro.
3711
3712 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3713
3714         Remove malloc hooks from fork handler.  They are no longer needed
3715         because malloc runs right before fork, and no malloc calls from
3716         other fork handlers are not possible anymore.
3717         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3718         declarations.
3719         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3720         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3721         (atfork_recursive_cntr): Remove.
3722         (__malloc_fork_lock_parent): Do not override malloc hooks and
3723         thread_arena.
3724         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3725         thread_arena.
3726         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3727         thread_arena instead of save_arena.
3728
3729 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3730
3731         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3732         (thread_atfork, thread_atfork_static): Remove.
3733         * sysdeps/mach/hurd/malloc-machine.h:
3734         (thread_atfork, thread_atfork_static): Remove.
3735
3736 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3737
3738         [BZ #19431]
3739         Run the malloc fork handler as late as possible to avoid deadlocks.
3740         * malloc/malloc-internal.h: New file.
3741         * malloc/malloc.c: Include it.
3742         * malloc/arena.c (ATFORK_MEM): Remove.
3743         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3744         Update comment.
3745         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3746         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3747         Remove outdated comment.
3748         (ptmalloc_init): Do not call thread_atfork.  Remove
3749         thread_atfork_static.
3750         * malloc/tst-malloc-fork-deadlock.c: New file.
3751         * Makefile (tests): Add tst-malloc-fork-deadlock.
3752         (tst-malloc-fork-deadlock): Link against libpthread.
3753         * manual/memory.texi (Aligned Memory Blocks): Update safety
3754         annotation comments.
3755         * sysdeps/nptl/fork.c (__libc_fork): Call
3756         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3757         __malloc_fork_unlock_child.
3758         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3759
3760 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3761
3762         [BZ #19613]
3763         Remove union wait.
3764         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3765         (w_stopsig, w_stopval): Remove.
3766         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3767         stat_loc argument.
3768         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3769         (__WAIT_STATUS_DEFN): Remove.
3770         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3771         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3772         (wait, wait3, wait4): Use int * for the stat_loc argument.
3773         * posix/wait.c (__wait): Likewise.
3774         * posix/wait3.c (__wait3): Likewise.
3775         * posix/wait4.c (__wait4): Likewise.
3776         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3777         (__WAIT_STATUS_DEFN): Remove.
3778         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3779         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3780         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3781         argument.
3782         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3783         * sysdeps/posix/wait3.c (__wait3): Likewise.
3784         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3785         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3786         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3787         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3788         stat_loc argument.
3789         * manual/process.texi (BSD Wait Functions): Remove union wait.
3790
3791 2016-04-13  Andreas Schwab  <schwab@suse.de>
3792
3793         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3794         (test-extras): Add tst-tlsalign-vars.
3795         * math/Makefile: Wrap long lines.
3796         (libm-vec-test-wrappers): Define.
3797         (test-extras): Add $(libm-vec-test-wrappers).
3798         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3799         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3800         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3801         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3802         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3803         (extra-test-objs): Add corresponding objects.
3804
3805 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3806
3807         [BZ #19928]
3808         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3809         New.
3810         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3811         times of shared cache size.
3812         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3813         (VMOVNT): New.
3814         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3815         (VMOVNT): Likewise.
3816         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3817         (VMOVNT): Likewise.
3818         (VMOVU): Changed to movups for smaller code sizes.
3819         (VMOVA): Changed to movaps for smaller code sizes.
3820         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3821         comments.
3822         (PREFETCH): New.
3823         (PREFETCH_SIZE): Likewise.
3824         (PREFETCHED_LOAD_SIZE): Likewise.
3825         (PREFETCH_ONE_SET): Likewise.
3826         Rewrite to use forward and backward loops, which move 4 vector
3827         registers at a time, to support overlapping addresses and use
3828         non temporal store if size is above the threshold and there is
3829         no overlap between destination and source.
3830
3831 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3832
3833         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3834         Include dl-vdso.
3835         * sysdeps/unix/sysv/linux/mips/Versions: Add
3836         __vdso_clock_gettime.
3837         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3838         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3839         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3840         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3841         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3842         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3843         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3844         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3845         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3846
3847 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3848
3849         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3850         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3851         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3852         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3853         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3854         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3857         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3858         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3859         syscalls generation.
3860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3861         [__NR_pwrite64] (__NR_write): Remove define.
3862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3863         [__NR_pwrite64] (__NR_write): Remove define.
3864         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3865         Remove define.
3866         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3867         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3868         Remove define.
3869         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3870         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3871         Linux implementation as base.
3872         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3873
3874         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3875         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3876         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3877         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3880         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3881         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3882         syscall generation.
3883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3884         [__NR_pread64] (__NR_pread): Remove define.
3885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3886         [__NR_pread64] (__NR_pread): Likewise.
3887         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3888         define.
3889         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3890         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3891         Remove define.
3892         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3893         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3894         Linux implementation as base.
3895         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3896         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3897         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3898
3899         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3900         definition.
3901         (__ALIGNMENT_COUNT): Likewise.
3902         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3903         (__ALIGNMENT_COUNT): Likewise.
3904         (SYSCALL_LL): New define.
3905         (SYSCALL_LL64): Likewise.
3906         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3907         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3908         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3909         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3910
3911         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3912         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3913         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3914         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3915         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3916         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3917
3918 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3919
3920         [BZ #19865]
3921         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3922         original buffer before retry.
3923
3924 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3925
3926         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3927         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3928         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3929         GLRO(dl_auxv) list.
3930         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3931         including <ldsodefs.h>.
3932         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3933
3934 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3935
3936         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3937         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3938         $(CPPFLAGS).
3939
3940 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3941
3942         [BZ #17950]
3943         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3944         Add -mfpmath=387.
3945
3946 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3947
3948         * sysdeps/i386/configure.ac: Change == to = when calling test.
3949         * sysdeps/x86_64/configure.ac: Likewise.
3950         * sysdeps/i386/configure: Regenerated.
3951         * sysdeps/x86_64/configure: Likewise.
3952
3953 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3954
3955         [BZ #16137]
3956         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3957         * benchtests/bench-strcoll.c (input_files): Likewise.
3958         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3959         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3960         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3961
3962 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3963
3964         [BZ #19929]
3965         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3966         [__USE_XOPEN2K8 && !__USE_GNU].
3967         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3968         variable.
3969
3970         [BZ #19925]
3971         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3972         define if [!__USE_MISC && __USE_XOPEN2K].
3973         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3974         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3975         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3976         Likewise.
3977         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3978         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3979         variable.
3980         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3981
3982 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3983
3984         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3985         (sysdep_routines): Add new strspn targets.
3986         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3987         (__libc_ifunc_impl_list): Add strspn.
3988         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3989         New file.
3990         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3991         Likewise.
3992         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3993         Likewise.
3994         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3995         Likewise.
3996
3997 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3998
3999         * misc/hsearch_r.c: Include <limits.h>.
4000
4001 2016-04-07  Florian Weimer  <fweimer@redhat.com>
4002
4003         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
4004
4005 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4006
4007         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
4008         (MEMCPY_SYMBOL): New.
4009         (MEMPCPY_SYMBOL): Likewise.
4010         (MEMMOVE_CHK_SYMBOL): Likewise.
4011         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
4012         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
4013         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
4014         Provide alias for memcpy in libc.a and ld.so.
4015
4016 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4017
4018         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4019         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
4020         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
4021         Disabled fro now.
4022         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
4023         symbols.  Properly check USE_MULTIARCH on __memset symbols.
4024
4025 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4026
4027         * benchtests/Makefile (string-benchset): Add memcpy-large,
4028         memmove-large and memset-large.
4029         * benchtests/bench-memcpy-large.c: New file.
4030         * benchtests/bench-memmove-large.c: Likewise.
4031         * benchtests/bench-memmove-large.c: Likewise.
4032         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
4033
4034 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
4035
4036         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
4037         32-bit displacement to avoid long nop between instructions.
4038
4039 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
4040
4041         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
4042         a comment on VMOVU and VMOVA.
4043
4044 2016-04-04  Florian Weimer  <fweimer@redhat.com>
4045
4046         [BZ #19633]
4047         Use specified locale for number formatting in strfmon_l.
4048         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
4049         (__nl_lookup_word): New inline functions.
4050         * include/printf.h (__print_fp_l): Declare.
4051         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
4052         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
4053         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
4054         (___printf_fp): New function.
4055         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
4056         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
4057         * stdlib/tst-strfmon_l.c (do_test): New test.
4058         * stdlib/Makefile (tests): Add kt.
4059         (LOCALES): Build additional locales.
4060         (tst-strfmon_l.out): Require locales.
4061
4062 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
4063
4064         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
4065         if not in libc.
4066         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4067         Likewise.
4068         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
4069         Likewise.
4070         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4071         Likewise.
4072
4073 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
4074
4075         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4076         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
4077         with unaligned_erms.
4078         (__memmove_erms): Skip if source == destination.
4079         (__memmove_unaligned_erms): Don't check source == destination
4080         first.
4081
4082 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4083
4084         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
4085         bit_arch_Fast_Copy_Backward for Intel Core proessors.
4086
4087 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4088
4089         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
4090         * string/strspn.c (strspn): Likewise.
4091
4092 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4093
4094         * benchtests/bench-memset.c (do_test): Support 64-byte
4095         alignment.
4096         (test_main): Test 64-byte alignment.
4097
4098 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4099
4100         * benchtests/bench-memmove.c (test_main): Test 64-byte
4101         alignment.
4102
4103 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4104
4105         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
4106
4107 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4108
4109         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
4110         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
4111         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
4112
4113         * string/strpbrk.c (strpbrk): Rewrite function.
4114         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
4115         (__strpbrk_c2): Likewise.
4116         (__strpbrk_c3): Likewise.
4117         * string/string-inlines.c
4118         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
4119         Likewise.
4120         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
4121         Likewise.
4122
4123         * string/strspn.c (strcspn): Rewrite function.
4124         * string/bits/string2.h (strspn): Use __builtin_strcspn.
4125         (__strspn_c1): Remove inline function.
4126         (__strspn_c2): Likewise.
4127         (__strspn_c3): Likewise.
4128         * string/string-inlines.c
4129         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
4130         compatibility symbol.
4131         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
4132         Likewise.
4133         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
4134         Likewise.
4135         * string/string-inlines.c: Include generic version.
4136
4137 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
4138             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4139
4140         * string/Version (libc): Add GLIBC_2.24.
4141         * string/strcspn.c (strcspn): Rewrite function.
4142         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
4143         (__strcspn_c1): Remove inline function.
4144         (__strcspn_c2): Likewise.
4145         (__strcspn_c3): Likewise.
4146         * string/string-inline.c
4147         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
4148         compatibility symbol.
4149         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
4150         Likewise.
4151         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
4152         Likewise.
4153         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
4154
4155 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
4156
4157         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4158         Use ahi instead of aghi to adjust stack pointer.
4159
4160 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4161
4162         [BZ #19853]
4163         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
4164         TEST to take significant digits as second parameter.
4165         [TEST]: Redefine in terms of TEST_N taking 30
4166         significant digits.
4167         (do_test): Add test case to demonstrate precision
4168         failure in the ldbl-128ibm printf.
4169         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
4170         (__mpn_extract_long_double): Carry 7 extra intermediate
4171         bits of precision to aide computing difference when
4172         signs differ.
4173
4174 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4175
4176         [BZ #19881]
4177         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4178         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
4179         memset-avx512-unaligned-erms.
4180         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4181         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
4182         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
4183         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
4184         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
4185         __memset_sse2_unaligned_erms, __memset_erms,
4186         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
4187         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
4188         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
4189         file.
4190         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4191         Likewise.
4192         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
4193         Likewise.
4194         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
4195         Likewise.
4196
4197 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4198
4199         [BZ #19776]
4200         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4201         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
4202         memmove-avx512-unaligned-erms.
4203         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4204         (__libc_ifunc_impl_list): Test
4205         __memmove_chk_avx512_unaligned_2,
4206         __memmove_chk_avx512_unaligned_erms,
4207         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
4208         __memmove_chk_sse2_unaligned_2,
4209         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
4210         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
4211         __memmove_avx512_unaligned_erms, __memmove_erms,
4212         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
4213         __memcpy_chk_avx512_unaligned_2,
4214         __memcpy_chk_avx512_unaligned_erms,
4215         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
4216         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
4217         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
4218         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
4219         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
4220         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
4221         __mempcpy_chk_avx512_unaligned_erms,
4222         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
4223         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
4224         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
4225         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
4226         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
4227         __mempcpy_erms.
4228         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
4229         file.
4230         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4231         Likwise.
4232         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
4233         Likwise.
4234         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4235         Likwise.
4236
4237 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4238
4239         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
4240         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
4241         (La_s390_64_regs): Likewise.
4242         (La_s390_32_retval): Append vector register lrv_v24.
4243         (La_s390_64_retval): Likeweise.
4244         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4245         Handle extended structs La_s390_32_regs and La_s390_32_retval.
4246         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4247         Handle extended structs La_s390_64_regs and La_s390_64_retval.
4248
4249 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4250
4251         [BZ #19916]
4252         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
4253         to create a non-vector/vector version for _dl_runtime_resolve and
4254         _dl_runtime_profile. Move implementation to ...
4255         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
4256         (_dl_runtime_resolve) Save and restore fpr/vrs.
4257         (_dl_runtime_profile) Save and restore vrs and fix some issues
4258         if _dl_call_pltexit is called.
4259         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
4260         Choose the correct resolver function if running on a machine with vx.
4261         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
4262         to create a non-vector/vector version for _dl_runtime_resolve and
4263         _dl_runtime_profile. Move implementation to ...
4264         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
4265         (_dl_runtime_resolve) Save and restore fpr/vrs.
4266         (_dl_runtime_profile) Save and restore vrs and fix some issues
4267         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
4268         Choose the correct resolver function if running on a machine with vx.
4269
4270 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4271
4272         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
4273
4274 2016-03-31  Florian Weimer  <fweimer@redhat.com>
4275
4276         [BZ #19509]
4277         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
4278         skip_map != NULL.
4279         * elf/tst-dlsym-error.c: New file.
4280         * elf/Makefile (tests): Add tst-dlsym-error.
4281         (tst-dlsym-error): Link against libdl.
4282
4283 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
4284
4285         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4286         (__ASSUME_FUTIMESAT): Remove macro.
4287         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
4288
4289 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4290
4291         [BZ #19879]
4292         CVE-2016-3075
4293         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
4294         copy name.
4295
4296 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4297
4298         [BZ #19837]
4299         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
4300         error if parse_line fails.
4301
4302 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4303
4304         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
4305         (index_cpu_ERMS): Likewise.
4306         (reg_ERMS): Likewise.
4307
4308 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
4309
4310         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
4311         PER_LINUX_FDPIC): Add.
4312
4313 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4314
4315         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4316         memcpy-avx512-no-vzeroupper.
4317         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
4318         to ...
4319         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
4320         (MEMCPY): Don't define.
4321         (MEMCPY_CHK): Likewise.
4322         (MEMPCPY): Likewise.
4323         (MEMPCPY_CHK): Likewise.
4324         (MEMPCPY_CHK): Renamed to ...
4325         (__mempcpy_chk_avx512_no_vzeroupper): This.
4326         (MEMPCPY_CHK): Renamed to ...
4327         (__mempcpy_chk_avx512_no_vzeroupper): This.
4328         (MEMCPY_CHK): Renamed to ...
4329         (__memmove_chk_avx512_no_vzeroupper): This.
4330         (MEMCPY): Renamed to ...
4331         (__memmove_avx512_no_vzeroupper): This.
4332         (__memcpy_avx512_no_vzeroupper): New alias.
4333         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
4334
4335 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4336
4337         [BZ #18858]
4338         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4339         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
4340         and mempcpy-avx512-no-vzeroupper.
4341         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
4342         New.
4343         (MEMPCPY): Likewise.
4344         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
4345         (MEMPCPY_CHK): New.
4346         (MEMPCPY): Likewise.
4347         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
4348         (MEMPCPY): Likewise.
4349         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
4350         (MEMPCPY): Likewise.
4351         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
4352         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
4353         Likewise.
4354         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
4355         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
4356
4357 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4358              Amit Pawar  <Amit.Pawar@amd.com>
4359
4360         [BZ #19583]
4361         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4362         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
4363         processors.  Set Fast_Copy_Backward for AMD Excavator
4364         processors.
4365         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
4366         New.
4367         (index_arch_Fast_Unaligned_Copy): Likewise.
4368         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
4369         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
4370
4371 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4372
4373         [BZ #19791]
4374         * resolv/res_send.c (close_and_return_error): New function.
4375         (send_dg): Initialize *resplen2 after reopen failure.  Call
4376         close_and_return_error for error returns.  On error paths without
4377         __res_iclose, initialze *resplen2 explicitly.  Update comment for
4378         successful return.
4379
4380 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4381
4382         [BZ# 19860]
4383         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
4384         zero if the compiler does not provide the AVX512F bit.
4385
4386 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
4387
4388         [BZ #19848]
4389         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
4390         from 8 to 4.
4391         (__ieee754_powl): Compare integer exponent against 4 not 8.
4392         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
4393         from 8 to 4.
4394         (__ieee754_powl): Compare integer exponent against 4 not 8.
4395         * math/auto-libm-test-in: Add more tests of pow.
4396         * math/auto-libm-test-out: Regenerated.
4397         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
4398         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4399
4400 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4401
4402         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
4403         Make code unconditional.
4404         [!__NR_utimensat]: Remove conditional code.
4405         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
4406         Make code unconditional.
4407         [!__NR_utimensat]: Remove conditional code.
4408         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
4409         Make code unconditional.
4410         [!__NR_utimensat]: Remove conditional code.
4411
4412 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4413
4414         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
4415         Make code unconditional.
4416
4417 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
4418
4419         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
4420         call-clobbered %eax on retry path.
4421         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
4422
4423 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4424
4425         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
4426         Don't set %rcx twice before "rep movsb".
4427
4428 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4429
4430         [BZ #19583]
4431         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
4432         inline.  Check family before setting family, model and
4433         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
4434         bits here.
4435         (init_cpu_features): Replace HAS_CPU_FEATURE and
4436         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
4437         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
4438         for Intel processors with usable AVX2.  Call get_common_indeces
4439         for other processors with family == NULL.
4440         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
4441         (CPU_FEATURES_ARCH_P): Likewise.
4442         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
4443         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
4444
4445 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4446
4447         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
4448         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
4449         $(shared-thread-library) instead of hardcoding the path to libpthread.
4450
4451 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
4452
4453         * sysdeps/unix/sysv/linux/kernel-features.h
4454         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
4455         * sysdeps/unix/sysv/linux/getdents.c
4456         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
4457         [!have_no_getdents64_defined]: Likewise.
4458         (__GETDENTS): Remove __have_no_getdents64 conditional.
4459
4460 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
4461
4462         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
4463         Remove macro.
4464         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
4465         <kernel-features.h>.
4466         (signalfd) [__NR_signalfd4]: Make code unconditional.
4467         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
4468
4469 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4470
4471         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
4472         style.
4473
4474 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4475
4476         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
4477         (__pthread_enable_asynccancel): Use JUMPTARGET to call
4478         __pthread_unwind.
4479         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4480         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
4481         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4482         (__condvar_cleanup1): Likewise.
4483
4484 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
4485
4486         [BZ #19822]
4487         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
4488         move it to the final $@ location.
4489
4490 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4491
4492         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
4493         access where posix_spawn success and pid argument is null.
4494         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
4495         success case.
4496
4497 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
4498
4499         * sysdeps/mach/hurd/i386/c++-types.data: New file.
4500
4501         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
4502
4503         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
4504         and __fcntl.
4505         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
4506         __fcntl only.
4507         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
4508         adding attribute_hidden to __open and __fcntl.
4509
4510         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
4511         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
4512         depend on libc-modules.h,
4513         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
4514
4515 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
4516
4517         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
4518         Remove macro.
4519         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
4520         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
4521         entry.
4522
4523         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
4524         Remove macro.
4525         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
4526         include <kernel-features.h>.
4527         [!__ASSUME_FALLOCATE]: Remove conditional code.
4528         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
4529
4530 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4531
4532         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
4533         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
4534         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
4535         (_ZGVdN4v_cos_avx2): Likewise.
4536         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
4537         (_ZGVdN4v_cos): Likewise.
4538         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
4539         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
4540         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
4541         (_ZGVdN4v_exp_avx2): Likewise.
4542         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
4543         (_ZGVdN4v_exp): Likewise.
4544         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
4545         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
4546         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
4547         (_ZGVdN4v_log_avx2): Likewise.
4548         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
4549         (_ZGVdN4v_log): Likewise.
4550         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
4551         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
4552         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
4553         (_ZGVdN4vv_pow_avx2): Likewise.
4554         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
4555         (_ZGVdN4vv_pow): Likewise.
4556         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
4557         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
4558         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
4559         (_ZGVdN4v_sin_avx2): Likewise.
4560         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
4561         (_ZGVdN4v_sin): Likewise.
4562         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
4563         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
4564         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
4565         (_ZGVdN4vvv_sincos_avx2): Likewise.
4566         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
4567         (_ZGVdN4vvv_sincos): Likewise.
4568         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
4569         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
4570         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
4571         (_ZGVbN4v_cosf_sse4): Likewise.
4572         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
4573         (_ZGVdN8v_cosf_avx2): Likewise.
4574         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
4575         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
4576         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
4577         (_ZGVbN4v_expf_sse4): Likewise.
4578         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
4579         (_ZGVdN8v_expf_avx2): Likewise.
4580         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
4581         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
4582         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
4583         (_ZGVbN4v_logf_sse4): Likewise.
4584         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
4585         (_ZGVdN8v_logf_avx2): Likewise.
4586         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
4587         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
4588         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
4589         (_ZGVbN4vv_powf_sse4): Likewise.
4590         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
4591         (_ZGVdN8vv_powf_avx2): Likewise.
4592         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
4593         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
4594         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
4595         (_ZGVbN4vvv_sincosf_sse4): Likewise.
4596         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
4597         (_ZGVdN8vvv_sincosf_avx2): Likewise.
4598         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
4599         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
4600         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
4601         (_ZGVbN4v_sinf_sse4): Likewise.
4602         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
4603         (_ZGVdN8v_sinf_avx2): Likewise.
4604         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4605         Use JUMPTARGET to call callee.
4606         (WRAPPER_IMPL_SSE2_ff): Likewise.
4607         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4608         (WRAPPER_IMPL_AVX): Likewise.
4609         (WRAPPER_IMPL_AVX_ff): Likewise.
4610         (WRAPPER_IMPL_AVX_fFF): Likewise.
4611         (WRAPPER_IMPL_AVX512): Likewise.
4612         (WRAPPER_IMPL_AVX512_ff): Likewise.
4613         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4614         Likewise.
4615         (WRAPPER_IMPL_SSE2_ff): Likewise.
4616         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4617         (WRAPPER_IMPL_AVX): Likewise.
4618         (WRAPPER_IMPL_AVX_ff): Likewise.
4619         (WRAPPER_IMPL_AVX_fFF): Likewise.
4620         (WRAPPER_IMPL_AVX512): Likewise.
4621         (WRAPPER_IMPL_AVX512_ff): Likewise.
4622         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4623
4624 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4625
4626         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4627         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4628         qualifier.
4629         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4630         internal_function qualifiers.
4631
4632 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4633
4634         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4635         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4636         * math/atest-exp.c (exp_mpn): Mark chk unused.
4637         * math/atest-exp2.c (exp_mpn): Likwise.
4638         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4639         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4640
4641 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4642
4643         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4644         Remove macro.
4645         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4646         <kernel-features.h>.
4647         [__NR_ppoll]: Make code unconditional.
4648         [!__ASSUME_PPOLL]: Remove conditional code.
4649
4650         * sysdeps/unix/sysv/linux/kernel-features.h
4651         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4652         (__ASSUME_ACCEPT4): Likewise.
4653         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4654         Define.
4655         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4656         Likewise.
4657         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4658         Likewise.
4659         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4660         Likewise.
4661         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4662         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4663         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4664         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4665         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4666         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4667         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4668         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4669         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4670         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4671         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4672         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4673         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4674         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4675         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4676         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4677         Likewise.
4678         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4679         Likewise.
4680         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4681         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4682         0x040300].
4683         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4684         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4685         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4686         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4687         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4688         0x030300].
4689         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4690         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4691         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4692         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4693         0x040300].
4694         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4695         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4696         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4697         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4698         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4699         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4700         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4701         0x030300].
4702         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4703         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4704         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4705         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4706         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4707         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4708         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4709         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4710         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4711         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4712         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4713         0x040300].
4714         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4715         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4716         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4717         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4718         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4719         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4720         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4721         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4722         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4723         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4724         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4725         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4726         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4727         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4728         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4729         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4730         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4731         Likewise.
4732         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4733         Likewise.
4734
4735 2016-03-15  Andreas Schwab  <schwab@suse.de>
4736
4737         [BZ #19257]
4738         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4739         statp->_u._ext.nscount as loop count.
4740
4741 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4742
4743         * math/test-signgam-finite-c99.c: Also #undef
4744         __LIBC_INTERNAL_MATH_INLINES.
4745         * math/test-signgam-main.c: Likewise.
4746
4747 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4748
4749         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4750         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4751         (MADV_FREE): Likewise.
4752         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4753         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4754         EPOLLEXCLUSIVE.
4755
4756 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4757
4758         * timezone/README: Remove mention of checktab.awk. Mention wiki
4759         SharedSourceFiles.
4760
4761 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4762
4763         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4764         WUNTRACED.
4765
4766 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4767
4768         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4769         order to match the type of p when calling atomic_exchange_acq().
4770
4771 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4772
4773         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4774         cfi_offset calls.
4775         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4776         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4777         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4778         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4779         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4780
4781 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4782
4783         * timezone/checktab.awk: Removed.
4784
4785 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4786
4787         * manual/math.texi (Errors in Math Functions): Document relaxed
4788         accuracy goals for IBM long double.
4789         * math/libm-test.inc (test_exceptions): Always allow spurious
4790         "underflow" and "inexact" exceptions for IBM long double.
4791
4792 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4793
4794         [BZ #19762]
4795         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4796         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4797         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4798         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4799         (bit_arch_*): This for feature array.
4800         (bit_*): Renamed to ...
4801         (bit_cpu_*): This for cpu array.
4802         (index_*): Renamed to ...
4803         (index_arch_*): This for feature array.
4804         (index_*): Renamed to ...
4805         (index_cpu_*): This for cpu array.
4806         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4807         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4808         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4809         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4810         bit_##name with index_cpu_##name and bit_cpu_##name.
4811         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4812         bit_##name with index_arch_##name and bit_arch_##name.
4813
4814 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4815
4816         [BZ #19792]
4817         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4818         Terminate FDE before return label.
4819
4820 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4821
4822         [BZ #19790]
4823         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4824         (rintl): Define as macro.
4825         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4826         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4827         of fesetround.  Ensure results are evaluated before end of scope.
4828         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4829         USE_AS_NEARBYINTL and include s_rintl.c.
4830         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4831         Disable exception traps in new environment.
4832         (libc_feholdsetround_ppc_ctx): Likewise.
4833
4834 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4835
4836         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4837         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4838         (tst_audit10_aux) [__AVX512F__]: ... here.
4839
4840 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4841
4842         * include/sys/auxv.h: New file.
4843
4844 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4845
4846         [BZ #19759]
4847         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4848
4849 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4850
4851         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4852         operand modifier.
4853         (feclearexcept): Likewise.
4854
4855 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4856
4857         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4858         to reflect the entire 32-bit HWCAP.
4859         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4860         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4861
4862 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4863
4864         [BZ #19783]
4865         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4866         $(test-via-rtld-prefix).
4867         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4868
4869 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4870
4871         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4872         union wait.  Report any non-zero exit status as error.
4873
4874 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4875
4876         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4877         configured with --enable-hardcoded-path-in-tests.
4878
4879 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4880
4881         [BZ #19677]
4882         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4883         (__ieee754_remainderl): Put zero low parts in canonical form.
4884         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4885         file.  Based on
4886         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4887         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4888         with wrapper round test-fmodrem-ldbl-128ibm.c.
4889         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4890         file.
4891         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4892         Likewise.
4893         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4894         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4895
4896 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4897
4898         [BZ #19610]
4899         * elf/ldconfig.c (opt_link): Update comment.
4900         (options): Update help string for option -X.
4901         (search_dir): Unlink stale symbolic link only if updating symbolic
4902         links.
4903         * elf/tst-ldconfig-X.sh: New file.
4904         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4905         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4906
4907 2016-03-07  Andreas Schwab  <schwab@suse.de>
4908
4909         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4910         needed arguments.
4911
4912 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4913
4914         [BZ #15333]
4915         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4916         to lstat64.
4917
4918 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4919
4920         * libio/filedoalloc.c (isatty): Remove.
4921         (local_isatty): Add comment.  Call __isatty directly.
4922         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4923         * libio/wfiledoalloc.c (isatty): Remove.
4924         (_IO_wfile_doallocate): Update comment.
4925
4926 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4927
4928         [BZ #19269]
4929         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4930         tst-audit4-aux.o.
4931         (tst-audit10): Depend on tst-audit10-aux.o.
4932         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4933         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4934         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4935         instead of inline AVX code.
4936         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4937         instead of inline AVX512 code.
4938         * sysdeps/x86_64/tst-audit4-aux.c: New file
4939         * sysdeps/x86_64/tst-audit10-aux.c: New file
4940
4941         [BZ #19648]
4942         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4943
4944 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4945
4946         [BZ #14750]
4947         [BZ #10354]
4948         [BZ #18433]
4949         * include/sched.h (__clone): Add hidden prototype.
4950         (__clone2): Likewise.
4951         * include/unistd.h (__dup): Likewise.
4952         * posix/Makefile (tests): Add tst-spawn2.
4953         * posix/tst-spawn2.c: New file.
4954         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4955         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4956         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4957         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4958         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4959         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4960         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4961         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4962         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4963         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4964         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4966         Likewise.
4967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4968         Likewise.
4969         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4970         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4971         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4972         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4973         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4974         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4975         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4976         * sysdeps/unix/sysv/linux/nptl-signals.h
4977         (____nptl_is_internal_signal): New function.
4978         * sysdeps/unix/sysv/linux/spawni.c: New file.
4979
4980         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4981         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4982         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4983         * posix/tst-execvp2.c (do_test): Likewise.
4984         * posix/tst-execvp3.c (do_test): Likewise.
4985         * posix/tst-execvp4.c (do_test): Likewise.
4986         * posix/tst-execvpe1.c: New file.
4987         * posix/tst-execvpe2.c: Likewise.
4988         * posix/tst-execvpe3.c: Likewise.
4989         * posix/tst-execvpe4.c: Likewise.
4990         * posix/tst-execvpe5.c: Likewise.
4991         * posix/tst-execvpe6.c: Likewise.
4992
4993         [BZ #19534]
4994         * posix/execl.c (execl): Remove dynamic memory allocation.
4995         * posix/execle.c (execle): Likewise.
4996         * posix/execlp.c (execlp): Likewise.
4997
4998 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4999
5000         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
5001         Replace .text with .text.avx512.
5002         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
5003         Likewise.
5004
5005 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
5006
5007         * sysdeps/generic/libnsl.abilist: New file.
5008         * sysdeps/generic/libutil.abilist: New file.
5009
5010 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
5011
5012         [BZ #19762]
5013         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
5014         HAS_ARCH_FEATURE with Fast_Rep_String.
5015         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
5016         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
5017         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
5018         Likewise.
5019         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
5020         Likewise.
5021         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
5022         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
5023         Likewise.
5024         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
5025         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
5026         Likewise.
5027
5028 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5029
5030         [BZ #19745]
5031         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
5032         with *%rax in call.
5033
5034 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5035
5036         [BZ #19745]
5037         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
5038         with *__libc_start_main@GOTPCREL(%rip) in call.
5039
5040 2016-03-04  Roland McGrath  <roland@hack.frob.com>
5041
5042         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
5043         inside conditional for nonempty $(CXX).
5044
5045         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
5046         nonempty.
5047
5048         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
5049         to test for empty $(CXX) rather than $(CXX) of "no".
5050
5051 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5052
5053         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
5054
5055 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
5056             H.J. Lu  <hongjiu.lu@intel.com>
5057
5058         [BZ #18880]
5059         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
5060         instead of Slow_BSF, and also check for Fast_Copy_Backward to
5061         enable __memcpy_ssse3_back.
5062
5063 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5064
5065         [BZ #19758]
5066         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
5067         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
5068
5069 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
5070
5071         [BZ #19490]
5072         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
5073         (__fentry__): Likewise.
5074
5075 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5076
5077         * gmon/Makefile (noprof): Add $(sysdep_noprof).
5078         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
5079
5080 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
5081
5082         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
5083         __mcount_internal directly.
5084         (C_LABEL(__fentry__)): Likewise.
5085         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
5086         directly.
5087
5088 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
5089
5090         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5091         (__start_context): Call __setcontext directly.
5092
5093 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
5094
5095         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5096         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5097         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
5098         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5099         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5100         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5101         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
5102         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5103         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5104         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
5105         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5106         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5107         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5108         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5109         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5110         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5111         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
5112         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5113         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5114         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5115         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
5116         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5117         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5118         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5119         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
5120         Remove conditional code.
5121         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5122         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
5123         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5124         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5125         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
5126         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5127         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5128         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5129         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5130         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5131         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5132         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5133
5134 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
5135
5136         * NEWS (2.23): Fix typo in bug 19048 text.
5137
5138 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
5139
5140         [BZ #14259]
5141         * Makeconfig: Rename msgcatdir to localedir.
5142         Rename inst_msgcatdir to inst_localedir.
5143         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
5144         * config.make.in: Add localedir.
5145         * elf/Makefile ($(objpfx)sotruss): Use localedir.
5146         (ldd-rewrite): Likewise.
5147         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
5148         (install-others): Use inst_localedir.
5149         (CPPFLAGS): Use localedir.
5150         * locale/Makefile (locale-CPPFLAGS): Likewise.
5151         * po/Makefile (mo-installed): Use inst_localedir.
5152
5153         [BZ #19575]
5154         * localedata/charmaps/GB18030: Update comments regarding PAU to
5155         non-PUA mappings.
5156
5157 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
5158
5159         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
5160         test for header.
5161         * sysdeps/unix/sysv/linux/configure: Regenerated.
5162         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
5163         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
5164         Remove conditional code.
5165         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
5166
5167         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
5168         Define to 3.2.0.
5169         (arch_minimum_kernel): Likewise.
5170         * sysdeps/unix/sysv/linux/configure: Regenerated.
5171         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
5172         Define to 2.6.32.
5173         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
5174         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
5175         (arch_minimum_kernel): Define to 2.6.32.
5176         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
5177         * README: Document Linux 3.2 requirement.
5178         * manual/install.texi (Linux): Document Linux 3.2 headers
5179         requirement.
5180         * INSTALL: Regenerated.
5181
5182 2016-02-24  Andreas Schwab  <schwab@suse.de>
5183
5184         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
5185         if !NO_LONG_DOUBLE.
5186
5187 2016-02-22  Roland McGrath  <roland@hack.frob.com>
5188
5189         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
5190         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
5191
5192 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
5193
5194         [BZ #19512]
5195         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
5196
5197 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5198
5199         * posix/tst-dir.c: Include libc-internal.h.
5200
5201 2016-02-20  Florian Weimer  <fweimer@redhat.com>
5202
5203         [BZ #19056]
5204         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
5205         * manual/filesys.texi (Reading/Closing Directory): Mention
5206         deprecaion.
5207         * posix/tst-dir.c (main): Disable deprecation warning in test.
5208
5209 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
5210
5211         [BZ #19679]
5212         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
5213         Renamed to ...
5214         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
5215         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5216         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
5217         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5218         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5219         * sysdeps/x86_64/dl-trampoline.h
5220         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5221         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5222
5223 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5224
5225         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
5226
5227 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5228
5229         * elf/elf.h (R_386_GOT32X): New.
5230         (R_386_NUM): Update.
5231         (R_X86_64_GOTPCRELX: New.
5232         (R_X86_64_REX_GOTPCRELX): New.
5233         (R_X86_64_NUM): Update.
5234
5235 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
5236
5237         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
5238
5239 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
5240
5241         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
5242         assign attr->stackaddr to it, and adjust it down when
5243         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
5244         [_STACK_GROWS_UP]: Delete assert.
5245         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
5246         Implement stack grows up logic.
5247         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
5248         stack grows up logic.
5249
5250 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5251
5252         * NEWS: Update with 2.24 template.
5253
5254 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5255
5256         [BZ #19678]
5257         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5258         Ensure +0.0 is returned when taking the next value below the least
5259         positive value.
5260
5261 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5262
5263         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
5264         available.  Do not define NO_THREADS.
5265         * malloc/malloc.c: Do not check NO_THREADS.
5266         * malloc/arena.c: Likewise.
5267
5268 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5269
5270         * malloc/malloc.c (__libc_mallinfo): Update comment.
5271         (struct malloc_par): Remove max_total_mem member, it was always 0.
5272         (int_mallinfo): Store 0 into usmblks (no functional change).
5273         * malloc/hooks.c (struct malloc_state): Document that
5274         max_total_mem is always 0.
5275         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
5276         always 0.
5277         * manual/memory.texi (Statistics of Malloc): Likewise.
5278
5279 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5280
5281         * malloc/malloc.c (sysmalloc): Do not update arena_max.
5282         * malloc/arena.c (arena_max): Remove.
5283         (heap_trim, _int_new_arena): Do not update arena_max.
5284
5285 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5286
5287         * resolv/res_init.c (res_ninit): Update comment.
5288
5289 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5290
5291         [BZ #19505]
5292         * posix/spawn_int.h: Add headers and include guard.
5293         (__spawn_valid_fd): New function.
5294         * posix/spawn_faction_addopen.c
5295         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
5296         * posix/spawn_faction_addclose.c
5297         (posix_spawn_file_actions_addclose): Likewise.
5298         * posix/spawn_faction_adddup2.c
5299         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
5300         second file descriptor.
5301         * posix/spawn_valid_fd.c: New file.
5302         * posix/tst-posix_spawn-fd.c: New file.
5303         * posix/Makefile (routines): Add spawn_valid_fd.
5304         (tests): Add tst-posix_spawn-fd.
5305
5306 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5307
5308         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
5309         (do_test): Limit the number of arenas, so that we can use fewer
5310         outer threads.  Limit timeout to 3 seconds, in preparation for a
5311         larger TIMEOUT value.
5312
5313 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5314
5315         [BZ #19674]
5316         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
5317         sign in overflowing and underflowing results when overflow or
5318         underflow is detected early.  Include sign in result before rather
5319         than after scaling.
5320
5321         [BZ #19603]
5322         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
5323         (__ieee754_remainderl): Adjust sign of integer version of low part
5324         when taking absolute value of high part.
5325         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5326         * math/libm-test.inc (remainder_test_data): Add another test.
5327         (remquo_test_data): Likewise.
5328
5329 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
5330
5331         [BZ #19602]
5332         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
5333         equal high parts and both low parts zero specially.
5334         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
5335         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
5336         Add test-fmodl-ldbl-128ibm.
5337
5338         [BZ #19595]
5339         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
5340         common logic for all cases of shifting subnormal results.  Do not
5341         insert sign bit in shifted mantissa.  Always pass -1023 as biased
5342         exponent to ldbl_insert_mantissa in subnormal case.
5343
5344         [BZ #19594]
5345         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
5346         on high and low parts then adjust result and use
5347         ldbl_canonicalize_int if needed.
5348
5349         [BZ #19593]
5350         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
5351         on high part and __floor or __ceil on low part then use
5352         ldbl_canonicalize_int if needed.
5353
5354         [BZ #19592]
5355         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
5356         high and low parts then use ldbl_canonicalize_int if needed.
5357
5358         [BZ #17899]
5359         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
5360         New function.
5361         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
5362         on high and low parts then use ldbl_canonicalize_int if needed.
5363
5364 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5365
5366         * configure: Regenerated.
5367
5368         * po/libc.pot: Regenerated.
5369
5370         * po/be.po: Updated translation.
5371         * po/bg.po: Likewise.
5372         * po/ca.po: Likewise.
5373         * po/cs.po: Likewise.
5374         * po/da.po: Likewise.
5375         * po/el.po: Likewise.
5376         * po/eo.po: Likewise.
5377         * po/es.po: Likewise.
5378         * po/fi.po: Likewise.
5379         * po/fr.po: Likewise.
5380         * po/gl.po: Likewise.
5381         * po/hr.po: Likewise.
5382         * po/hu.po: Likewise.
5383         * po/ia.po: Likewise.
5384         * po/id.po: Likewise.
5385         * po/it.po: Likewise.
5386         * po/ja.po: Likewise.
5387         * po/lt.po: Likewise.
5388         * po/nb.po: Likewise.
5389         * po/nl.po: Likewise.
5390         * po/pt_BR.po: Likewise.
5391         * po/rw.po: Likewise.
5392         * po/sk.po: Likewise.
5393         * po/sl.po: Likewise.
5394         * po/sv.po: Likewise.
5395         * po/tr.po: Likewise.
5396         * po/zh_CN.po: Likewise.
5397         * po/zh_TW.po: Likewise.
5398
5399         * version.h (RELEAES): Set to "development".
5400         (VERSION): Set to 2.23.90.
5401
5402         * version.h (RELEASE): Set to "stable".
5403         (VERSION): Set to 2.23.
5404         * include/feature.h (__GLIBC_MINOR__): Set to 23.
5405
5406         * NEWS: Updated fixed bugs.
5407
5408 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5409             Wilco Dijkstra  <wdijkstr@arm.com>
5410
5411         [BZ #19462]
5412         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
5413         (_STRING_INLINE_unaligned): This.
5414         * include/string.h: Include <string_private.h>.
5415         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
5416         _STRING_INLINE_unaligned.
5417         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
5418         (_STRING_INLINE_unaligned): New.
5419         * sysdeps/aarch64/string_private.h: New file.
5420         * sysdeps/generic/string_private.h: Likewise.
5421         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
5422         * sysdeps/s390/string_private.h: Likewise.
5423         * sysdeps/x86/string_private.h: Likewise.
5424         * sysdeps/m68k/m680x0/m68020/bits/string.h
5425         (_STRING_ARCH_unaligned): Renamed to ...
5426         (_STRING_INLINE_unaligned): This.
5427         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
5428         to ...
5429         (_STRING_INLINE_unaligned): This.
5430         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
5431         to ...
5432         (_STRING_INLINE_unaligned): This.
5433         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
5434         to ...
5435         (_STRING_INLINE_unaligned): This.
5436
5437 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
5438             H.J. Lu  <hongjiu.lu@intel.com>
5439
5440         [BZ #19590]
5441         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
5442         relocation.
5443
5444 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
5445
5446         [BZ #18665]
5447         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
5448         *herrno_p.
5449         (gaih_getanswer): Document functional behviour. Return tryagain
5450         if any result is tryagain.
5451         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
5452         when freed.
5453         * resolv/res_send.c: Add copyright text.
5454         (__libc_res_nsend): Document that MAXPACKET is expected.
5455         (send_vc): Document. Remove buffer reuse.
5456         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
5457         size of the buffer. Add Dprint for truncated UDP buffer.
5458
5459 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
5460
5461         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
5462         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
5463         * INSTALL: Regenerate.
5464
5465 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
5466             Jonathan Wakely  <jwakely@redhat.com>
5467             Carlos O'Donell  <carlos@redhat.com>
5468
5469         [BZ 19439]
5470         * math/Makefile (tests): Add test-math-isinff.
5471         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
5472         * math/bits/mathcalls.h [__USE_MISC]: Use
5473         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
5474         functions not in C++11 and which don't conflict e.g. isinff,
5475         isinfl etc.
5476         * math/test-math-isinff.cc: New file.
5477
5478 2016-02-12  Florian Weimer  <fweimer@redhat.com>
5479
5480         * misc/bug18240.c (do_test): Set RLIMIT_AS.
5481
5482 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5483
5484         [BZ #19529]
5485         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
5486
5487 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5488
5489         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5490
5491 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
5492
5493         [BZ #19550]
5494         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
5495         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
5496         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
5497         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
5498         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
5499         New syscall entry.
5500         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
5501         New syscall entry.
5502         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
5503         syscall entry.
5504
5505 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5506
5507         [BZ #18240]
5508         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
5509         unsigned int wraparound.
5510
5511 2016-01-27  Florian Weimer  <fweimer@redhat.com>
5512
5513         [BZ #18240]
5514         * misc/bug18240.c: New test.
5515         * misc/Makefile (tests): Add it.
5516
5517 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
5518             Joseph Myers  <joseph@codesourcery.com>
5519
5520         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
5521         load in branch delay slot when less than a word of input left.
5522
5523 2016-01-27  Andreas Schwab  <schwab@suse.de>
5524
5525         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
5526         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
5527         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
5528         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
5529
5530 2016-01-26  David S. Miller  <davem@davemloft.net>
5531
5532         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
5533
5534 2016-01-25  David S. Miller  <davem@davemloft.net>
5535
5536         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
5537         __sqrtl_finite.
5538         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
5539         instead using versioned_symbol.
5540         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
5541         of entries.
5542
5543         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
5544         __sqrtl_finite to GLIBC_2.23
5545
5546 2016-01-25  Ricchard Henderson  <rth@redhat.com>
5547
5548         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5549
5550 2016-01-25  Andreas Schwab  <schwab@suse.de>
5551
5552         [BZ #17514]
5553         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
5554         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
5555         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
5556         * nptl/tst-mutex-errorcheck.c: New file.
5557
5558 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5559
5560         [BZ #18560]
5561         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
5562         (IPCOP_semop): Likewise.
5563         (IPCOP_semget): Likewise.
5564         (IPCOP_semctl): Likewise.
5565         (IPCOP_msgsnd): Likewise.
5566         (IPCOP_msgrcv): Likewise.
5567         (IPCOP_msgget): Likewise.
5568         (IPCOP_msgctl): Likewise.
5569         (IPCOP_shmat): Likewise.
5570         (IPCOP_shmdt): Likewise.
5571         (IPCOP_shmget): Likewise.
5572         (IPCOP_shmctl): Likewise.
5573
5574 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5575
5576         * string/tst-endian.c: Include <libc-internal.h>.
5577         (do_test): Ignore tautological-compare warnings around
5578         "htobeXX (beXXtoh (i)) != i" and
5579         "htoleXX (leXXtoh (i)) != i" if-statements.
5580
5581 2016-01-24  David S. Miller  <davem@davemloft.net>
5582
5583         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
5584         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
5585         alias.
5586         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5587         __sqrtl_finite.
5588
5589         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5590
5591 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
5592
5593         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
5594         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
5595         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5596
5597 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5598
5599         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
5600         (thread_func): Use new function to simplify barrier check.
5601         (do_test): Use new function to simplify checking barrier exit
5602         code, and actually join the child thread.
5603
5604 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5605
5606         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
5607         semicolon.
5608         (__libc_tend): Likewise.
5609         (__libc_tabort): Likewise.
5610
5611 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
5612
5613         * sysdeps/nios2/libm-test-ulps: Update.
5614         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
5615         (__gtsf2): Likewise.
5616         (__unorddf2): Likewise.
5617         (__unordsf2): Likewise.
5618         (__ledf2): Likewise.
5619
5620 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
5621
5622         * nis/nis_table.c (__follow_path): Disable diagnostic for
5623         uninitialized variable that is a false positive for gcc 4.7.
5624         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5625
5626 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5627
5628         * sysdeps/nacl/lowlevellock-futex.h
5629         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5630         Always evaluate PRIVATE argument.
5631
5632 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5633
5634         [BZ #19490]
5635         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5636         (pthread_cond_broadcast): Use ENTRY/END
5637         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5638         (pthread_cond_signal): Likewise.
5639         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5640         Likewise.
5641         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5642         Likewise.
5643         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5644         Likewise.
5645
5646 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5647
5648         * sysdeps/ieee754/dbl-64/s_finite.c
5649         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5650         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5651         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5652         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5653         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5654
5655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5656         (__gtsf2): Add as optional for libc.so.
5657         (__unordsf2): Likewise.
5658         (__signbit): Remove for libc.so.
5659         (__signbitl): Likewise.
5660
5661 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5662
5663         * iconvdata/bug-iconv11.c (test_ibm93x):
5664         Use %zu printf format specifier for size_t argument.
5665
5666 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5667
5668         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5669         already-recorded ulps.
5670         * sysdeps/arm/libm-test-ulps: Regenerated.
5671         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5672         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5673         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5674
5675 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5676             Paul Pluzhnikov  <ppluzhnikov@google.com>
5677
5678         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5679         assembler not supporting AVX-512.
5680
5681 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5682
5683         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5684
5685 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5686
5687         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5688         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5689
5690         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5691
5692         * sysdeps/arm/libm-test-ulps: Regenerated.
5693
5694 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5695
5696         [BZ #19451]
5697         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5698
5699 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5700
5701         [BZ #19486]
5702         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5703         * sysdeps/generic/fix-fp-int-convert-overflow.h
5704         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5705         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5706         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5707         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5708         Likewise.
5709         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5710         Avoid conversions to long int where inexact exceptions
5711         could be raised.
5712         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5713         Likewise.
5714         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5715         Avoid conversions to long long int where inexact exceptions
5716         could be raised.
5717         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5718         Likewise.
5719
5720 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5721
5722         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5723         * configure: Regenerated.
5724
5725 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5726
5727         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5728
5729 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5730
5731         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5732         outside of comment.
5733
5734 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5735
5736         * nptl/tst-barrier1.c: Add description on first line.
5737         * nptl/tst-barrier2.c: Likewise.
5738         * nptl/tst-barrier3.c: Likewise.
5739         * nptl/tst-barrier4.c: Likewise.
5740         * nptl/tst-barrier5.c: Likewise.
5741
5742 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5743
5744         [BZ #18868]
5745         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5746
5747 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5748
5749         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5750         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5751         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5752         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5753         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5754         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5755         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5756         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5757         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5758         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5759         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5760
5761 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5762
5763         [BZ #13065]
5764         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5765         new implementation.
5766         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5767         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5768         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5769         (BARRIER_IN_THRESHOLD): New macro.
5770         * nptl/pthread_barrierattr_setpshared.c
5771         (pthread_barrierattr_setpshared): Clean up.
5772         * nptl/tst-barrier4.c: Correct comment.
5773         * nptl/tst-barrier5.c: New file.
5774         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5775         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5776         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5777         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5778         * nptl/lowlevelbarrier.sym: Remove.
5779         * nptl/DESIGN-barrier.txt: Remove.
5780         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5781         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5782         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5783         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5784         error.
5785         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5786         implementation.
5787
5788 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5789
5790         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5791         (do_child): Mask SIGRTMIN while thr is running.
5792
5793 2016-01-15  Martin Sebor  <msebor@redhat.com>
5794
5795         [BZ #19432]
5796         * iconvdata/Makefile: Add bug-iconv11.
5797         * iconvdata/bug-iconv11.c: New test.
5798         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5799         * iconvdata/ibm933.c: Same.
5800         * iconvdata/ibm935.c: Same.
5801         * iconvdata/ibm937.c: Same.
5802         * iconvdata/ibm939.c: Same.
5803
5804 2016-01-15  Martin Sebor  <msebor@redhat.com>
5805
5806         [BZ #19443]
5807         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5808         [DEBUG] (_ufc_set_bits): Declare used.
5809         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5810         [DEBUG] (print_all): Declare used.
5811         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5812         operands of the ternary ?: expression to target type.
5813         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5814         calling the undeclared abort.
5815         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5816
5817 2016-01-15  Martin Sebor  <msebor@redhat.com>
5818
5819         [BZ #18755]
5820         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5821         warnings.
5822         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5823         (__gai_create_helper_thread): Same.
5824         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5825         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5826         to suppress -Wmaybe-uninitialized warnings.
5827
5828 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5829
5830         [BZ #19465]
5831         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5832         inside if.
5833         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5834         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5835         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5836
5837 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5838
5839         [BZ #19466]
5840         * time/tst-mktime2.c (time_t_max): Removed.
5841         (time_t_min): Likewise.
5842         (TYPE_SIGNED): New.
5843         (TYPE_MINIMUM): Likewise.
5844         (TYPE_MAXIMUM): Likewise.
5845         (TIME_T_MIN): Likewise.
5846         (TIME_T_MAX): Likewise.
5847         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5848         and TIME_T_MIN.
5849         (do_test): Likewise.
5850
5851 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5852
5853         [BZ #19467]
5854         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5855         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5856
5857 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5858
5859         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5860
5861 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5862
5863         * benchtests/Makefile (PYTHON): Define.
5864         (bench-func): Use $(PYTHON) to run python scripts.
5865         ($(objpfx)bench-%.c): Likewise.
5866
5867 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5868
5869         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5870         leading slash when `file_name' is "/".
5871
5872 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5873
5874         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5875         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5876         Likewise.
5877         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5878         Likewise.
5879         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5880         Likewise.
5881         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5882         enum constant and macro.
5883         (PTRACE_SETSIGMASK): Likewise.
5884         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5885         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5886         (PTRACE_GETSIGMASK): Likewise.
5887         (PTRACE_SETSIGMASK): Likewise.
5888         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5889         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5890         Likewise.
5891         (PTRACE_SETSIGMASK): Likewise.
5892         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5893         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5894         (PTRACE_GETSIGMASK): Likewise.
5895         (PTRACE_SETSIGMASK): Likewise.
5896         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5897         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5898         Likewise.
5899         (PTRACE_SETSIGMASK): Likewise.
5900         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5901         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5902         Likewise.
5903         (PTRACE_SETSIGMASK): Likewise.
5904         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5905         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5906         Likewise.
5907         (PTRACE_SETSIGMASK): Likewise.
5908         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5909
5910 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5911             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5912
5913         [BZ #19439]
5914         * math/bits/mathcalls.h
5915         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5916         prototype.
5917         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5918
5919 2016-01-11  Andreas Schwab  <schwab@suse.de>
5920
5921         [BZ #19253]
5922         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5923         cache when TZDEFRULES was used.
5924         * time/tst-tzname.c: New file.
5925         * time/Makefile (test): Add tst-tzname.
5926         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5927         * timezone/Makefile (test-zones): Add $(posixrules-file).
5928         ($(testdata)/$(posixrules-file)): New rule.
5929
5930 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5931
5932         Fix doc quoting problems with Texinfo 5
5933         Without this change, in the info file output, Texinfo 5 quotes code
5934         in text with undirected single quotes 'like this' and generates
5935         code examples that with many PDF readers cannot be cut out of PDFs
5936         and pasted into code.
5937         * manual/libc.texinfo: Configure the libc manual like the GNU
5938         Emacs manual, by using @documentencoding and setting
5939         txicodequoteundirected and txicodequotebacktick.  This way,
5940         Texinfo 5 quotes code in text with directed single quotes ‘like
5941         this’ and produces examples that can be cut out of PDFs.  This
5942         change causes Texinfo 5 to generate info files that contain UTF-8
5943         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5944         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5945
5946 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5947
5948         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5949         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5950         barriers to their respective compiler built-ins.
5951         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5952         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5953         * sysdeps/powerpc/sysdep.h: Likewise.
5954         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5955         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5956         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5957
5958 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5959
5960         * scripts/config.guess: Revert previous shebang change.
5961         * scripts/config.sub: Likewise.
5962         * scripts/mkinstalldirs: Likewise.
5963
5964 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5965
5966         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5967         PPC_FEATURE2_HAS_IEEE128.
5968         * sysdeps/powerpc/dl-procinfo.c:
5969         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5970
5971 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5972
5973         [BZ #19415]
5974         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5975         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5976         (_dl_lookup_address): Rewrite using function resolver trampoline.
5977         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5978         two bits in address.
5979
5980 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5981
5982         * longlong.h: Change !__SHMEDIA__ to
5983         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5984         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5985
5986 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5987             Joseph Myers  <joseph@codesourcery.com>
5988             Mark Shinwell  <shinwell@codesourcery.com>
5989             Andrew Stubbs  <ams@codesourcery.com>
5990             Rich Felker <dalias@libc.org>
5991
5992         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5993
5994 2016-01-07  Richard Henderson  <rth@redhat.com>
5995
5996         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5997
5998 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5999
6000         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
6001         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
6002         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
6003         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
6004         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
6005
6006 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
6007             Joseph Myers  <joseph@codesourcery.com>
6008
6009         * timezone/private.h: Update from tzcode 2015g.
6010         * timezone/tzfile.h: Likewise.
6011         * timezone/tzselect.ksh: Likewise.
6012         * timezone/zdump.c: Likewise.
6013         * timezone/zic.c: Likewise.
6014         * timezone/ialloc.c: Remove file.
6015         * timezone/scheck.c: Likewise.
6016         * timezone/Makefile (extra-objs): Remove variable.
6017         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
6018         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
6019         -Wno-maybe-uninitialized.
6020         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
6021         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
6022         (CFLAGS-ialloc.c): Remove variable.
6023         (CFLAGS-scheck.c): Likewise.
6024         * timezone/README: Update list of files from tzcode.
6025
6026 2016-01-07  Khem Raj  <raj.khem@gmail.com>
6027
6028         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
6029         instead of __fxprintf when _LIBC is undefined.
6030
6031 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
6032
6033         * catgets/test-gencat.sh: Remove space after shebang.
6034         * conform/GlibcConform.pm: Likewise.
6035         * conform/check-header-lists.sh: Likewise.
6036         * conform/conformtest.pl: Likewise.
6037         * conform/linknamespace.pl: Likewise.
6038         * conform/list-header-symbols.pl: Likewise.
6039         * debug/catchsegv.sh: Likewise.
6040         * elf/genrtldtbl.awk: Likewise.
6041         * elf/tst-pathopt.sh: Likewise.
6042         * elf/tst-rtld-load-self.sh: Likewise.
6043         * grp/tst_fgetgrent.sh: Likewise.
6044         * iconvdata/gen-8bit-gap-1.sh: Likewise.
6045         * iconvdata/gen-8bit-gap.sh: Likewise.
6046         * iconvdata/gen-8bit.sh: Likewise.
6047         * iconvdata/run-iconv-test.sh: Likewise.
6048         * intl/tst-gettext.sh: Likewise.
6049         * intl/tst-gettext2.sh: Likewise.
6050         * intl/tst-gettext4.sh: Likewise.
6051         * intl/tst-gettext6.sh: Likewise.
6052         * intl/tst-translit.sh: Likewise.
6053         * io/ftwtest-sh: Likewise.
6054         * libio/test-freopen.sh: Likewise.
6055         * locale/gen-translit.pl: Likewise.
6056         * malloc/tst-mtrace.sh: Likewise.
6057         * manual/check-safety.sh: Likewise.
6058         * manual/libc-texinfo.sh: Likewise.
6059         * manual/tsort.awk: Likewise.
6060         * manual/xtract-typefun.awk: Likewise.
6061         * nptl/tst-cancel-wrappers.sh: Likewise.
6062         * nptl/tst-tls6.sh: Likewise.
6063         * posix/globtest.sh: Likewise.
6064         * posix/tst-getconf.sh: Likewise.
6065         * posix/wordexp-tst.sh: Likewise.
6066         * scripts/check-c++-types.sh: Likewise.
6067         * scripts/check-local-headers.sh: Likewise.
6068         * scripts/config.guess: Likewise.
6069         * scripts/config.sub: Likewise.
6070         * scripts/cpp: Likewise.
6071         * scripts/cross-test-ssh.sh: Likewise.
6072         * scripts/documented.sh: Likewise.
6073         * scripts/evaluate-test.sh: Likewise.
6074         * scripts/gen-libc-abis: Likewise.
6075         * scripts/gen-sorted.awk: Likewise.
6076         * scripts/list-fixed-bugs.py: Likewise.
6077         * scripts/merge-test-results.sh: Likewise.
6078         * scripts/mkinstalldirs: Likewise.
6079         * scripts/rellns-sh: Likewise.
6080         * scripts/test-installation.pl: Likewise.
6081         * scripts/update-copyrights: Likewise.
6082         * stdio-common/tst-printf.sh: Likewise.
6083         * stdio-common/tst-unbputc.sh: Likewise.
6084         * stdlib/tst-fmtmsg.sh: Likewise.
6085         * stdlib/tst-setcontext3.sh: Likewise.
6086         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
6087         * sysdeps/unix/make-syscalls.sh: Likewise.
6088
6089 2016-01-06  John David Anglin  <dave.anglin@bell.net>
6090
6091         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
6092         asm stw with atomic_exchange_rel.  Add explanatory comment.
6093         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
6094         Likewise.
6095
6096 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6097
6098         [BZ #19122]
6099         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
6100         * sysdeps/generic/dl-unistd.h: New file.
6101         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
6102
6103 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6104
6105          [BZ #19122]
6106          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
6107          * sysdeps/generic/dl-mman.h: New file.
6108          * sysdeps/mach/hurd/dl-mman.h: Likewise.
6109
6110 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
6111
6112         * manual/texinfo.tex: Update to version 2016-01-04.21 with
6113         trailing whitespace removed.
6114         * scripts/config.guess: Update to version 2016-01-01.
6115         * scripts/config.sub: Update to version 2016-01-01.
6116         * scripts/move-if-change: Update from gnulib.
6117
6118 2016-01-04  Anton Blanchard  <anton@samba.org>
6119
6120         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
6121         for array indices.
6122         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
6123
6124 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
6125
6126         * NEWS: Update copyright dates.
6127         * catgets/gencat.c (print_version): Likewise.
6128         * csu/version.c (banner): Likewise.
6129         * debug/catchsegv.sh: Likewise.
6130         * debug/pcprofiledump.c (print_version): Likewise.
6131         * debug/xtrace.sh (do_version): Likewise.
6132         * elf/ldconfig.c (print_version): Likewise.
6133         * elf/ldd.bash.in: Likewise.
6134         * elf/pldd.c (print_version): Likewise.
6135         * elf/sotruss.sh: Likewise.
6136         * elf/sprof.c (print_version): Likewise.
6137         * iconv/iconv_prog.c (print_version): Likewise.
6138         * iconv/iconvconfig.c (print_version): Likewise.
6139         * locale/programs/locale.c (print_version): Likewise.
6140         * locale/programs/localedef.c (print_version): Likewise.
6141         * login/programs/pt_chown.c (print_version): Likewise.
6142         * malloc/memusage.sh (do_version): Likewise.
6143         * malloc/memusagestat.c (print_version): Likewise.
6144         * malloc/mtrace.pl: Likewise.
6145         * manual/libc.texinfo: Likewise.
6146         * nptl/version.c (banner): Likewise.
6147         * nscd/nscd.c (print_version): Likewise.
6148         * nss/getent.c (print_version): Likewise.
6149         * nss/makedb.c (print_version): Likewise.
6150         * posix/getconf.c (main): Likewise.
6151         * scripts/test-installation.pl: Likewise.
6152         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
6153
6154         * All files with FSF copyright notices: Update copyright dates
6155         using scripts/update-copyrights.
6156         * intl/plural.c: Regenerated.
6157         * locale/programs/charmap-kw.h: Likewise.
6158         * locale/programs/locfile-kw.h: Likewise.
6159
6160 2016-01-02  Helge Deller  <deller@gmx.de>
6161
6162         [BZ #19285]
6163         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
6164         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
6165         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
6166         (MADV_xxK_PAGES): Remove.
6167
6168 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
6169
6170         [BZ #15421]
6171         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
6172         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
6173         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
6174         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
6175
6176 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
6177
6178         [BZ #19408]
6179         * sysdeps/unix/sysv/linux/personality.c: New file.
6180         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
6181         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
6182         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
6183         (sysdep_routines): Add personality.
6184         (tests): Add tst-personality.
6185         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
6186         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
6187         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
6188         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
6189         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
6190         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
6191         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
6192         Likewise.
6193         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
6194         Likewise.
6195         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
6196         Likewise.
6197         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
6198         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
6199         Likewise.
6200
6201 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
6202
6203         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
6204         (PATH_ARM_SYSTYPE): Remove.
6205         (PATH_CPUINFO): Likewise.
6206         (IO_BASE_FOOTBRIDGE): Likewise.
6207         (IO_SHIFT_FOOTBRIDGE): Likewise.
6208         (struct platform): Likewise.
6209         (init_iosys): Remove compatibility code for 2.4 kernels.
6210         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
6211
6212 2015-12-29  Florian Weimer  <fweimer@redhat.com>
6213
6214         * malloc/tst-malloc-thread-fail.c: New file.
6215         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
6216         (tst-malloc-thread-fail): Link against libpthread.
6217
6218 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
6219
6220         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
6221         (get_parser): New function.
6222         (main): New function.
6223
6224 2015-12-29  Rob Wu  <rob@robwu.nl>
6225
6226         [BZ #19369]
6227         * resolv/res_init.c (__res_vinit): Reset defdname before use.
6228
6229 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
6230
6231         [BZ #19270]
6232         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6233
6234 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
6235
6236         [BZ #15421]
6237         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
6238
6239 2015-12-23  Torvald Riegel  <triegel@redhat.com>
6240
6241         [BZ #13690]
6242         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
6243         after releasing it.
6244         (__lll_robust_unlock): Likewise.
6245         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6246         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
6247         (lll_robust_unlock): Likewise.
6248         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
6249         Prevent warnings in callers.
6250
6251 2015-12-23  Florian Weimer  <fweimer@redhat.com>
6252
6253         * malloc/arena.c (list_lock): Update comment.
6254
6255 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6256
6257         * sysdeps/powerpc/hwcapinfo.c: Export symbol
6258         __parse_hwcap_and_convert_at_platform to libc.a.
6259
6260 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6261
6262         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
6263         platform and feature support for POWER9.
6264         * sysdeps/powerpc/dl-procinfo.h: Likewise.
6265         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
6266         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
6267         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
6268         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
6269         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
6270         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
6271         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
6272
6273 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6274
6275         Harmonize generic stdio-lock support with nptl
6276
6277         This fixes build when _IO_funlockfile is a macro, fixes build where
6278         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
6279         stack unwind.
6280
6281         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
6282         _IO_release_lock ): Use cleanup attribute on new
6283         _IO_acquire_lock_file variable instead of assuming that
6284         _IO_release_lock will be called.
6285         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
6286         _IO_acquire_lock_needs_exceptions_enabled.
6287         (_IO_acquire_lock_clear_flags2): New macro.
6288
6289 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6290
6291         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
6292
6293 2015-12-21  Florian Weimer  <fweimer@redhat.com>
6294
6295         [BZ #19182]
6296         * malloc/arena.c (list_lock): Document lock ordering requirements.
6297         (free_list_lock): New lock.
6298         (ptmalloc_lock_all): Comment on free_list_lock.
6299         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
6300         (detach_arena): Update comment.  free_list_lock is now needed.
6301         (_int_new_arena): Use free_list_lock around detach_arena call.
6302         Acquire arena lock after list_lock.  Add comment, including FIXME
6303         about incorrect synchronization.
6304         (get_free_list): Switch to free_list_lock.
6305         (reused_arena): Acquire free_list_lock around detach_arena call
6306         and attached threads counter update.  Add two FIXMEs about
6307         incorrect synchronization.
6308         (arena_thread_freeres): Switch to free_list_lock.
6309         * malloc/malloc.c (struct malloc_state): Update comments to
6310         mention free_list_lock.
6311
6312 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6313
6314         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
6315         Remove functions.
6316         (sloww, sloww1): Accept argument to offset quadrant.
6317         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
6318         quadrant.
6319         (__sin, __cos): Consolidate common code into new functions.
6320         (reduce_sincos_1, do_sincos_1): New functions.
6321         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6322
6323         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
6324         code to new functions.
6325         (reduce_sincos_2, do_sincos_2): New functions.
6326         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6327
6328         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
6329         common code for sincos.
6330         (__cos) [!IN_SINCOS]: Likewise.
6331         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
6332         New function.
6333         (__sincos): Use it.
6334
6335 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
6336
6337         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
6338         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
6339         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6340
6341 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
6342
6343         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
6344         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
6345         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
6346         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
6347         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6348         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
6349         index_Prefer_No_VZEROUPPER): New feature.
6350         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
6351         Prefer_No_VZEROUPPER for Knights Landing.
6352
6353 015-12-18  Torvald Riegel  <triegel@redhat.com>
6354
6355         * math/atest-exp2.c (mp_exp_m1): Remove.
6356
6357 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6358
6359         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
6360         syscalls.
6361         (__SYSCALL0): New macro.
6362         (__SYSCALL1): Likewise.
6363         (__SYSCALL2): Likewise.
6364         (__SYSCALL3): Likewise.
6365         (__SYSCALL4): Likewise.
6366         (__SYSCALL5): Likewise.
6367         (__SYSCALL6): Likewise.
6368         (__SYSCALL_CONCAT_X): Likewise.
6369         (__SYSCALL_CONCAT): Likewise.
6370         (__SYSCALL_DIST): Likewise.
6371         (__SYSCALL_CALL): Likewise.
6372
6373 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
6374
6375         [BZ #19363]
6376         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
6377
6378 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6379
6380         [BZ #19375]
6381         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
6382         negative subnormals.
6383
6384 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
6385
6386         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6387         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
6388         (INTERNAL_SYSCALL_NCS): Use it.
6389         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6390
6391 2015-12-16  Florian Weimer  <fweimer@redhat.com>
6392
6393         [BZ #19243]
6394         * malloc/arena.c (get_free_list): Remove assert and adjust
6395         reference count handling.  Add comment about reused_arena
6396         interaction.
6397         (reused_arena): Add comments abount get_free_list interaction.
6398         * malloc/tst-malloc-thread-exit.c: New file.
6399         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
6400         (tst-malloc-thread-exit): Link against libpthread.
6401
6402 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6403
6404         [BZ #19367]
6405         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
6406         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
6407         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
6408         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
6409         (index_Prefer_MAP_32BIT_EXEC): Likewise.
6410
6411 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6412
6413         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
6414         Silvermont optimizations for Knights Landing.
6415
6416 2015-12-15  Andreas Schwab  <schwab@suse.de>
6417
6418         [BZ #17197]
6419         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
6420         immediately after emitting SI.
6421         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
6422         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
6423         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
6424         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
6425         * iconvdata/bug-iconv10.c: New file.
6426         * iconvdata/Makefile (tests): Add bug-iconv10.
6427         ($(objpfx)bug-iconv10.out): New rule.
6428
6429 2015-12-15  Florian Weimer  <fweimer@redhat.com>
6430
6431         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
6432         aliasing violation.
6433
6434 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
6435
6436         [BZ #18472]
6437         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
6438         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
6439         conditionals for them.
6440         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
6441         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
6442         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
6443         sys/kdaemon.h.
6444         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
6445         compat-only syscall, obsoleted in glibc 2.23.
6446         (create_module): Likewise.
6447         (get_kernel_syms): Likewise.
6448         (query_module): Likewise.
6449         (uselib): Likewise.
6450         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
6451
6452 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
6453
6454         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
6455         <linux/version.h>.
6456         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
6457         conditional code.
6458         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
6459         and ioshift_name initialization.
6460
6461 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6462
6463         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
6464         Fix indentation.
6465
6466 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6467
6468         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
6469
6470 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6471
6472         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
6473
6474 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
6475             Jakub Wilk  <jwilk@debian.org>
6476
6477         [BZ #19347]
6478         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
6479         to change the group of the device to the tty group.
6480
6481 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6482
6483         Split large string section; add truncation advice
6484         * manual/examples/strncat.c: Remove.
6485         This example was misleading, as the code would have undefined
6486         behavior if "hello" was longer than SIZE.  Anyway, the manual
6487         shouldn't encourage strncpy+strncat for this sort of thing.
6488         * manual/string.texi (Copying Strings and Arrays): Split into
6489         three sections Copying Strings and Arrays, Concatenating Strings,
6490         and Truncating Strings, as this section was way too long.  All
6491         cross-referenced changed.  Add advice about string-truncation
6492         functions.  Remove misleading strncat example.
6493
6494 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
6495
6496         * manual/nss.texi (NSS Modules Interface): Document
6497         NSS_STATUS_NOTFOUND and SUCCESS.
6498
6499 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6500
6501         [BZ 18568]
6502         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6503         201505L, for Unicode 8.
6504
6505 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
6506
6507         * locale/C-translit.h: Regenerate.
6508
6509 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6510
6511         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
6512         and U+0153.
6513
6514 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
6515
6516         [BZ #19351]
6517         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
6518         expanding log(1+z), compare z rather than its square with epsilon
6519         to determine when to avoid evaluating the expansion.
6520
6521         [BZ #19350]
6522         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
6523         Increase overflow threshold.
6524
6525         [BZ #19349]
6526         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
6527         when small.
6528
6529         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6530         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6531         New macro.
6532         [__LINUX_KERNEL_VERSION >= 0x040300]
6533         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6534         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6535         Likewise.
6536         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6537         Likewise.
6538         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6539         Likewise.
6540         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6541         Likewise.
6542         [__LINUX_KERNEL_VERSION >= 0x040300]
6543         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6544         [__LINUX_KERNEL_VERSION >= 0x040300]
6545         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6546         [__LINUX_KERNEL_VERSION >= 0x040300]
6547         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6548         [__LINUX_KERNEL_VERSION >= 0x040300]
6549         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6550         [__LINUX_KERNEL_VERSION >= 0x040300]
6551         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6552         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6553         Likewise.
6554         [__LINUX_KERNEL_VERSION >= 0x040300]
6555         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6556         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6557         Likewise.
6558         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6559         Likewise.
6560         [__LINUX_KERNEL_VERSION >= 0x040300]
6561         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6562         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6563         Likewise.
6564         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6565         Likewise.
6566         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6567         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
6568         Likewise.
6569         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
6570         Likewise.
6571         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6572         Likewise.
6573         [__LINUX_KERNEL_VERSION >= 0x040300]
6574         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6575         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6576         Likewise.
6577         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6578         Likewise.
6579         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6580         Likewise.
6581         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6582         Likewise.
6583         [__LINUX_KERNEL_VERSION >= 0x040300]
6584         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6585         [__LINUX_KERNEL_VERSION >= 0x040300]
6586         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6587         [__LINUX_KERNEL_VERSION >= 0x040300]
6588         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6589         [__LINUX_KERNEL_VERSION >= 0x040300]
6590         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6591         [__LINUX_KERNEL_VERSION >= 0x040300]
6592         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6593         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6594         Likewise.
6595         [__LINUX_KERNEL_VERSION >= 0x040300]
6596         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6597         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6598         Likewise.
6599         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6600         Likewise.
6601         [__LINUX_KERNEL_VERSION >= 0x040300]
6602         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6603         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6604         Likewise.
6605         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6606         Likewise.
6607         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6608         (__ASSUME_SOCKET_SYSCALL): Likewise.
6609         (__ASSUME_BIND_SYSCALL): Likewise.
6610         (__ASSUME_CONNECT_SYSCALL): Likewise.
6611         (__ASSUME_LISTEN_SYSCALL): Likewise.
6612         (__ASSUME_ACCEPT_SYSCALL): Likewise.
6613         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6614         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6615         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6616         (__ASSUME_SEND_SYSCALL): Likewise.
6617         (__ASSUME_SENDTO_SYSCALL): Likewise.
6618         (__ASSUME_RECV_SYSCALL): Likewise.
6619         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6620         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
6621         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6622         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6623         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6624         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6625         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6626         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6627         Likewise.
6628         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6629         Likewise.
6630         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6631         Likewise.
6632         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6633         Likewise.
6634         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6635         Likewise.
6636         [__LINUX_KERNEL_VERSION >= 0x020625]
6637         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6638         [__LINUX_KERNEL_VERSION >= 0x020625]
6639         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6640         [__LINUX_KERNEL_VERSION >= 0x020625]
6641         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6642         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6643         Likewise.
6644         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6645         Likewise.
6646         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6647         Likewise.
6648         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6649         Likewise.
6650         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6651         Likewise.
6652         [__LINUX_KERNEL_VERSION >= 0x020625]
6653         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6654         [__LINUX_KERNEL_VERSION >= 0x020625]
6655         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6656         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6657         Likewise.
6658         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6659         Likewise.
6660
6661 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6662
6663         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6664         record the current if the current ABI and CPU support the FP64
6665         extension.
6666         (has-modd-spreg): Define to record the current if the current ABI and
6667         CPU support 32-bit floating point values in odd FPU registers.
6668         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6669         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6670         $(has-modd-spreg) equals yes.
6671         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6672         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6673         $(has-modd-spreg) equal yes.
6674
6675 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6676
6677         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6678         basename.
6679
6680 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6681
6682         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6683         (bench-string): ... here.
6684         (bench): Add bench-string.
6685         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6686         to *-benchset to reflect what they are.
6687         (benchset): Adjust.
6688
6689         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6690         cos-inputs.
6691
6692 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6693
6694         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6695         __attribute__ ((__simd__)) for vector math function declarations.
6696
6697 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6698
6699         Fix typo in strncat, wcsncat manual entries
6700         * manual/string.texi (Copying and Concatenation): Fix typos in
6701         sample implementations of strncat and wcsncat, by having them use
6702         the old value of the destination length, not the new one.
6703
6704 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6705
6706         [BZ #16961]
6707         [BZ #16962]
6708         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6709         string on the stack for strtod.
6710         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6711         a string on the stack for strtof.
6712         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6713         constructing a string on the stack for strtold.
6714         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6715         __strtold_nan to GLIBC_PRIVATE.
6716         * math/test-nan-overflow.c: New file.
6717         * math/test-nan-payload.c: Likewise.
6718         * math/Makefile (tests): Add test-nan-overflow and
6719         test-nan-payload.
6720
6721 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6722
6723         Consistency about byte vs character in string.texi
6724         * manual/string.texi (String and Array Utilities):
6725         Distinguish more carefully among bytes, multibyte characters,
6726         and wide characters.  Use "byte" when talking about C 'char',
6727         to distinguish it more clearly from multibyte characters.
6728         Say "wide character" or "multibyte character" instead of
6729         "character", when a wide or multibyte character is intended.
6730         Similarly for "multibyte string" versus "string".
6731         Define these terms more carefully.
6732
6733 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6734
6735         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6736         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6737         Likewise.
6738         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6739         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6740         * sysdeps/sh/math_private.h: New file.
6741         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6742         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6743         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6744         long double function name.
6745         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6746         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6747         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6748         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6749         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6750         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6751         Remove __finitel, __isinfl, and __isnanl.
6752         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6753         Likewise.
6754         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6755         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6756         Remove __finitel.
6757         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6758         Likewise.
6759         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6760
6761 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6762
6763         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6764         installed libmvec_nonshared.a.
6765
6766 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6767
6768         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6769         (sysdep_routines): Likewise.
6770         (sysdep-rtld-routines): Likewise.
6771         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6772         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6773         * sysdeps/powerpc/Versions: Added new
6774         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6775         * sysdeps/powerpc/hwcapinfo.c: New file.
6776         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6777         and parse hwcap, hwcap2 and platform number information.
6778         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6779         to store HWCAP+HWCAP2 and platform number.
6780         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6781         for HWCAP+HWCAP2 and platform number in the TCB.
6782         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6783         the HWCAP, HWCAP2 and platform number in the TCB.
6784         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6785         (TLS_INIT_TP): Included calls to add the hwcap and
6786         at_platform values in the TCB in TP initialization.
6787         (TLS_DEFINE_INIT_TP): Likewise.
6788         (THREAD_GET_HWCAP): New macro.
6789         (THREAD_SET_HWCAP): Likewise.
6790         (THREAD_GET_AT_PLATFORM): Likewise.
6791         (THREAD_SET_AT_PLATFORM): Likewise.
6792         * sysdeps/powerpc/powerpc32/dl-machine.h:
6793         (dl_platform_init): New function that calls
6794         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6795         powerpc32.
6796         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6797         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6798         this functionality, static linking case.
6799         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6800         linking case.
6801         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6802         __parse_hwcap_and_convert_at_platform for the static linking case.
6803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6804         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6805         ABI list for GLIBC 2.23.
6806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6807         Likewise.
6808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6809         Likewise.
6810
6811 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6812
6813         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6814         * configure: Regenerate.
6815         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6816         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6817
6818 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6819
6820         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6821         * iconvdata/ibm933.c: Likewise.
6822         * iconvdata/ibm935.c: Likewise.
6823         * iconvdata/ibm937.c: Likewise.
6824         * iconvdata/ibm939.c: Likewise.
6825
6826 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6827
6828         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6829         pthread_join.
6830         * nptl/tst-cancel21.c (tf): Likewise.
6831
6832 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6833
6834         [BZ #19313]
6835         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6836         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6837         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6838         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6839         Likewise.
6840         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6841         Likewise.
6842         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6843         Likewise.
6844         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6845         Likewise.
6846         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6847         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6848         unsigned long int with __CPU_MASK_TYPE.
6849
6850 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6851
6852         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6853
6854 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6855
6856         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6857         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6858         t512.x.
6859         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6860
6861 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6862
6863         [BZ #19214]
6864         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6865         argument to return extended model.  Update family and model
6866         with extended family and model when family == 0x0f.
6867         (init_cpu_features): Updated.
6868
6869 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6870
6871         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6872         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6873
6874         * sysdeps/mach/hurd/mmap64.c: New file.
6875
6876 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6877
6878         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6879         rights for its main user thread in NEWTASK.
6880
6881 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6882
6883         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6884         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6885
6886 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6887
6888         [BZ #14259]
6889         * Makeconfig: Rename localedir to complocaledir.
6890         Rename inst_localedir to inst_complocaledir.
6891         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6892         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6893         * configure.ac: Use libc_cv_complocaledir.
6894         * configure: Regenerate.
6895         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6896         -DCOMPLOCALEDIR.
6897         * locale/findlocale.c: Use COMPLOCALEDIR.
6898         * locale/loadarchive.c: Likewise.
6899         * locale/programs/locale.c: Likewise.
6900         * locale/programs/localedef.c: Likewise.
6901         * locale/programs/locarchive.c: Likewise.
6902         * localedata/Makefile: Use inst_complocaledir.
6903         * sysdeps/gnu/configure: Regenerate.
6904         * sysdeps/hppa/configure: Regenerate.
6905         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6906         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6908         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6909         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6910         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6911         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6912
6913 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6914
6915         [BZ #19058]
6916         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6917         AS_NEEDED.
6918         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6919         workaround.
6920         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6921         libmvec-static-only-routines): Added new file.
6922         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6923
6924 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6925
6926         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6927         of interrupted RPC instead of restoring it.
6928
6929         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6930         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6931         libc_hidden_def.
6932         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6933         into initialized data instead of common. Define rtld_hidden_data_def.
6934         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6935         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6936         libc_hidden_def.
6937         (if_freenameindex): Add libc_hidden_weak.
6938         (if_nameindex): Add libc_hidden_weak.
6939         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6940         __open64.
6941         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6942         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6943         * sysdeps/mach/nanosleep.c: Include <time.h>
6944         (__nanosleep): Rename to __libc_nanosleep.
6945         (__nanosleep): Add weak_alias.
6946         (nanosleep): Update alias.
6947
6948 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6949
6950         * stdlib/strtod_nan.c: New file.
6951         * stdlib/strtod_nan_double.h: Likewise.
6952         * stdlib/strtod_nan_float.h: Likewise.
6953         * stdlib/strtod_nan_main.c: Likewise.
6954         * stdlib/strtod_nan_narrow.h: Likewise.
6955         * stdlib/strtod_nan_wide.h: Likewise.
6956         * stdlib/strtof_nan.c: Likewise.
6957         * stdlib/strtold_nan.c: Likewise.
6958         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6959         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6960         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6961         * wcsmbs/wcstod_nan.c: Likewise.
6962         * wcsmbs/wcstof_nan.c: Likewise.
6963         * wcsmbs/wcstold_nan.c: Likewise.
6964         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6965         strtold_nan.
6966         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6967         wcstof_nan.
6968         * include/stdlib.h (__strtof_nan): Declare and use
6969         libc_hidden_proto.
6970         (__strtod_nan): Likewise.
6971         (__strtold_nan): Likewise.
6972         (__wcstof_nan): Likewise.
6973         (__wcstod_nan): Likewise.
6974         (__wcstold_nan): Likewise.
6975         * include/wchar.h (____wcstoull_l_internal): Declare.
6976         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6977         (____strtoull_l_internal): Remove declaration.
6978         (STRTOF_NAN): Define macro.
6979         (SET_MANTISSA): Remove macro.
6980         (STRTOULL): Likewise.
6981         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6982         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6983         (STRTOF_NAN): Define macro.
6984         (SET_MANTISSA): Remove macro.
6985         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6986         (SET_MANTISSA): Remove macro.
6987         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6988         macro.
6989         (SET_MANTISSA): Remove macro.
6990         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6991         macro.
6992         (SET_MANTISSA): Remove macro.
6993         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6994         (SET_MANTISSA): Remove macro.
6995         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6996         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6997         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6998
6999         [BZ #19266]
7000         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
7001         upper case and lower case letters inside NAN(), not using TOLOWER.
7002         * stdlib/tst-strtod-nan-locale-main.c: New file.
7003         * stdlib/tst-strtod-nan-locale.c: Likewise.
7004         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
7005         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
7006         Depend on $(gen-locales).
7007         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
7008         * wcsmbs/tst-wcstod-nan-locale.c: New file.
7009         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
7010         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
7011         Depend on $(gen-locales).
7012         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
7013
7014 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
7015
7016         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
7017
7018         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
7019         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
7020         __finitel, __isinfl, and __isnanl.
7021         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
7022         Likewise.
7023         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7024         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
7025         __finitel.
7026         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7027         Likewise.
7028         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7029
7030 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
7031
7032         * malloc/memusage.c (me): Remove redundant getenv call.
7033
7034 2015-10-24  Florian Weimer  <fweimer@redhat.com>
7035
7036         [BZ #19143]
7037         [BZ #19164]
7038         * nptl/check-cpuset.h: Remove.
7039         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
7040         Remove CPU set size check.
7041         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
7042         Likewise.
7043         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
7044         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
7045         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
7046         (__pthread_setaffinity_new): Remove CPU set size check.
7047         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7048         (__kernel_cpumask_size): Remove.
7049         (__sched_setaffinity_new): Remove CPU set size check.
7050         * manual/threads.texi (Default Thread Attributes): Remove stale
7051         reference to check_cpuset_attr, determine_cpumask_size in comment.
7052         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
7053         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
7054         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
7055         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
7056         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
7057         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
7058         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
7059         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
7060         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
7061         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
7062         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
7063         skeleton test file.
7064         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
7065         tst-affinity-pid.
7066
7067 2015-11-24  Florian Weimer  <fweimer@redhat.com>
7068
7069         * scripts/update-abilist.sh: New file.
7070         * Makefile (+subdir_targets): Add subdir_update-all-abi.
7071         * Makerules (update-all-abi-%, update-all-abi)
7072         (subdir_update-all-abi): New targets.
7073         * elf/Makefile (update-all-abi): New target.
7074
7075 2015-11-24  Florian Weimer  <fweimer@redhat.com>
7076
7077         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
7078         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
7079         (__libc_lock_define_initialized): Use it.
7080         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
7081         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
7082         * malloc/malloc.c (main_arena): Likewise.
7083         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
7084         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
7085
7086 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
7087
7088         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
7089         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
7090         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7091         (PTRACE_O_MASK): Update value.
7092         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
7093         New value in enum __ptrace_setoptions.
7094         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7095         (PTRACE_O_MASK): Update value.
7096         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
7097         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7098         (PTRACE_O_MASK): Update value.
7099         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
7100         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7101         (PTRACE_O_MASK): Update value.
7102         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
7103         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7104         (PTRACE_O_MASK): Update value.
7105         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
7106         New value in enum __ptrace_setoptions.
7107         (PTRACE_O_MASK): Update value.
7108         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
7109         New value in enum __ptrace_setoptions.
7110         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7111         (PTRACE_O_MASK): Update value.
7112
7113         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
7114         New macro.
7115         (PACKET_AUXDATA): Likewise.
7116         (PACKET_ORIGDEV): Likewise.
7117         (PACKET_VERSION): Likewise.
7118         (PACKET_HDRLEN): Likewise.
7119         (PACKET_RESERVE): Likewise.
7120         (PACKET_TX_RING): Likewise.
7121         (PACKET_LOSS): Likewise.
7122         (PACKET_VNET_HDR): Likewise.
7123         (PACKET_TX_TIMESTAMP): Likewise.
7124         (PACKET_TIMESTAMP): Likewise.
7125         (PACKET_FANOUT): Likewise.
7126         (PACKET_TX_HAS_OFF): Likewise.
7127         (PACKET_QDISC_BYPASS): Likewise.
7128         (PACKET_ROLLOVER_STATS): Likewise.
7129         (PACKET_FANOUT_DATA): Likewise.
7130         (PACKET_MR_UNICAST): Likewise.
7131
7132         [BZ #19242]
7133         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
7134         (TOUPPER): Likewise.
7135         * stdlib/tst-strtol-locale-main.c: New file.
7136         * stdlib/tst-strtol-locale.c: Likewise.
7137         * stdlib/Makefile (tests): Add tst-strtol-locale.
7138         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
7139         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
7140         Depend on $(gen-locales).
7141         * wcsmbs/tst-wcstol-locale.c: New file.
7142         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
7143         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
7144         tr_TR.ISO-8859-9.
7145         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
7146         Depend on $(gen-locales).
7147
7148 2015-11-20  Roland McGrath  <roland@hack.frob.com>
7149
7150         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
7151         __glibc_likely instead of __builtin_expect.  After falling back to
7152         dyncode_create in a non-ET_DYN case, use the allocate_code_data
7153         system interface to register the code pages as occupied.
7154
7155 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
7156
7157         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7158         [!ARM_MATH_PRIVATE_H].
7159         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
7160         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7161         [!HPPA_MATH_PRIVATE_H].
7162         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
7163         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
7164         to [!I386_MATH_PRIVATE_H].
7165         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
7166         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
7167         Change guard to [!M68K_MATH_PRIVATE_H].
7168         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
7169         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
7170         guard to [!MICROBLAZE_MATH_PRIVATE_H].
7171         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
7172         macro.
7173         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7174         [!MIPS_MATH_PRIVATE_H].
7175         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
7176         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7177         [!NIO2_MATH_PRIVATE_H].
7178         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
7179         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7180         [!TILE_MATH_PRIVATE_H].
7181         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
7182
7183         [BZ #15421]
7184         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
7185         initialize with 0 and define as weak alias of __signgam.
7186         * include/math.h [!_ISOMAC] (__signgam): Declare.
7187         * math/Makefile (libm-calls): Add w_lgamma_compat.
7188         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
7189         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
7190         test-signgam-ullong-init.
7191         (tests-static): Add test-signgam-uchar-static,
7192         test-signgam-uchar-init-static, test-signgam-uint-static,
7193         test-signgam-uint-init-static, test-signgam-ullong-static and
7194         test-signgam-ullong-init-static.
7195         (CFLAGS-test-signgam-uchar.c): New variable.
7196         (CFLAGS-test-signgam-uchar-init.c): Likewise.
7197         (CFLAGS-test-signgam-uchar-static.c): Likewise.
7198         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
7199         (CFLAGS-test-signgam-uint.c): Likewise.
7200         (CFLAGS-test-signgam-uint-init.c): Likewise.
7201         (CFLAGS-test-signgam-uint-static.c): Likewise.
7202         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
7203         (CFLAGS-test-signgam-ullong.c): Likewise.
7204         (CFLAGS-test-signgam-ullong-init.c): Likewise.
7205         (CFLAGS-test-signgam-ullong-static.c): Likewise.
7206         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
7207         * math/Versions (libm): Add GLIBC_2.23.
7208         * math/lgamma-compat.h: New file.
7209         * math/test-signgam-main.c: Likewise.
7210         * math/test-signgam-uchar-init-static.c: Likewise.
7211         * math/test-signgam-uchar-init.c: Likewise.
7212         * math/test-signgam-uchar-static.c: Likewise.
7213         * math/test-signgam-uchar.c: Likewise.
7214         * math/test-signgam-uint-init-static.c: Likewise.
7215         * math/test-signgam-uint-init.c: Likewise.
7216         * math/test-signgam-uint-static.c: Likewise.
7217         * math/test-signgam-uint.c: Likewise.
7218         * math/test-signgam-ullong-init-static.c: Likewise.
7219         * math/test-signgam-ullong-init.c: Likewise.
7220         * math/test-signgam-ullong-static.c: Likewise.
7221         * math/test-signgam-ullong.c: Likewise.
7222         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
7223         wrapper of w_lgamma_main.c.
7224         * math/w_lgamma_compat.c: New file.
7225         * math/w_lgamma_compatf.c: Likewise.
7226         * math/w_lgamma_compatl.c: Likewise.
7227         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
7228         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7229         defining compatibility symbols.
7230         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
7231         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
7232         wrapper of w_lgammaf_main.c.
7233         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
7234         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7235         defining compatibility symbols.
7236         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
7237         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
7238         wrapper of w_lgammal_main.c.
7239         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
7240         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7241         defining compatibility symbols.
7242         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
7243         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
7244         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
7245         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
7246         <lgamma-compat.h>.
7247         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
7248         (__ieee754_gamma): Define as alias.
7249         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
7250         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
7251         <lgamma-compat.h>.
7252         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
7253         (__ieee754_gammaf): Define as alias.
7254         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
7255         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
7256         <lgamma-compat.h>.
7257         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
7258         (__ieee754_gammal): Define as alias.
7259         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
7260         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
7261         <math/w_lgamma_compat.c>.
7262         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
7263         Define as alias of __lgamma_compat and use in defining lgammal.
7264         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
7265         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
7266         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
7267         (USE_AS_COMPAT): New macro.
7268         (LGAMMA_OLD_VER): Undefine and redefine.
7269         (lgammal): Do not define here.
7270         (gammal): Only define here if [GAMMA_ALIAS].
7271         * conform/linknamespace.pl (@whitelist): Remove signgam.
7272         * sysdeps/nacl/libm.abilist: Update.
7273         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7274         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7275         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7276         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7277         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7278         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7279         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7280         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7281         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7282         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7283         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7284         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7286         Likewise.
7287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7288         Likewise.
7289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7290         Likewise.
7291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7292         Likewise.
7293         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7294         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7295         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7296         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7297         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7298         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7299         Likewise.
7300         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7301         Likewise.
7302         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7303         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7304         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7305
7306 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7307
7308         [BZ #16364]
7309         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
7310         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
7311
7312 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7313
7314         * sysdeps/s390/fpu/bits/mathinline.h:
7315         Use __asm__ [__volatile__] instead of asm [volatile].
7316         * sysdeps/s390/abort-instr.h: Likewise.
7317         * sysdeps/s390/atomic-machine.h: Likewise.
7318         * sysdeps/s390/bits/string.h: Likewise.
7319         * sysdeps/s390/dl-tls.h: Likewise.
7320         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
7321         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
7322         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
7323         * sysdeps/s390/fpu/fesetround.c: Likewise.
7324         * sysdeps/s390/fpu/fpu_control.h: Likewise.
7325         * sysdeps/s390/fpu/s_fma.c: Likewise.
7326         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
7327         * sysdeps/s390/memusage.h: Likewise.
7328         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
7329         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
7330         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
7331         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
7332         * sysdeps/s390/nptl/tls.h: Likewise.
7333         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
7334         * sysdeps/s390/s390-32/backtrace.c: Likewise.
7335         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7336         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
7337         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7338         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
7339         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
7340         * sysdeps/s390/s390-64/backtrace.c: Likewise.
7341         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7342         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
7343         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
7344         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7345         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
7346         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
7347         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
7348         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
7349         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
7350         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
7351         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
7352         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7353         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
7354         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7355         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
7356
7357 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7358             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7359
7360         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
7361         Add lwarx hint, and use macro for acquire instruction.
7362         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
7363         Likewise.
7364         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
7365         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
7366         update to use new atomic macros.
7367
7368 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7369
7370         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
7371         (__lll_trylock_elision): Fix setting of adapt_count.
7372         * sysdeps/unix/sysv/linux/powerpc/htm.h
7373         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
7374         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
7375         (_ABORT_SYSCALL): Renumber, and clarify definition.
7376         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
7377
7378 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7379
7380         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
7381         after system headers to prevent MIN/MAX redefinition.  Define
7382         HAVE_ALLOCA to preserve builtin alloca usage.
7383
7384 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
7385
7386         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
7387         static and don't set or restore rounding.
7388         (__cos)[IN_SINCOS]: Likewise.
7389         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
7390         (__sincos): Set and restore rounding mode.  Remove check for infinite
7391         or NaN input.
7392
7393         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
7394
7395         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
7396         as used.
7397
7398 2015-11-16  Florian Weimer  <fweimer@redhat.com>
7399
7400         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
7401
7402 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7403
7404         * config.make.in (have-glob-dat-reloc): New.
7405         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
7406         target supports GLOB_DAT relocaton. AC_SUBST.
7407         * configure: Regenerated.
7408         * elf/Makefile (tests): Add tst-prelink.
7409         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7410         (tst-prelink-ENV): New.
7411         ($(objpfx)tst-prelink-conflict.out): Likewise.
7412         ($(objpfx)tst-prelink-cmp.out): Likewise.
7413         * sysdeps/x86/tst-prelink.c: Moved to ...
7414         * elf/tst-prelink.c: Here.
7415         * sysdeps/x86/tst-prelink.exp: Moved to ...
7416         * elf/tst-prelink.exp: Here.
7417         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
7418         (tst-prelink-ENV): Removed.
7419         ($(objpfx)tst-prelink-conflict.out): Likewise.
7420         ($(objpfx)tst-prelink-cmp.out): Likewise.
7421         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
7422
7423 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
7424
7425         [BZ #14551]
7426         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
7427         (__mpn_construct_long_double): If high part overflows to infinity,
7428         set errno and recompute overflowed result of the correct sign.
7429         * sysdeps/ieee754/ldbl-128ibm/Makefile
7430         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
7431         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
7432         $(libm).
7433         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
7434
7435 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
7436
7437         [BZ #15479]
7438         [BZ #19238]
7439         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
7440         floating-point state after first operation on input.  Restore full
7441         state rather than just rounding mode.
7442         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7443         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7444         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7445
7446         [BZ #19235]
7447         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
7448         add 0.5 to integer arguments.
7449         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
7450         Likewise.
7451         (.LC2): New object.
7452
7453 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
7454
7455         * scripts/pylintrc (reports): Set to no.
7456
7457 2015-11-10  Roland McGrath  <roland@hack.frob.com>
7458
7459         * elf/dl-load.c (open_verify): Take new argument FD.
7460         Skip __open call if passed FD is not -1.
7461         (_dl_map_object, open_path): Update callers.
7462         * elf/dl-sysdep-open.h: New file.
7463         * elf/dl-load.c: Include it.
7464         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
7465         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
7466         * sysdeps/nacl/dl-sysdep-open.h: New file.
7467         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
7468         from libc to rtld.
7469
7470 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7471
7472         [BZ #19228]
7473         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
7474         and restore full floating-point state.
7475         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7476         Likewise.
7477         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7478         Likewise.
7479         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7480         Likewise.
7481         * math/test-nearbyint-except-2.c: New file.
7482         * math/Makefile (tests): Add test-nearbyint-except-2.
7483
7484 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
7485
7486         [BZ #19178]
7487         * sysdeps/x86/Makefile (tests): Add tst-prelink.
7488         (tst-prelink-ENV): New.
7489         ($(objpfx)tst-prelink-conflict.out): Likewise.
7490         ($(objpfx)tst-prelink-cmp.out): Likewise.
7491         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7492         * sysdeps/x86/tst-prelink.c: New file.
7493         * sysdeps/x86/tst-prelink.exp: Likewise.
7494
7495 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7496
7497         * math/auto-libm-test-in: Add another test of pow.
7498         * math/auto-libm-test-out: Regenerated.
7499         * math/libm-test.inc (pow_test_data): Add another test.
7500
7501 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7502
7503         [BZ #19219]
7504         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
7505         weak_alias to nearbyintl.
7506
7507 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7508
7509         * sysdeps/aarch64/bits/string.h: New file.
7510         (_STRING_ARCH_unaligned): Define.
7511
7512 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7513
7514         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
7515         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
7516         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
7517         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
7518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
7519
7520 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
7521
7522         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
7523         for original name of the DSO.  Add it to the name list of the DSO
7524         if it is actually given.
7525         (_dl_map_object): Keep track of whether an audit module rewrote
7526         the file name.  If yes, pass the original name to
7527         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
7528         debugging is enabled, log the change of the file name.
7529         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
7530         _dl_map_object_from_fd.
7531         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
7532         * elf/tst-audit11.c: New file
7533         * elf/tst-auditmod11.c: New file.
7534         * elf/tst-audit11mod1.c: New file.
7535         * elf/tst-audit11mod2.c: New file.
7536         * elf/tst-audit11mod2.map: New file.
7537         * elf/tst-audit12.c: New file
7538         * elf/tst-auditmod12.c: New file.
7539         * elf/tst-audit12mod1.c: New file.
7540         * elf/tst-audit12mod2.c: New file.
7541         * elf/tst-audit12mod2.map: New file.
7542         * elf/tst-audit12mod3.c: New file.
7543
7544 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7545
7546         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
7547         Don't create weak aliases,
7548         because versioned symbols are created later.
7549         * sysdeps/s390/s390-32/setjmp.S
7550         (setjmp, _setjmp): Remove weak and rename to an unique name
7551         in SHARED case due to existing versioned symbols.
7552         * sysdeps/s390/s390-64/setjmp.S: Likewise.
7553         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
7554         (getcontext): Create weak alias only in non SHARED case.
7555         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7556
7557 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7558
7559         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
7560         (__ASSUME_*_SYSCALL) Define new macros.
7561         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
7562         Remove socketcall syscalls.
7563         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
7564         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
7565         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
7566         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
7567         * sysdeps/unix/sysv/linux/send.c (__libc_send):
7568         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
7569
7570 2015-11-09  Florian Weimer  <fweimer@redhat.com>
7571
7572         [BZ #12926]
7573         Terminate process on invalid netlink response.
7574         * sysdeps/unix/sysv/linux/netlinkaccess.h
7575         (__netlink_assert_response): Declare.
7576         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
7577         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
7578         (sysdep_routines): Add netlink_assert_response.
7579         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
7580         __netlink_assert_response.
7581         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7582         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7583         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
7584         __netlink_assert_response.
7585
7586 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7587
7588         [BZ #19178]
7589         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
7590         (RTYPE_CLASS_PLT): Likewise.
7591         (RTYPE_CLASS_COPY): Likewise.
7592         (RTYPE_CLASS_TLS): Likewise.
7593         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
7594         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
7595         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
7596         DL_DEBUG_PRELINK.
7597
7598 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
7599
7600         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
7601         calls with argument -0.5.
7602         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
7603
7604         * configure.ac (libc_cv_z_nodelete): Remove configure test.
7605         (libc_cv_z_nodlopen): Likewise.
7606         (libc_cv_z_initfirst): Likewise.
7607         * configure: Regenerated.
7608
7609 2015-11-06  Florian Weimer  <fweimer@redhat.com>
7610
7611         Simplify abilist format to be line-based.
7612         * scripts/abilist.awk: Collect descriptors in the descs variable.
7613         (emit): Write descs variable and sort it
7614         externally, with sort.
7615         * sysdeps/**/*.abilist: Convert to new format.
7616
7617 2015-11-06  Mark Wielaard  <mjw@redhat.com>
7618
7619         [BZ #11460]
7620         * io/Makefile (routines): Add fts64.
7621         (tests): Add tst-fts and tst-fts-lfs.
7622         (CFLAGS-fts64.c): New.
7623         * io/Versions (GLIBC_2.23): New.
7624         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7625         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7626         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7627         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7628         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7629         (FTSENT64): Likewise.
7630         (fts64_children): Likewise.
7631         (fts64_close): Likewise.
7632         (fts64_open): Likewise.
7633         (fts64_read): Likewise.
7634         (fts64_set): Likewise.
7635         * io/fts64.c: New file.
7636         * io/tst-fts.c: New test.
7637         * io/tst-fts-lfs.c: Likewise.
7638         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7639         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7640         fts64_set.
7641         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7642         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7643         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7644         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7645         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7646         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7647         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7648         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7649         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7650         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7651         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7652         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7653         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7655         Likewise.
7656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7657         Likewise.
7658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7660         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7661         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7662         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7663         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7664         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7665         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7666         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7667         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7668         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7669         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7670         * sysdeps/wordsize-64/fts.c: New file.
7671         * sysdeps/wordsize-64/fts64.c: Likewise.
7672         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7673         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7674         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7675         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7676
7677 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7678
7679         * math/libm-test.inc (NON_FINITE): New macro.
7680         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7681         * math/gen-libm-test.pl (show_exceptions): Add argument
7682         $non_finite.
7683         (parse_args): Update call to show_exceptions.
7684         * math/test-math-finite.h: New file.
7685         * math/test-math-no-finite.h: Likewise.
7686         * math/test-double-finite.c: Likewise.
7687         * math/test-float-finite.c: Likewise.
7688         * math/test-ldouble-finite.c: Likewise.
7689         * math/test-double.c: Include "test-math-no-finite.h".
7690         * math/test-float.c: Include "test-math-no-finite.h".
7691         * math/test-ldouble.c: Include "test-math-no-finite.h".
7692         * math/test-math-inline.h (TEST_FINITE): New macro.
7693         * math/test-math-vector.h (TEST_FINITE): Likewise.
7694         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7695         (libm-tests): Add test-float-finite and test-double-finite.
7696         ($(objpfx)test-float-finite.o): New dependency on
7697         $(objpfx)libm-test.stmp.
7698         ($(objpfx)test-double-finite.o): Likewise.
7699         ($(objpfx)test-ldouble-finite.o): Likewise.
7700         (libm-test-no-inline-cflags): New variable.
7701         (libm-test-finite-cflags): Likewise.
7702         (CFLAGS-test-float-finite.c): Likewise.
7703         (CFLAGS-test-double-finite.c): Likewise.
7704         (CFLAGS-test-ldouble-finite.c): Likewise.
7705         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7706         (CFLAGS-test-double.c): Likewise.
7707         (CFLAGS-test-ldouble.c): Likewise.
7708
7709 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7710
7711         * io/fcntl.c (__fcntl): Add ... to prototype.
7712         * misc/ioctl.c (__ioctl): Likewise.
7713         * misc/syscall.c (syscall): Likewise.
7714
7715 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7716
7717         * scripts/list-fixed-bugs.py: New file.
7718
7719         [BZ #19213]
7720         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7721         returned for argument 1.
7722         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7723         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7724         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7725         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7726         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7727         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7728
7729         [BZ #19211]
7730         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7731         __USE_XOPEN], not if [!__USE_ISOC99].
7732         (lgammaf): Likewise.
7733         (lgammal): Likewise.
7734         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7735         (gammaf): Likewise.
7736         (gammal): Likewise.
7737         * math/test-signgam-finite-c11.c: New file.
7738         * math/test-signgam-finite-c99.c: Likewise.
7739         * math/test-signgam-finite.c: Likewise.
7740         * math/Makefile (tests): Add test-signgam-finite,
7741         test-signgam-finite-c99 and test-signgam-finite-c11.
7742         (CFLAGS-test-signgam-finite.c): New variable.
7743         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7744         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7745
7746         [BZ #19212]
7747         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7748         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7749         500].
7750         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7751         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7752         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7753         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7754         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7755         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7756         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7757         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7758         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7759         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7760
7761         [BZ #19209]
7762         * math/bits/math-finite.h (ldexp): Remove declaration.
7763         (ldexpf): Likewise.
7764         (ldexpl): Likewise.
7765
7766         [BZ #19205]
7767         * math/bits/math-finite.h (acosf): Condition declaration on
7768         [__USE_ISOC99].
7769         (acosl): Likewise.
7770         (acoshf): Likewise.
7771         (acoshl): Likewise.
7772         (asinf): Likewise.
7773         (asinl): Likewise.
7774         (atan2f): Likewise.
7775         (atan2l): Likewise.
7776         (atanhf): Likewise.
7777         (atanhl): Likewise.
7778         (coshf): Likewise.
7779         (coshl): Likewise.
7780         (expf): Likewise.
7781         (expl): Likewise.
7782         (fmodf): Likewise.
7783         (fmodl): Likewise.
7784         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7785         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7786         (j0l): Likewise.
7787         (y0f): Likewise.
7788         (y0l): Likewise.
7789         (j1f): Likewise.
7790         (j1l): Likewise.
7791         (y1f): Likewise.
7792         (y1l): Likewise.
7793         (jnf): Likewise.
7794         (jnl): Likewise.
7795         (ynf): Likewise.
7796         (ynl): Likewise.
7797         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7798         (lgammal_r): Likewise.
7799         (__lgamma_r_finite): New declaration.
7800         (__lgammaf_r_finite): Likewise.
7801         (__lgammal_r_finite): Likewise.
7802         (lgamma): Use __lgamma_r_finite.
7803         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7804         __lgammaf_r_finite.
7805         (lgammal): Condition definition on [__USE_ISOC99].  Use
7806         __lgammal_r_finite.
7807         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7808         __lgamma_r_finite.
7809         (gammaf): Condition definition on [__USE_ISOC99].  Use
7810         __lgammaf_r_finite.
7811         (gammal): Condition definition on [__USE_ISOC99].  Use
7812         __lgammal_r_finite.
7813         (logf): Condition declaration on [__USE_ISOC99].
7814         (logl): Likewise.
7815         (log10f): Likewise.
7816         (log10l): Likewise.
7817         (ldexpf): Likewise.
7818         (ldexpl): Likewise.
7819         (powf): Likewise.
7820         (powl): Likewise.
7821         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7822         __USE_ISOC99].
7823         (remainderf): Condition declaration on [__USE_ISOC99].
7824         (remainderl): Likewise.
7825         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7826         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7827         (scalbl): Likewise.
7828         (sinhf): Condition declaration on [__USE_ISOC99].
7829         (sinhl): Likewise.
7830         (sqrtf): Likewise.
7831         (sqrtl): Likewise.
7832
7833 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7834
7835         * sysdeps/arm/atomic-machine.h
7836         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7837         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7838         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7839         Remove conditional code.
7840         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7841         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7842         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7843         Change conditional to [__ASSEMBLER__].
7844         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7845         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7846         [!__ASSEMBLER__].
7847         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7848         code.
7849         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7850         conditional macro definitions.
7851         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7852         (__arch_compare_and_exchange_val_16_acq): Likewise.
7853         (__arch_compare_and_exchange_val_32_acq): Likewise.
7854         (atomic_exchange_and_add): Likewise.
7855         (atomic_add): Likewise.
7856         (atomic_add_negative): Likewise.
7857         (atomic_add_zero): Likewise.
7858         (atomic_bit_set): Likewise.
7859         (atomic_bit_test_set): Likewise.
7860         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7861         code unconditional.
7862         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7863
7864         * math/test-math-errno.h: New file.
7865         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7866         empty.
7867         (TEST_ERRNO): New macro.
7868         (TEST_EXCEPTIONS): Likewise.
7869         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7870         (TEST_EXCEPTIONS): Likewise.
7871         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7872         * math/test-double.c: Include "test-math-errno.h".
7873         * math/test-float.c: Likewise.
7874         * math/test-ldouble.c: Likewise.
7875         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7876         code unconditional.
7877         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7878         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7879         unconditional.
7880         (test_errno): Only run code if TEST_ERRNO.
7881         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7882
7883 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7884
7885         * nptl/tst-once5.cc: Remove attribution.
7886
7887 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7888
7889         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7890         sqrt, tan, tanh, y0, y1 and yn.
7891         * math/auto-libm-test-out: Regenerated.
7892         * math/libm-test.inc (scalb_test_data): Add more tests.
7893         (scalbn_test_data): Likewise.
7894         (scalbln_test_data): Likewise.
7895         (signbit_test_data): Likewise.
7896         (sin_test_data): Likewise.
7897         (sincos_test_data): Likewise.
7898         (sinh_test_data): Likewise.
7899         (sqrt_test_data): Likewise.
7900         (tan_test_data): Likewise.
7901         (tanh_test_data): Likewise.
7902         (tgamma_test_data): Likewise.
7903         (y0_test_data): Likewise.
7904         (y1_test_data): Likewise.
7905         (yn_test_data): Likewise.
7906         (significand_test_data): Likewise.
7907         * sysdeps/i386/fpu/libm-test-ulps: Update.
7908
7909 2015-11-03  David Kastrup  <dak@gnu.org>
7910
7911         [BZ #18604]
7912         * assert/assert.h (assert): Don't macro-expand failed assertion
7913         expression in error message.
7914         * malloc/malloc.c (assert): Likewise.
7915
7916 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7917
7918         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7919         test.
7920         * configure: Regenerated.
7921
7922 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7923
7924         * math/libm-test.inc (modf_test_data): Add more tests.
7925         (nearbyint_test_data): Likewise.
7926         (nextafter_test_data): Likewise.
7927         (nexttoward_test_data): Likewise.
7928         (pow_test_data): Likewise.
7929         (remainder_test_data): Likewise.
7930         (remquo_test_data): Likewise.
7931         (rint_test_data): Likewise.
7932
7933         [BZ #19201]
7934         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7935         Check for zero remainder in case of large exponents and ensure
7936         correct sign of result in that case.
7937         * math/libm-test.inc (remainder_test_data): Add more tests.
7938
7939         [BZ #6799]
7940         * math/s_nextafter.c: Include <errno.h>.
7941         (__nextafter): Set errno on overflow and underflow.
7942         * math/s_nexttowardf.c: Include <errno.h>.
7943         (__nexttowardf): Set errno on overflow and underflow.
7944         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7945         (__nextafterl): Set errno on overflow and underflow.
7946         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7947         (__nexttoward): Set errno on overflow and underflow.
7948         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7949         (__nexttowardf): Set errno on overflow and underflow.
7950         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7951         (__nextafterf): Set errno on overflow and underflow.
7952         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7953         (__nextafterl): Set errno on overflow and underflow.
7954         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7955         (__nexttoward): Set errno on overflow and underflow.
7956         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7957         (__nexttowardf): Set errno on overflow and underflow.
7958         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7959         (__nextafterl): Set errno on overflow and underflow.
7960         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7961         (__nexttoward): Set errno on overflow and underflow.
7962         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7963         (__nexttowardf): Set errno on overflow and underflow.
7964         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7965         (__nexttoward): Set errno on overflow and underflow.
7966         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7967         (__nexttowardf): Set errno on overflow and underflow.
7968         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7969         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7970         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7971         (__nextafterl): Set errno on overflow and underflow.
7972         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7973         setting to be missing on overflow.  Add more tests.
7974         (nexttoward_test_data): Likewise.
7975
7976         * configure.ac (libc_cv_initfini_array): Remove configure test.
7977         * configure: Regenerated.
7978
7979 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7980
7981         [BZ #19189]
7982         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7983         non-finite argument handle arguments with negative sign.
7984
7985         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7986         result from infinite argument.
7987         (j1_test_data): Likewise.
7988         (jn_test_data): Likewise.
7989         (y0_test_data): Likewise.
7990         (y1_test_data): Likewise.
7991         (yn_test_data): Likewise.
7992
7993         [BZ #16171]
7994         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7995         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7996         * math/w_remainderf.c (dremf): Define as weak alias of
7997         __remainderf.
7998         * math/w_remainderl.c (dreml): Define as weak alias of
7999         __remainderl.
8000         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
8001         __remainder.
8002         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
8003         __remainderf.
8004         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
8005         __remainderl.
8006         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
8007         weak alias of remainderl.
8008         * sysdeps/ieee754/ldbl-opt/w_remainder.c
8009         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
8010         alias of __remainder.
8011         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
8012         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
8013         strong alias of __remainderl.
8014         (dreml): Use long_double_symbol.
8015         * math/Makefile (libm-calls): Remove w_drem.
8016         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
8017         (CFLAGS-nldbl-drem.c): Remove variable.
8018         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
8019         * math/w_drem.c: Remove file.
8020         * math/w_dremf.c: Likewise.
8021         * math/w_dreml.c: Likewise.
8022         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
8023         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
8024         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
8025
8026         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
8027         * sysdeps/i386/configure: Regenerated.
8028         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
8029         * sysdeps/x86_64/configure: Regenerated.
8030
8031         * configure.ac (libc_cv_asm_protected_directive): Remove configure
8032         test.
8033         (libc_cv_visibility_attribute): Likewise.
8034         (libc_cv_protected_data): Test unconditionally.
8035         (libc_cv_broken_visibility_attribute): Remove configure test.
8036         (libc_cv_have_sdata_section): Test unconditionally.
8037         * configure: Regenerated.
8038
8039         * include/libc-internal.h (libc_max_align_t): Remove typedef.
8040         * include/scratch_buffer.h: Include <stddef.h> instead of
8041         <libc-internal.h>.
8042         (struct scratch_buffer): Use max_align_t instead of
8043         libc_max_align_t.
8044
8045 2015-10-29  Florian Weimer  <fweimer@redhat.com>
8046
8047         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
8048         instead of extend_alloca.  Change control flow to avoid a goto.
8049         Remove assert which is trivially always true.
8050
8051 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8052
8053         [BZ #16068]
8054         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
8055         (FE_ALL_EXCEPT_X86): New macro.
8056         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
8057         FE_ALL_EXCEPT.  Ensure precision control is included in
8058         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
8059         handle "denormal operand exception" and clear FZ and DAZ bits.
8060         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
8061         (FE_ALL_EXCEPT_X86): New macro.
8062         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
8063         FE_ALL_EXCEPT.  Ensure precision control is included in
8064         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
8065         handle "denormal operand exception" and clear FZ and DAZ bits.
8066         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
8067         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
8068         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8069         test-fenv-x87 and test-fenv-sse-2.
8070         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
8071
8072         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
8073         * math/test-double.h (BUILD_COMPLEX): New macro.
8074         * math/test-float.h (BUILD_COMPLEX): Likewise.
8075         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
8076
8077         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
8078         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
8079         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
8080         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
8081         instead of DBL_DENORM_MIN in comment.
8082         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
8083         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
8084         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
8085         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
8086         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
8087         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
8088
8089 2015-10-28  Florian Weimer  <fweimer@redhat.com>
8090
8091         [BZ# 19048]
8092         * malloc/malloc.c (struct malloc_state): Update comment.  Add
8093         attached_threads member.
8094         (main_arena): Initialize attached_threads.
8095         * malloc/arena.c (list_lock): Update comment.
8096         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
8097         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
8098         (deattach_arena): New function.
8099         (_int_new_arena): Initialize arena reference count and deattach
8100         replaced arena.
8101         (get_free_list, reused_arena): Update reference count and deattach
8102         replaced arena.
8103         (arena_thread_freeres): Update arena reference count and only put
8104         unreferenced arenas on the free list.
8105
8106 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8107
8108         [BZ #19181]
8109         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
8110         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
8111         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
8112         * math/test-fenv-clear-main.c: New file.
8113         * math/test-fenv-clear.c: Likewise.
8114         * math/Makefile (tests): Add test-fenv-clear.
8115         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
8116         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8117         test-fenv-clear-sse.
8118         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
8119
8120         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
8121         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
8122         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
8123
8124 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8125
8126         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
8127         static libc.
8128
8129 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8130
8131         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
8132         test.
8133         * sysdeps/i386/configure: Regenerated.
8134         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
8135         test.
8136         * sysdeps/x86_64/configure: Regenerated.
8137         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
8138         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8139         memset-avx2 unconditionally instead of conditionally on
8140         [$(config-cflags-avx2) = yes].
8141         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
8142         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
8143         unconditional.
8144         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
8145         * sysdeps/x86_64/multiarch/memset_chk.S
8146         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
8147         to [IS_IN (libc) && SHARED].
8148
8149 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8150
8151         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
8152         configure test.
8153         * sysdeps/arm/configure: Regenerated.
8154         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
8155         Define variable if not already defined.
8156
8157         [BZ #17404]
8158         * sysdeps/mips/atomic-machine.h
8159         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
8160         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
8161         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
8162
8163         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
8164         unconditional.
8165         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
8166         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8167         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
8168         unconditional.
8169         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8170         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
8171         unconditional.
8172         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8173         * stdlib/setenv.c
8174         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
8175         code unconditional.
8176         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
8177         Remove conditional code.
8178         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
8179         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
8180         unconditional.
8181         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8182         code.
8183         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
8184         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
8185         unconditional.
8186         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8187         code.
8188         * sysdeps/ieee754/ldbl-128/k_tanl.c
8189         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8190         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8191         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
8192         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8193         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8194         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
8195         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
8196         unconditional.
8197         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8198         code.
8199         * sysdeps/ieee754/ldbl-96/k_tanl.c
8200         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8201         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8202
8203         * nptl/tst-initializers1-c11.c: New file.
8204         * nptl/tst-initializers1-gnu11.c: Likewise.
8205         * nptl/Makefile (tests): Add these new tests.
8206         (CFLAGS-tst-initializers1-c11.c): New variable.
8207         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
8208
8209         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
8210         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
8211         instead of -std=gnu99.
8212         * configure.ac (systemtap): Test with -std=gnu11 instead of
8213         -std=gnu99.
8214         * configure: Regenerated.
8215         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
8216         in compilation command in comment.
8217
8218         * sysdeps/nptl/configure.ac: Remove file.
8219         * sysdeps/nptl/configure: Remove generated file.
8220         * configure.ac (libc_cv_forced_unwind): Do not substitute.
8221         * configure: Regenerated.
8222         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
8223         * config.make.in (have-forced-unwind): Remove variable.
8224         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8225         unconditional.
8226         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
8227         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
8228         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
8229         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
8230         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8231         unconditional.
8232
8233 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8234
8235         [BZ #19174]
8236         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
8237         .skip_lock_out_of_tbegin_retries.
8238         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
8239         (__lll_lock_elision): Likewise, and respect a value of
8240         try_tbegin <= 0.
8241
8242 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8243
8244         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
8245         statement.
8246
8247 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8248
8249         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
8250         variable.
8251         (test-xfail-ISO11/stdalign.h/conform): Likewise.
8252         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
8253
8254         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
8255         of -std=c1x -D_ISOC11_SOURCE.
8256
8257         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
8258         * configure: Regenerated.
8259         * manual/install.texi (Tools for Compilation): Document
8260         requirement for GCC 4.7 or later.
8261         * INSTALL: Regenerated.
8262
8263 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
8264
8265         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
8266         on CNT to a conditional jump to 'puntdata'.
8267
8268 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8269
8270         * configure.ac (libc_cv_gcc___thread): Remove configure test.
8271         (libc_cv_gcc_tls_model_attr): Likewise.
8272         * configure: Regenerated.
8273
8274         * configure.ac (libc_cv_need_minus_P): Remove configure test.
8275         * configure: Regenerated.
8276         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
8277
8278 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
8279
8280         * configure.ac (old_glibc_headers): Remove configure test.
8281         * configure: Regenerated.
8282         * config.make.in (old-glibc-headers): Remove variable.
8283         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
8284         (install): Remove dependency on remove-old-headers.
8285         (headers2_0): Remove variable.
8286         (remove-old-headers): Remove rule.
8287
8288         * configure.ac (libc_cv_dot_text): Remove configure test.
8289         (libc_cv_asm_set_directive): Use .text instead of
8290         ${libc_cv_dot_text} in configure test.
8291         * configure: Regenerated.
8292
8293 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8294
8295         [BZ #19168]
8296         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8297
8298 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8299
8300         * configure.ac (CXX): Clear the variable if the C++ toolchain does
8301         not support static linking.
8302         * configure: Regenerate.
8303
8304 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
8305
8306         * math/libm-test.inc (check_float_internal): Do not special-case
8307         errors up to 0.5 ulp.
8308
8309         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
8310         log2.
8311         * math/auto-libm-test-out: Regenerated.
8312         * math/libm-test.inc (MAX_EXP): New macro.
8313         (ilogb_test_data): Add more tests.
8314         (isfinite_test_data): Likewise.
8315         (isgreater_test_data): Likewise.
8316         (isgreaterequal_test_data): Likewise.
8317         (isinf_test_data): Likewise.
8318         (isless_test_data): Likewise.
8319         (islessequal_test_data): Likewise.
8320         (islessgreater_test_data): Likewise.
8321         (isnan_test_data): Likewise.
8322         (isnormal_test_data): Likewise.
8323         (issignaling_test_data): Likewise.
8324         (isunordered_test_data): Likewise.
8325         (j0_test_data): Likewise.
8326         (j1_test_data): Likewise.
8327         (jn_test_data): Likewise.
8328         (lgamma_test_data): Likewise.
8329         (log_test_data): Likewise.
8330         (log10_test_data): Likewise.
8331         (log1p_test_data): Likewise.
8332         (log2_test_data): Likewise.
8333         (logb_test_data): Likewise.
8334         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8335
8336         [BZ #18611]
8337         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
8338         avoid excess range and precision on underflow.
8339         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8340         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
8341         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8342         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
8343         underflow.
8344         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8345         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8346         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8347         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8348         * math/auto-libm-test-in: Do not allow missing errno setting for
8349         tests of j1 and jn.
8350         * math/auto-libm-test-out: Regenerated.
8351
8352 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
8353
8354         [BZ #15491]
8355         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
8356         floating-point environment instead of clearing all exceptions.
8357         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
8358         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
8359         merging in "invalid" exceptions from frndint.
8360         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
8361         * math/test-nearbyint-except.c: New file.
8362         * math/Makefile (tests): Add test-nearbyint-except.
8363
8364 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
8365
8366         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
8367
8368         * sysdeps/tile/libm-test-ulps: Regenerated.
8369
8370 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8371
8372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
8373         (__NR_sync_file_range2): Assume it is always defined.
8374         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
8375         (__NR_sync_file_range): Assume it is always defined.
8376
8377 2015-10-22  Andreas Schwab  <schwab@suse.de>
8378
8379         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
8380         INTERNAL_SYSCALL_ERRNO.
8381         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8382         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
8383         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8384         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
8385         Likewise.
8386         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8387
8388 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8389
8390         * io/tst-fcntl.c (fd): New static variable.
8391         (do_prepare): Open temporary file here....
8392         (do_test): ...not here.
8393
8394         * io/ftwtest-sh: Also trap on exit to remove temporary files.
8395
8396 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8397
8398         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
8399         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8400         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8401         Moved before "#ifdef __ASSEMBLER__".
8402
8403 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8404
8405         [BZ #19156]
8406         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
8407         arguments very close to 0.
8408
8409 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
8410
8411         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
8412         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
8413
8414 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8415
8416         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8417         New.  Defined for GCC 5 and above when not compiling for
8418         profiling.
8419         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8420
8421         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
8422         Renamed to ...
8423         (CFLAGS-epoll_pwait.o): This.
8424         (CFLAGS-mmap.c): Renamed to ...
8425         (CFLAGS-mmap.o): This.
8426         (CFLAGS-mmap64.c): Renamed to ...
8427         (CFLAGS-mmap64.o): This.
8428         (CFLAGS-epoll_pwait.os): New.
8429         (CFLAGS-mmap.os): Likewise.
8430         (CFLAGS-mmap64.os): Likewise.
8431         (CFLAGS-semtimedop.os): Likewise.
8432         (CFLAGS-semtimedop.c): Renamed to ...
8433         (CFLAGS-semtimedop.o): This.
8434
8435 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8436
8437         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
8438         warning message.
8439
8440 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8441
8442         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
8443         * Makefile ($(objpfx)c++-types-check.out): Filter out
8444         $(+gccwarn-c) instead of -Wstrict-prototypes.
8445
8446         * io/fts.c (fts_open): Convert to prototype-style function
8447         definition.
8448         * malloc/mcheck.c (mcheck): Likewise.
8449         (mcheck_pedantic): Likewise.
8450         * posix/regexec.c (re_search_2_stub): Likewise.  Use
8451         internal_function.
8452         (re_search_internal): Likewise.
8453         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
8454         prototype-style function definition.
8455         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8456         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8457         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
8458         (xdr_utmpptr): Likewise.
8459         (xdr_utmparr): Likewise.
8460         (xdr_utmpidle): Likewise.
8461         (xdr_utmpidleptr): Likewise.
8462         (xdr_utmpidlearr): Likewise.
8463
8464         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
8465         log, log10 and log2.
8466         * math/auto-libm-test-out: Regenerated.
8467         * math/libm-test.inc (fmod_test_data): Add more tests.
8468         (fpclassify_test_data): Likewise.
8469         (frexp_test_data): Likewise.
8470         (hypot_test_data): Likewise.
8471         (ilogb_test_data): Likewise.
8472
8473 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8474
8475         * debug/fortify_fail.c (__fortify_fail): Convert to
8476         prototype-style function definition.  Use internal_function.
8477         * libio/genops.c (save_for_backup): Convert to prototype-style
8478         function definition.
8479         * libio/wgenops.c (save_for_wbackup): Likewise.
8480         * login/grantpt.c (grantpt): Likewise.
8481         * login/ptsname.c (ptsname): Likewise.
8482         (__ptsname_r): Likewise.
8483         * login/unlockpt.c (unlockpt): Likewise.
8484         * mach/msgserver.c (__mach_msg_server): Likewise.
8485         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
8486         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
8487         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
8488         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
8489         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
8490         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
8491         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
8492         Likewise.
8493         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
8494         internal_function.
8495         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
8496         prototype-style function definition.
8497         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
8498         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
8499         (__pthread_create_2_0): Likewise.
8500         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
8501         * nptl/register-atfork.c (__register_atfork): Likewise.
8502         * posix/glob.c (glob): Likewise.
8503         * posix/regcomp.c (re_comp): Likewise.
8504         * posix/regexec.c (re_exec): Likewise.
8505         * stdlib/add_n.c [__STDC__]: Make code unconditional.
8506         [!__STDC__]: Remove conditional code.
8507         * stdlib/cmp.c [__STDC__]: Make code unconditional.
8508         [!__STDC__]: Remove conditional code.
8509         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
8510         [!__STDC__]: Remove conditional code.
8511         * stdlib/divrem.c [__STDC__]: Make code unconditional.
8512         [!__STDC__]: Remove conditional code.
8513         * stdlib/lshift.c [__STDC__]: Make code unconditional.
8514         [!__STDC__]: Remove conditional code.
8515         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
8516         [!__STDC__]: Remove conditional code.
8517         * stdlib/mul.c [__STDC__]: Make code unconditional.
8518         [!__STDC__]: Remove conditional code.
8519         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
8520         [!__STDC__]: Remove conditional code.
8521         * stdlib/rshift.c [__STDC__]: Make code unconditional.
8522         [!__STDC__]: Remove conditional code.
8523         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
8524         function definition.
8525         (STRTOF): Likewise.
8526         * stdlib/strtod_l.c (__STRTOF): Likewise.
8527         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
8528         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
8529         (__strtol_l): Likewise.
8530         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
8531         [!__STDC__]: Remove conditional code.
8532         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
8533         definition.
8534         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8535         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8536         type.
8537         (__strcasecmp): Convert to prototype-style function definition.
8538         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
8539         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8540         type.
8541         (__strncasecmp): Convert to prototype-style function definition.
8542         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
8543         * sunrpc/xdr.c (xdr_union): Likewise.
8544         * sunrpc/xdr_array.c (xdr_array): Likewise.
8545         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
8546         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
8547         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
8548         Likewise.
8549         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
8550         Likewise.
8551         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
8552         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8553         Likewise.
8554         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
8555         (LOCALE_PARAM_PROTO): Likewise.
8556         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
8557         argument type.
8558         (ut_argument_spec): Remove macro.
8559         (ut_argument_spec_iso): Rename to ut_argument_spec.
8560         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
8561         prototype-style function definition.
8562         (memcpy_uppcase): Likewise.
8563         (__strftime_internal): Likewise.
8564         (my_strftime): Likewise.
8565         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
8566         (LOCALE_PARAM_DECL): Likewise.
8567         [_LIBC] (LOCALE_PARAM): Include argument type.
8568         (__strptime_internal): Convert to prototype-style function
8569         definition.
8570         (strptime): Likewise.
8571         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8572         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8573         type.
8574         (__wcscasecmp): Convert to prototype-style function definition.
8575         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
8576         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8577         type.
8578         (__wcsncasecmp): Convert to prototype-style function definition.
8579
8580         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
8581         function definition.
8582         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8583         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8584         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
8585         * elf/dl-minimal.c (_itoa): Likewise.
8586         * hurd/hurdmalloc.c (malloc): Likewise.
8587         (free): Likewise.
8588         (realloc): Likewise.
8589         * inet/inet6_option.c (inet6_option_space): Likewise.
8590         (inet6_option_init): Likewise.
8591         (inet6_option_append): Likewise.
8592         (inet6_option_alloc): Likewise.
8593         (inet6_option_next): Likewise.
8594         (inet6_option_find): Likewise.
8595         * io/ftw.c (FTW_NAME): Likewise.
8596         (NFTW_NAME): Likewise.
8597         (NFTW_NEW_NAME): Likewise.
8598         (NFTW_OLD_NAME): Likewise.
8599         * libio/iofwide.c (_IO_fwide): Likewise.
8600         * libio/strops.c (_IO_str_init_static_internal): Likewise.
8601         (_IO_str_init_static): Likewise.
8602         (_IO_str_init_readonly): Likewise.
8603         (_IO_str_overflow): Likewise.
8604         (_IO_str_underflow): Likewise.
8605         (_IO_str_count): Likewise.
8606         (_IO_str_seekoff): Likewise.
8607         (_IO_str_pbackfail): Likewise.
8608         (_IO_str_finish): Likewise.
8609         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
8610         (_IO_wstr_overflow): Likewise.
8611         (_IO_wstr_underflow): Likewise.
8612         (_IO_wstr_count): Likewise.
8613         (_IO_wstr_seekoff): Likewise.
8614         (_IO_wstr_pbackfail): Likewise.
8615         (_IO_wstr_finish): Likewise.
8616         * locale/programs/localedef.c (normalize_codeset): Likewise.
8617         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8618         (add_locales_to_archive): Likewise.
8619         (delete_locales_from_archive): Likewise.
8620         * malloc/malloc.c (__libc_mallinfo): Likewise.
8621         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8622         * misc/tsearch.c (__tfind): Likewise.
8623         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8624         * nptl/pthread_attr_getdetachstate.c
8625         (__pthread_attr_getdetachstate): Likewise.
8626         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8627         Likewise.
8628         * nptl/pthread_attr_getinheritsched.c
8629         (__pthread_attr_getinheritsched): Likewise.
8630         * nptl/pthread_attr_getschedparam.c
8631         (__pthread_attr_getschedparam): Likewise.
8632         * nptl/pthread_attr_getschedpolicy.c
8633         (__pthread_attr_getschedpolicy): Likewise.
8634         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8635         Likewise.
8636         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8637         Likewise.
8638         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8639         Likewise.
8640         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8641         Likewise.
8642         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8643         (__pthread_attr_init_2_0): Likewise.
8644         * nptl/pthread_attr_setdetachstate.c
8645         (__pthread_attr_setdetachstate): Likewise.
8646         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8647         Likewise.
8648         * nptl/pthread_attr_setinheritsched.c
8649         (__pthread_attr_setinheritsched): Likewise.
8650         * nptl/pthread_attr_setschedparam.c
8651         (__pthread_attr_setschedparam): Likewise.
8652         * nptl/pthread_attr_setschedpolicy.c
8653         (__pthread_attr_setschedpolicy): Likewise.
8654         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8655         Likewise.
8656         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8657         Likewise.
8658         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8659         Likewise.
8660         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8661         Likewise.
8662         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8663         Likewise.
8664         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8665         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8666         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8667         use internal_function.
8668         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8669         prototype-style function definition.
8670         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8671         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8672         internal_function.
8673         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8674         Convert to prototype-style function definition.
8675         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8676         Likewise.
8677         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8678         Likewise.
8679         (__pthread_mutex_unlock): Likewise.
8680         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8681         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8682         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8683         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8684         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8685         * nss/makedb.c (process_input): Likewise.
8686         * posix/fnmatch.c (__strchrnul): Likewise.
8687         (__wcschrnul): Likewise.
8688         (fnmatch): Likewise.
8689         * posix/fnmatch_loop.c (FCT): Likewise.
8690         * posix/glob.c (globfree): Likewise.
8691         (__glob_pattern_type): Likewise.
8692         (__glob_pattern_p): Likewise.
8693         * posix/regcomp.c (re_compile_pattern): Likewise.
8694         (re_set_syntax): Likewise.
8695         (re_compile_fastmap): Likewise.
8696         (regcomp): Likewise.
8697         (regerror): Likewise.
8698         (regfree): Likewise.
8699         * posix/regexec.c (regexec): Likewise.
8700         (re_match): Likewise.
8701         (re_search): Likewise.
8702         (re_match_2): Likewise.
8703         (re_search_2): Likewise.
8704         (re_search_stub): Likewise.  Use internal_function
8705         (re_copy_regs): Likewise.
8706         (re_set_registers): Convert to prototype-style function
8707         definition.
8708         (prune_impossible_nodes): Likewise.  Use internal_function.
8709         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8710         prototype-style function definition.
8711         (inet_net_pton_ipv4): Likewise.
8712         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8713         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8714         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8715         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8716         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8717         Make variadic.
8718         * time/strptime_l.c (localtime_r): Convert to prototype-style
8719         function definition.
8720         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8721         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8722         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8723         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8724
8725         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8726         definition.
8727         (_ufc_doit_r): Likewise.
8728         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8729         (_ufc_output_conversion_r): Likewise.
8730         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8731         * inet/rcmd.c (rcmd_af): Likewise.
8732         (rcmd): Likewise.
8733         (ruserok_af): Likewise.
8734         (ruserok): Likewise.
8735         (ruserok2_sa): Likewise.
8736         (ruserok_sa): Likewise.
8737         (iruserok_af): Likewise.
8738         (iruserok): Likewise.
8739         (__ivaliduser): Likewise.
8740         (__validuser2_sa): Likewise.
8741         * inet/rexec.c (rexec_af): Likewise.
8742         (rexec): Likewise.
8743         * inet/ruserpass.c (ruserpass): Likewise.
8744         * locale/programs/xmalloc.c (xcalloc): Likewise.
8745         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8746         * math/w_drem.c (__drem): Likewise.
8747         * math/w_dremf.c (__dremf): Likewise.
8748         * math/w_dreml.c (__dreml): Likewise.
8749         * misc/daemon.c (daemon): Likewise.
8750         * resolv/res_debug.c (p_fqnname): Likewise.
8751         * stdlib/div.c (div): Likewise.
8752         * string/memcmp.c (memcmp_bytes): Likewise.
8753         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8754         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8755
8756         * crypt/cert.c (main): Convert to prototype-style function
8757         definition.
8758         * io/pipe.c (__pipe): Likewise.
8759         * io/pipe2.c (__pipe2): Likewise.
8760         * misc/futimesat.c (futimesat): Likewise.
8761         * misc/utimes.c (__utimes): Likewise.
8762         * posix/execve.c (__execve): Likewise.
8763         * posix/execvp.c (execvp): Likewise.
8764         * posix/execvpe.c (__execvpe): Likewise.
8765         * posix/fexecve.c (fexecve): Likewise.
8766         * socket/socketpair.c (socketpair): Likewise.
8767         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8768         * stdlib/erand48.c (erand48): Likewise.
8769         * stdlib/erand48_r.c (__erand48_r): Likewise.
8770         * stdlib/jrand48.c (jrand48): Likewise.
8771         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8772         * stdlib/lcong48.c (lcong48): Likewise.
8773         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8774         * stdlib/nrand48.c (nrand48): Likewise.
8775         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8776         * stdlib/seed48.c (seed48): Likewise.
8777         * stdlib/seed48_r.c (__seed48_r): Likewise.
8778         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8779         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8780         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8781
8782 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8783
8784         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8785         * configure: Regenerated.
8786         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8787         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8788         unconditional.
8789         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8790         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8791         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8792         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8793         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8794         unconditional.
8795         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8796
8797         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8798         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8799
8800         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8801         function definition.
8802         * crypt/crypt_util.c (__encrypt_r): Likewise.
8803         * libio/genops.c (_IO_no_init): Likewise.
8804         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8805         (_IO_old_fopencookie): Likewise.
8806         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8807         * libio/iogetline.c (_IO_getline): Likewise.
8808         (_IO_getline_info): Likewise.
8809         * libio/iogetwline.c (_IO_getwline): Likewise.
8810         (_IO_getwline_info): Likewise.
8811         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8812         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8813         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8814         (find_entry): Likewise.
8815         (iterate_table): Likewise.
8816         (lookup): Likewise.
8817         * login/forkpty.c (forkpty): Likewise.
8818         * misc/hsearch_r.c (__hsearch_r): Likewise.
8819         * misc/select.c (__select): Likewise.
8820         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8821         Likewise.
8822         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8823         Likewise.
8824         * nptl/old_pthread_cond_timedwait.c
8825         (__pthread_cond_timedwait_2_0): Likewise.
8826         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8827         * nptl/pthread_barrierattr_getpshared.c
8828         (pthread_barrierattr_getpshared): Likewise.
8829         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8830         Likewise.
8831         * nptl/pthread_mutex_setprioceiling.c
8832         (pthread_mutex_setprioceiling): Likewise.
8833         * nptl/pthread_mutexattr_getprioceiling.c
8834         (pthread_mutexattr_getprioceiling): Likewise.
8835         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8836         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8837         Likewise.
8838         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8839         Likewise.
8840         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8841         Likewise.
8842         * socket/recvfrom.c (__recvfrom): Likewise.
8843         * socket/sendto.c (__sendto): Likewise.
8844         * socket/setsockopt.c (__setsockopt): Likewise.
8845         * stdio-common/_itoa.c (_itoa): Likewise.
8846         * stdio-common/_itowa.c (_itowa): Likewise.
8847         * stdio-common/reg-printf.c (__register_printf_specifier):
8848         Likewise.
8849         (__register_printf_function): Likewise.
8850         * stdio-common/tempname.c (__path_search): Likewise.
8851         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8852         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8853         * stdlib/random_r.c (__initstate_r): Likewise.
8854         * stdlib/setenv.c (__add_to_environ): Likewise.
8855         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8856         * streams/getpmsg.c (getpmsg): Likewise.
8857         * streams/putmsg.c (putmsg): Likewise.
8858         * streams/putpmsg.c (putpmsg): Likewise.
8859         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8860         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8861         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8862         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8863         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8864         * sunrpc/svc_udp.c (cache_get): Likewise.
8865         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8866         * sysdeps/mach/hurd/getcwd.c
8867         (__canonicalize_directory_name_internal): Likewise.
8868         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8869         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8870         * sysdeps/mach/hurd/select.c (__select): Likewise.
8871         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8872         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8873         * sysdeps/sparc/nptl/pthread_barrier_init.c
8874         (__pthread_barrier_init): Likewise.
8875         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8876         (__pthread_cond_timedwait): Likewise.
8877         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8878         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8879         Likewise.
8880         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8881         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8882         Likewise.
8883         * sysvipc/semtimedop.c (semtimedop): Likewise.
8884         * time/setitimer.c (__setitimer): Likewise.
8885         * time/strftime_l.c (emacs_strftime): Likewise.
8886
8887 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8888
8889         * config.make.in (have-ssp): Delete.
8890         (stack-protector): New variable.
8891         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8892         cache test for -fstack-protector-strong.  Export stack_protector to
8893         the best ssp flag.
8894         * configure: Regenerated.
8895         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8896         * nscd/Makefile (CFLAGS-nscd): Likewise.
8897         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8898
8899 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8900
8901         [BZ #19122]
8902         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8903         attribute_hidden.
8904
8905 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8906
8907         [BZ #18743]
8908         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8909         code to...
8910         (ELIDE_LOCK): ...here.
8911         (__get_new_count): New function with part of the code from
8912         __elide_lock that updates the value of adapt_count after a
8913         transaction abort.
8914         (__elided_trylock): Moved this code to...
8915         (ELIDE_TRYLOCK): ...here.
8916
8917 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8918
8919         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8920         * configure: Regenerate.
8921         * INSTALL: Regenerate.
8922         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8923         and tweak grammar.
8924
8925 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8926
8927         * login/programs/pt_chown.c: Include signal.h
8928         (main): Clear any signal mask from the parent process.
8929
8930 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8931
8932         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8933         * configure: Regenerated.
8934         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8935         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8936         $(gnu89-inline-CFLAGS).
8937
8938         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8939         test.
8940         (libc_cv_asm_weakext_directive): Likewise.
8941         * configure: Regenerated.
8942         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8943         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8944         * include/libc-symbols.h
8945         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8946         #error.
8947         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8948         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8949
8950         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8951         prototype-style function definition.
8952         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8953         * sysdeps/i386/ffs.c (__ffs): Likewise.
8954         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8955         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8956         Likewise.
8957         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8958         Likewise.
8959         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8960         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8961         Likewise.
8962         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8963         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8964         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8965         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8966         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8967         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8968         * sysdeps/mach/hurd/access.c (__access): Likewise.
8969         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8970         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8971         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8972         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8973         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8974         (cthread_getspecific): Likewise.
8975         (cthread_setspecific): Likewise.
8976         (__libc_getspecific): Likewise.
8977         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8978         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8979         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8980         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8981         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8982         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8983         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8984         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8985         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8986         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8987         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8988         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8989         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8990         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8991         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8992         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8993         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8994         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8995         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8996         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8997         * sysdeps/mach/hurd/link.c (__link): Likewise.
8998         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8999         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
9000         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
9001         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
9002         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
9003         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
9004         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
9005         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
9006         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
9007         * sysdeps/mach/hurd/rename.c (rename): Likewise.
9008         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
9009         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
9010         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
9011         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
9012         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
9013         * sysdeps/mach/hurd/send.c (__send): Likewise.
9014         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
9015         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
9016         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
9017         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
9018         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
9019         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
9020         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
9021         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
9022         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
9023         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
9024         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
9025         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
9026         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
9027         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
9028         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
9029         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
9030         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
9031         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
9032         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
9033         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
9034         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
9035         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
9036         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
9037         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
9038         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
9039         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
9040         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
9041         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
9042         * sysdeps/posix/alarm.c (alarm): Likewise.
9043         * sysdeps/posix/cuserid.c (cuserid): Likewise.
9044         * sysdeps/posix/dirfd.c (dirfd): Likewise.
9045         * sysdeps/posix/dup.c (__dup): Likewise.
9046         * sysdeps/posix/dup2.c (__dup2): Likewise.
9047         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
9048         (main): Likewise.
9049         * sysdeps/posix/flock.c (__flock): Likewise.
9050         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
9051         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9052         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
9053         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
9054         * sysdeps/posix/isatty.c (__isatty): Likewise.
9055         * sysdeps/posix/killpg.c (killpg): Likewise.
9056         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
9057         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
9058         * sysdeps/posix/raise.c (raise): Likewise.
9059         * sysdeps/posix/remove.c (remove): Likewise.
9060         * sysdeps/posix/rename.c (rename): Likewise.
9061         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
9062         * sysdeps/posix/seekdir.c (seekdir): Likewise.
9063         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
9064         * sysdeps/posix/sigignore.c (sigignore): Likewise.
9065         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
9066         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
9067         * sysdeps/posix/sigset.c (sigset): Likewise.
9068         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
9069         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
9070         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
9071         * sysdeps/posix/time.c (time): Likewise.
9072         * sysdeps/posix/ttyname.c (getttyname): Likewise.
9073         (ttyname): Likewise.
9074         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
9075         * sysdeps/posix/utime.c (utime): Likewise.
9076         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
9077         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
9078         Likewise.
9079         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
9080         (pthread_spin_trylock): Likewise.
9081         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
9082         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
9083         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
9084         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
9085         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
9086         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
9087         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
9088         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
9089         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
9090         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
9091         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
9092         * sysdeps/s390/ffs.c (__ffs): Likewise.
9093         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
9094         Likewise.
9095         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
9096         Likewise.
9097         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
9098         Likewise.
9099         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
9100         (pthread_barrier_destroy): Likewise.
9101         * sysdeps/sparc/nptl/pthread_barrier_wait.c
9102         (__pthread_barrier_wait): Likewise.
9103         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
9104         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
9105         (__pthread_barrier_wait): Likewise.
9106         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
9107         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
9108         (memcmp_not_common_alignment): Likewise.
9109         (MEMCMP): Likewise.
9110         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
9111         (_wordcopy_fwd_dest_aligned): Likewise.
9112         (_wordcopy_bwd_aligned): Likewise.
9113         (_wordcopy_bwd_dest_aligned): Likewise.
9114         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
9115         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
9116         * sysdeps/unix/bsd/stty.c (stty): Likewise.
9117         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
9118         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
9119         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
9120         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
9121         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
9122         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
9123         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
9124         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
9125         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
9126         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
9127         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
9128         * sysdeps/unix/stime.c (stime): Likewise.
9129         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
9130         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
9131         Likewise.  Use internal_function.
9132         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
9133         Convert to prototype-style function definition.
9134         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9135         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9136         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
9137         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
9138         Likewise.  Use internal_function.
9139         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
9140         prototype-style function definition
9141         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9142         Likewise.
9143         (__getlogin_r): Likewise.
9144         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
9145         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
9146         (__pthread_cond_broadcast): Likewise.
9147         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
9148         (__pthread_cond_destroy): Likewise.
9149         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
9150         (__pthread_cond_init): Likewise.
9151         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
9152         (__pthread_cond_signal): Likewise.
9153         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
9154         (__pthread_cond_wait): Likewise.
9155         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
9156         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9157         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
9158         Likewise.
9159         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
9160         Likewise.
9161         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
9162         Likewise.
9163         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
9164         Likewise.
9165         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
9166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
9167         (__ftruncate64): Likewise.
9168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
9169         (truncate64): Likewise.
9170         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
9171         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
9172         (pthread_getcpuclockid): Likewise.
9173         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9174         Likewise.
9175         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9176         Likewise.
9177         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
9178         Likewise.
9179         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
9180         Likewise.
9181         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
9182         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
9183         (__libc_sigaction): Likewise.
9184         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
9185         Likewise.
9186         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
9187         (__sigprocmask): Likewise.
9188         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
9189         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
9190         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
9191         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9192         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
9193         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
9194         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
9195         Likewise.
9196         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
9197         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
9198         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
9199         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
9200         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
9201         Likewise.
9202         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
9203         (__sigprocmask): Likewise.
9204         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
9205         (cfgetispeed): Likewise.
9206         (cfsetospeed): Likewise.
9207         (cfsetispeed): Likewise.
9208         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
9209         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
9210         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
9211         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9212         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
9213         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
9214         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
9215         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
9216         Likewise.
9217         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
9218         Likewise.
9219         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
9220         Likewise.
9221         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
9222         Likewise.
9223         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
9224
9225 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9226
9227         sunrpc: Rewrite with explicit TLS access using __thread.
9228         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
9229         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
9230         directly.
9231         (__rpc_thread_variables): Access thread_rpc_vars directly.
9232         Eliminate redundant assignment of the tvp variable.
9233
9234 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9235
9236         malloc: Rewrite with explicit TLS access using __thread.
9237         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
9238         (tsd_setspecific, tsd_getspecific): Remove.
9239         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
9240         (tsd_setspecific, tsd_getspecific): Likewise.
9241         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
9242         (tsd_setspecific, tsd_getspecific): Likewise.
9243         * malloc/arena.c (thread_arena): New TLS variable.
9244         (arena_key): Remove variable.
9245         (arena_get): Use thread_arena.
9246         (arena_lookup): Remove macro.
9247         (malloc_atfork, free_atfork, ptmalloc_lock_all)
9248         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
9249         (_int_new_arena, get_free_list, reused_arena)
9250         (arena_thread_freeres): Use thread_arena.
9251         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
9252         tsd_getspecific, tsd_setspecific from safety annotations.
9253         (Allocating Cleared Space): Remove arena_lookup from safety
9254         annotations.
9255
9256 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9257
9258         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
9259         struct scratch_buffer instead of extend_alloca.
9260
9261 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9262
9263         * sysdeps/unix/sysv/linux/kernel-features.h
9264         (__ASSUME_SOCK_CLOEXEC): Remove.
9265         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
9266         (__have_paccept): Remove unused macro.
9267         * include/unistd.h (__have_sock_cloexec): Remove declaration.
9268         * misc/syslog.c (openlog_internal): Remove fallback code for
9269         !__ASSUME_SOCK_CLOEXEC.
9270         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
9271         missing SOCK_CLOEXEC.
9272         * nscd/connections.c (have_sock_cloexec): Remove definition.
9273         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9274         * nscd/nscd_helper.c (open_socket): Remove fallback code for
9275         !__ASSUME_SOCK_CLOEXEC.
9276         * resolv/res_send.c (__have_o_nonblock): Remove definition.
9277         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9278         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
9279         definition.
9280         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
9281         code for !__ASSUME_SOCK_CLOEXEC.
9282
9283 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9284
9285         [BZ #18982]
9286         * manual/stdio.texi (Variable Arguments Output): Add portability
9287         note, explaining that vfprintf clobbers the va_list pointer.
9288
9289 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9290
9291         * math/libm-test.inc (fabs_test_data): Add more tests.
9292         (fdim_test_data): Likewise.
9293         (fma_test_data): Likewise.
9294         (fmax_test_data): Likewise.
9295         (fmin_test_data): Likewise.
9296         (fmod_test_data): Likewise.
9297
9298 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
9299
9300         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
9301         data.
9302
9303 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9304
9305         * math/libm-test.inc (ceil_test_data): Add more tests and more
9306         expectations for "inexact".
9307         (floor_test_data): Add more tests.
9308         (round_test_data): Likewise.
9309         (trunc_test_data): Likewise.
9310
9311         * crypt/cert.c (good_bye): Convert to prototype-style function
9312         definition.
9313         (get8): Likewise.
9314         (put8): Likewise.
9315         * crypt/crypt-entry.c (crypt): Likewise.
9316         (__fcrypt): Likewise.
9317         * crypt/crypt_util.c (_ufc_prbits): Likewise.
9318         (_ufc_set_bits): Likewise.
9319         (_ufc_clearmem): Likewise.
9320         (__init_des_r): Likewise.
9321         (shuffle_sb): Likewise.
9322         (shuffle_sb): Likewise.
9323         (_ufc_setup_salt_r): Likewise.
9324         (_ufc_mk_keytab_r): Likewise.
9325         (_ufc_dofinalperm_r): Likewise.
9326         (encrypt): Likewise.
9327         (__setkey_r): Likewise.
9328         (setkey): Likewise.
9329         * crypt/md5.c (md5_init_ctx): Likewise.
9330         (md5_read_ctx): Likewise.
9331         (md5_finish_ctx): Likewise.
9332         (md5_stream): Likewise.
9333         (md5_buffer): Likewise.
9334         (md5_process_bytes): Likewise.
9335         * crypt/sha256.c (__sha256_init_ctx): Likewise.
9336         (__sha256_finish_ctx): Likewise.
9337         (__sha256_process_bytes): Likewise.
9338         * crypt/sha512.c (__sha512_init_ctx): Likewise.
9339         (__sha512_finish_ctx): Likewise.
9340         (__sha512_process_bytes): Likewise.
9341         * ctype/isctype.c (__isctype): Likewise.
9342         * debug/backtrace.c (__backtrace): Likewise.
9343         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
9344         * debug/fgets_chk.c (__fgets_chk): Likewise.
9345         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
9346         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
9347         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
9348         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
9349         * debug/memset_chk.c (__memset_chk): Likewise.
9350         * debug/strcat_chk.c (__strcat_chk): Likewise.
9351         * debug/strncat_chk.c (__strncat_chk): Likewise.
9352         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
9353         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
9354         * dirent/dirfd.c (dirfd): Likewise.
9355         * dirent/getdents.c (__getdirentries): Likewise.
9356         * dirent/getdents64.c (getdirentries64): Likewise.
9357         * dirent/rewinddir.c (__rewinddir): Likewise.
9358         * dirent/seekdir.c (seekdir): Likewise.
9359         * dirent/telldir.c (telldir): Likewise.
9360         * elf/sln.c (makesymlinks): Likewise.
9361         (makesymlink): Likewise.
9362         * gmon/gmon.c (__moncontrol): Likewise.
9363         (__monstartup): Likewise.
9364         (write_hist): Likewise.
9365         (write_call_graph): Likewise.
9366         (write_bb_counts): Likewise.
9367         * grp/setgroups.c (setgroups): Likewise.
9368         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9369         * inet/inet_net.c (inet_network): Likewise.
9370         * inet/inet_netof.c (inet_netof): Likewise.
9371         * inet/rcmd.c (rresvport_af): Likewise.
9372         (rresvport): Likewise.
9373         * io/access.c (__access): Likewise.
9374         * io/chdir.c (__chdir): Likewise.
9375         * io/chmod.c (__chmod): Likewise.
9376         * io/chown.c (__chown): Likewise.
9377         * io/close.c (__close): Likewise.
9378         * io/creat.c (creat): Likewise.
9379         * io/creat64.c (creat64): Likewise.
9380         * io/dup.c (__dup): Likewise.
9381         * io/dup2.c (__dup2): Likewise.
9382         * io/dup3.c (__dup3): Likewise.
9383         * io/euidaccess.c (__euidaccess): Likewise.
9384         * io/faccessat.c (faccessat): Likewise.
9385         * io/fchmod.c (__fchmod): Likewise.
9386         * io/fchmodat.c (fchmodat): Likewise.
9387         * io/fchown.c (__fchown): Likewise.
9388         * io/fchownat.c (fchownat): Likewise.
9389         * io/fcntl.c (__fcntl): Likewise.
9390         * io/flock.c (__flock): Likewise.
9391         * io/fts.c (fts_load): Likewise.
9392         (fts_close): Likewise.
9393         (fts_read): Likewise.
9394         (fts_set): Likewise.
9395         (fts_children): Likewise.
9396         (fts_build): Likewise.
9397         (fts_stat): Likewise.
9398         (fts_sort): Likewise.
9399         (fts_alloc): Likewise.
9400         (fts_lfree): Likewise.
9401         (fts_palloc): Likewise.
9402         (fts_padjust): Likewise.
9403         (fts_maxarglen): Likewise.
9404         (fts_safe_changedir): Likewise.
9405         * io/getwd.c (getwd): Likewise.
9406         * io/isatty.c (__isatty): Likewise.
9407         * io/lchown.c (__lchown): Likewise.
9408         * io/link.c (__link): Likewise.
9409         * io/linkat.c (linkat): Likewise.
9410         * io/lseek.c (__libc_lseek): Likewise.
9411         * io/mkdir.c (__mkdir): Likewise.
9412         * io/mkdirat.c (mkdirat): Likewise.
9413         * io/mkfifo.c (mkfifo): Likewise.
9414         * io/mkfifoat.c (mkfifoat): Likewise.
9415         * io/open.c (__libc_open): Likewise.
9416         * io/open64.c (__libc_open64): Likewise.
9417         * io/readlink.c (__readlink): Likewise.
9418         * io/readlinkat.c (readlinkat): Likewise.
9419         * io/rmdir.c (__rmdir): Likewise.
9420         * io/symlink.c (__symlink): Likewise.
9421         * io/symlinkat.c (symlinkat): Likewise.
9422         * io/ttyname.c (ttyname): Likewise.
9423         * io/ttyname_r.c (__ttyname_r): Likewise.
9424         * io/umask.c (__umask): Likewise.
9425         * io/unlink.c (__unlink): Likewise.
9426         * io/unlinkat.c (unlinkat): Likewise.
9427         * io/utime.c (utime): Likewise.
9428         * libio/clearerr.c (clearerr): Likewise.
9429         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
9430         * libio/feof.c (_IO_feof): Likewise.
9431         * libio/feof_u.c (feof_unlocked): Likewise.
9432         * libio/ferror.c (_IO_ferror): Likewise.
9433         * libio/ferror_u.c (ferror_unlocked): Likewise.
9434         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
9435         * libio/fileno.c (__fileno): Likewise.
9436         * libio/fputc.c (fputc): Likewise.
9437         * libio/fputc_u.c (fputc_unlocked): Likewise.
9438         * libio/fputwc.c (fputwc): Likewise.
9439         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
9440         * libio/freopen.c (freopen): Likewise.
9441         * libio/freopen64.c (freopen64): Likewise.
9442         * libio/fseek.c (fseek): Likewise.
9443         * libio/fseeko.c (fseeko): Likewise.
9444         * libio/fseeko64.c (fseeko64): Likewise.
9445         * libio/ftello.c (__ftello): Likewise.
9446         * libio/ftello64.c (ftello64): Likewise.
9447         * libio/fwide.c (fwide): Likewise.
9448         * libio/genops.c (_IO_un_link): Likewise.
9449         (_IO_link_in): Likewise.
9450         (_IO_least_marker): Likewise.
9451         (_IO_switch_to_main_get_area): Likewise.
9452         (_IO_switch_to_backup_area): Likewise.
9453         (_IO_switch_to_get_mode): Likewise.
9454         (_IO_free_backup_area): Likewise.
9455         (_IO_switch_to_put_mode): Likewise.
9456         (__overflow): Likewise.
9457         (__underflow): Likewise.
9458         (__uflow): Likewise.
9459         (_IO_setb): Likewise.
9460         (_IO_doallocbuf): Likewise.
9461         (_IO_default_underflow): Likewise.
9462         (_IO_default_uflow): Likewise.
9463         (_IO_default_xsputn): Likewise.
9464         (_IO_sgetn): Likewise.
9465         (_IO_default_xsgetn): Likewise.
9466         (_IO_sync): Likewise.
9467         (_IO_default_setbuf): Likewise.
9468         (_IO_default_seekpos): Likewise.
9469         (_IO_default_doallocate): Likewise.
9470         (_IO_init): Likewise.
9471         (_IO_old_init): Likewise.
9472         (_IO_default_sync): Likewise.
9473         (_IO_default_finish): Likewise.
9474         (_IO_default_seekoff): Likewise.
9475         (_IO_sputbackc): Likewise.
9476         (_IO_sungetc): Likewise.
9477         (_IO_set_column): Likewise.
9478         (_IO_set_column): Likewise.
9479         (_IO_adjust_column): Likewise.
9480         (_IO_get_column): Likewise.
9481         (_IO_init_marker): Likewise.
9482         (_IO_remove_marker): Likewise.
9483         (_IO_marker_difference): Likewise.
9484         (_IO_marker_delta): Likewise.
9485         (_IO_seekmark): Likewise.
9486         (_IO_unsave_markers): Likewise.
9487         (_IO_nobackup_pbackfail): Likewise.
9488         (_IO_default_pbackfail): Likewise.
9489         (_IO_default_seek): Likewise.
9490         (_IO_default_stat): Likewise.
9491         (_IO_default_read): Likewise.
9492         (_IO_default_write): Likewise.
9493         (_IO_default_showmanyc): Likewise.
9494         (_IO_default_imbue): Likewise.
9495         (_IO_iter_next): Likewise.
9496         (_IO_iter_file): Likewise.
9497         * libio/getc.c (_IO_getc): Likewise.
9498         * libio/getwc.c (_IO_getwc): Likewise.
9499         * libio/iofclose.c (_IO_new_fclose): Likewise.
9500         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9501         * libio/iofflush.c (_IO_fflush): Likewise.
9502         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
9503         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9504         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
9505         * libio/iofgets.c (_IO_fgets): Likewise.
9506         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
9507         * libio/iofgetws.c (fgetws): Likewise.
9508         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9509         * libio/iofopen64.c (_IO_fopen64): Likewise.
9510         * libio/iofopncook.c (_IO_cookie_read): Likewise.
9511         (_IO_cookie_write): Likewise.
9512         (_IO_cookie_seek): Likewise.
9513         (_IO_cookie_close): Likewise.
9514         (_IO_cookie_seekoff): Likewise.
9515         (_IO_old_cookie_seek): Likewise.
9516         * libio/iofputs.c (_IO_fputs): Likewise.
9517         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
9518         * libio/iofputws.c (fputws): Likewise.
9519         * libio/iofputws_u.c (fputws_unlocked): Likewise.
9520         * libio/iofread.c (_IO_fread): Likewise.
9521         * libio/iofread_u.c (__fread_unlocked): Likewise.
9522         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
9523         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9524         * libio/ioftell.c (_IO_ftell): Likewise.
9525         * libio/iofwrite.c (_IO_fwrite): Likewise.
9526         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9527         * libio/iogets.c (_IO_gets): Likewise.
9528         * libio/iopadn.c (_IO_padn): Likewise.
9529         * libio/iopopen.c (_IO_new_proc_open): Likewise.
9530         (_IO_new_popen): Likewise.
9531         (_IO_new_proc_close): Likewise.
9532         * libio/ioputs.c (_IO_puts): Likewise.
9533         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
9534         (_IO_seekoff): Likewise.
9535         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
9536         (_IO_seekpos): Likewise.
9537         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
9538         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9539         * libio/ioungetc.c (_IO_ungetc): Likewise.
9540         * libio/ioungetwc.c (ungetwc): Likewise.
9541         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9542         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
9543         * libio/iowpadn.c (_IO_wpadn): Likewise.
9544         * libio/libc_fatal.c (__libc_fatal): Likewise.
9545         * libio/memstream.c (__open_memstream): Likewise.
9546         (_IO_mem_sync): Likewise.
9547         (_IO_mem_finish): Likewise.
9548         * libio/oldfileops.c (_IO_old_file_init): Likewise.
9549         (_IO_old_file_close_it): Likewise.
9550         (_IO_old_file_finish): Likewise.
9551         (_IO_old_file_fopen): Likewise.
9552         (_IO_old_file_attach): Likewise.
9553         (_IO_old_file_setbuf): Likewise.
9554         (_IO_old_do_write): Likewise.
9555         (old_do_write): Likewise.
9556         (_IO_old_file_underflow): Likewise.
9557         (_IO_old_file_overflow): Likewise.
9558         (_IO_old_file_sync): Likewise.
9559         (_IO_old_file_seekoff): Likewise.
9560         (_IO_old_file_write): Likewise.
9561         (_IO_old_file_xsputn): Likewise.
9562         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
9563         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
9564         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
9565         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
9566         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
9567         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
9568         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
9569         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9570         (_IO_old_popen): Likewise.
9571         (_IO_old_proc_close): Likewise.
9572         * libio/oldpclose.c (__old_pclose): Likewise.
9573         * libio/pclose.c (__new_pclose): Likewise.
9574         * libio/peekc.c (_IO_peekc_locked): Likewise.
9575         * libio/putc.c (_IO_putc): Likewise.
9576         * libio/putc_u.c (putc_unlocked): Likewise.
9577         * libio/putchar.c (putchar): Likewise.
9578         * libio/putchar_u.c (putchar_unlocked): Likewise.
9579         * libio/putwc.c (putwc): Likewise.
9580         * libio/putwc_u.c (putwc_unlocked): Likewise.
9581         * libio/putwchar.c (putwchar): Likewise.
9582         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
9583         * libio/rewind.c (rewind): Likewise.
9584         * libio/setbuf.c (setbuf): Likewise.
9585         * libio/setlinebuf.c (setlinebuf): Likewise.
9586         * libio/vasprintf.c (_IO_vasprintf): Likewise.
9587         * libio/vscanf.c (_IO_vscanf): Likewise.
9588         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
9589         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
9590         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
9591         * libio/wgenops.c (_IO_least_wmarker): Likewise.
9592         (_IO_switch_to_main_wget_area): Likewise.
9593         (_IO_switch_to_wbackup_area): Likewise.
9594         (_IO_wsetb): Likewise.
9595         (_IO_wdefault_pbackfail): Likewise.
9596         (_IO_wdefault_finish): Likewise.
9597         (_IO_wdefault_uflow): Likewise.
9598         (__woverflow): Likewise.
9599         (__wuflow): Likewise.
9600         (__wunderflow): Likewise.
9601         (_IO_wdefault_xsputn): Likewise.
9602         (_IO_wdefault_xsgetn): Likewise.
9603         (_IO_wdoallocbuf): Likewise.
9604         (_IO_wdefault_doallocate): Likewise.
9605         (_IO_switch_to_wget_mode): Likewise.
9606         (_IO_free_wbackup_area): Likewise.
9607         (_IO_switch_to_wput_mode): Likewise.
9608         (_IO_sputbackwc): Likewise.
9609         (_IO_sungetwc): Likewise.
9610         (_IO_adjust_wcolumn): Likewise.
9611         (_IO_init_wmarker): Likewise.
9612         (_IO_wmarker_delta): Likewise.
9613         (_IO_seekwmark): Likewise.
9614         (_IO_unsave_wmarkers): Likewise.
9615         * libio/wmemstream.c (open_wmemstream): Likewise.
9616         (_IO_wmem_sync): Likewise.
9617         (_IO_wmem_finish): Likewise.
9618         * locale/nl_langinfo.c (nl_langinfo): Likewise.
9619         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
9620         * locale/programs/simple-hash.c (init_hash): Likewise.
9621         (delete_hash): Likewise.
9622         (insert_entry): Likewise.
9623         (set_entry): Likewise.
9624         (next_prime): Likewise.
9625         (is_prime): Likewise.
9626         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9627         (xmalloc): Likewise.
9628         (xrealloc): Likewise.
9629         * locale/programs/xstrdup.c (xstrdup): Likewise.
9630         * localedata/collate-test.c (xstrcoll): Likewise.
9631         * localedata/xfrm-test.c (xstrcmp): Likewise.
9632         * login/getlogin_r.c (__getlogin_r): Likewise.
9633         * login/getpt.c (__posix_openpt): Likewise.
9634         * login/login_tty.c (login_tty): Likewise.
9635         * login/setlogin.c (setlogin): Likewise.
9636         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9637         (mach_msg_destroy_port): Likewise.
9638         (mach_msg_destroy_memory): Likewise.
9639         * malloc/mcheck.c (flood): Likewise.
9640         * misc/acct.c (acct): Likewise.
9641         * misc/brk.c (__brk): Likewise.
9642         * misc/chflags.c (chflags): Likewise.
9643         * misc/chroot.c (chroot): Likewise.
9644         * misc/fchflags.c (fchflags): Likewise.
9645         * misc/fstab.c (getfsspec): Likewise.
9646         (getfsfile): Likewise.
9647         * misc/fsync.c (fsync): Likewise.
9648         * misc/ftruncate.c (__ftruncate): Likewise.
9649         * misc/ftruncate64.c (__ftruncate64): Likewise.
9650         * misc/getdomain.c (getdomainname): Likewise.
9651         (getdomainname): Likewise.
9652         * misc/gethostname.c (__gethostname): Likewise.
9653         * misc/getpass.c (getpass): Likewise.
9654         * misc/getttyent.c (skip): Likewise.
9655         (value): Likewise.
9656         * misc/gtty.c (gtty): Likewise.
9657         * misc/hsearch.c (hsearch): Likewise.
9658         (hcreate): Likewise.
9659         * misc/hsearch_r.c (__hcreate_r): Likewise.
9660         (__hdestroy_r): Likewise.
9661         * misc/ioctl.c (__ioctl): Likewise.
9662         * misc/mkdtemp.c (mkdtemp): Likewise.
9663         * misc/mkostemp.c (mkostemp): Likewise.
9664         * misc/mkostemp64.c (mkostemp64): Likewise.
9665         * misc/mkostemps.c (mkostemps): Likewise.
9666         * misc/mkostemps64.c (mkostemps64): Likewise.
9667         * misc/mkstemp.c (mkstemp): Likewise.
9668         * misc/mkstemp64.c (mkstemp64): Likewise.
9669         * misc/mkstemps.c (mkstemps): Likewise.
9670         * misc/mkstemps64.c (mkstemps64): Likewise.
9671         * misc/mktemp.c (__mktemp): Likewise.
9672         * misc/preadv.c (preadv): Likewise.
9673         * misc/preadv64.c (preadv64): Likewise.
9674         * misc/pwritev.c (pwritev): Likewise.
9675         * misc/pwritev64.c (pwritev64): Likewise.
9676         * misc/readv.c (__readv): Likewise.
9677         * misc/revoke.c (revoke): Likewise.
9678         * misc/setdomain.c (setdomainname): Likewise.
9679         * misc/setegid.c (setegid): Likewise.
9680         * misc/seteuid.c (seteuid): Likewise.
9681         * misc/sethostid.c (sethostid): Likewise.
9682         * misc/sethostname.c (sethostname): Likewise.
9683         * misc/setregid.c (__setregid): Likewise.
9684         * misc/setreuid.c (__setreuid): Likewise.
9685         * misc/sstk.c (sstk): Likewise.
9686         * misc/stty.c (stty): Likewise.
9687         * misc/syscall.c (syscall): Likewise.
9688         * misc/syslog.c (setlogmask): Likewise.
9689         * misc/truncate.c (__truncate): Likewise.
9690         * misc/truncate64.c (truncate64): Likewise.
9691         * misc/ualarm.c (ualarm): Likewise.
9692         * misc/usleep.c (usleep): Likewise.
9693         * misc/ustat.c (ustat): Likewise.
9694         * misc/writev.c (__writev): Likewise.
9695         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9696         * nptl/old_pthread_cond_broadcast.c
9697         (__pthread_cond_broadcast_2_0): Likewise.
9698         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9699         Likewise.
9700         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9701         Likewise.
9702         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9703         Likewise.
9704         * nptl/pt-raise.c (raise): Likewise.
9705         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9706         Likewise.
9707         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9708         * nptl/pthread_barrierattr_destroy.c
9709         (pthread_barrierattr_destroy): Likewise.
9710         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9711         Likewise.
9712         * nptl/pthread_barrierattr_setpshared.c
9713         (pthread_barrierattr_setpshared): Likewise.
9714         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9715         Likewise.
9716         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9717         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9718         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9719         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9720         Likewise.
9721         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9722         Likewise.
9723         * nptl/pthread_condattr_getpshared.c
9724         (pthread_condattr_getpshared): Likewise.
9725         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9726         Likewise.
9727         * nptl/pthread_condattr_setpshared.c
9728         (pthread_condattr_setpshared): Likewise.
9729         * nptl/pthread_detach.c (pthread_detach): Likewise.
9730         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9731         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9732         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9733         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9734         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9735         Likewise.
9736         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9737         Likewise.
9738         * nptl/pthread_mutex_getprioceiling.c
9739         (pthread_mutex_getprioceiling): Likewise.
9740         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9741         Likewise.
9742         * nptl/pthread_mutexattr_getprotocol.c
9743         (pthread_mutexattr_getprotocol): Likewise.
9744         * nptl/pthread_mutexattr_getpshared.c
9745         (pthread_mutexattr_getpshared): Likewise.
9746         * nptl/pthread_mutexattr_getrobust.c
9747         (pthread_mutexattr_getrobust): Likewise.
9748         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9749         Likewise.
9750         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9751         Likewise.
9752         * nptl/pthread_mutexattr_setprioceiling.c
9753         (pthread_mutexattr_setprioceiling): Likewise.
9754         * nptl/pthread_mutexattr_setprotocol.c
9755         (pthread_mutexattr_setprotocol): Likewise.
9756         * nptl/pthread_mutexattr_setpshared.c
9757         (pthread_mutexattr_setpshared): Likewise.
9758         * nptl/pthread_mutexattr_setrobust.c
9759         (pthread_mutexattr_setrobust): Likewise.
9760         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9761         Likewise.
9762         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9763         Likewise.
9764         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9765         Likewise.
9766         * nptl/pthread_rwlockattr_getkind_np.c
9767         (pthread_rwlockattr_getkind_np): Likewise.
9768         * nptl/pthread_rwlockattr_getpshared.c
9769         (pthread_rwlockattr_getpshared): Likewise.
9770         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9771         Likewise.
9772         * nptl/pthread_rwlockattr_setkind_np.c
9773         (pthread_rwlockattr_setkind_np): Likewise.
9774         * nptl/pthread_rwlockattr_setpshared.c
9775         (pthread_rwlockattr_setpshared): Likewise.
9776         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9777         Likewise.
9778         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9779         Likewise.
9780         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9781         Likewise.
9782         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9783         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9784         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9785         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9786         * nptl/sem_close.c (sem_close): Likewise.
9787         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9788         * nptl/sem_init.c (__old_sem_init): Likewise.
9789         * nptl/sigaction.c (__sigaction): Likewise.
9790         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9791         * posix/_exit.c (_exit): Likewise.
9792         * posix/alarm.c (alarm): Likewise.
9793         * posix/confstr.c (confstr): Likewise.
9794         * posix/fpathconf.c (__fpathconf): Likewise.
9795         * posix/getgroups.c (__getgroups): Likewise.
9796         * posix/getpgid.c (__getpgid): Likewise.
9797         * posix/group_member.c (__group_member): Likewise.
9798         * posix/pathconf.c (__pathconf): Likewise.
9799         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9800         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9801         * posix/setgid.c (__setgid): Likewise.
9802         * posix/setpgid.c (__setpgid): Likewise.
9803         * posix/setuid.c (__setuid): Likewise.
9804         * posix/sleep.c (__sleep): Likewise.
9805         * posix/sysconf.c (__sysconf): Likewise.
9806         * posix/times.c (__times): Likewise.
9807         * posix/uname.c (__uname): Likewise.
9808         * posix/waitid.c (__waitid): Likewise.
9809         * pwd/getpw.c (__getpw): Likewise.
9810         * resolv/base64.c (b64_pton): Likewise.
9811         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9812         * resolv/gethnamaddr.c (Dprintf): Likewise.
9813         (gethostbyname): Likewise.
9814         (gethostbyname2): Likewise.
9815         (gethostbyaddr): Likewise.
9816         (_sethtent): Likewise.
9817         (_gethtbyname): Likewise.
9818         (_gethtbyname2): Likewise.
9819         (_gethtbyaddr): Likewise.
9820         (map_v4v6_address): Likewise.
9821         (map_v4v6_hostent): Likewise.
9822         (addrsort): Likewise.
9823         (ht_sethostent): Likewise.
9824         (ht_gethostbyname): Likewise.
9825         (ht_gethostbyaddr): Likewise.
9826         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9827         (inet_net_ntop_ipv4): Likewise.
9828         * resolv/inet_neta.c (inet_neta): Likewise.
9829         * resolv/inet_ntop.c (inet_ntop): Likewise.
9830         (inet_ntop4): Likewise.
9831         (inet_ntop6): Likewise.
9832         * resolv/inet_pton.c (__inet_pton): Likewise.
9833         (inet_pton4): Likewise.
9834         (inet_pton6): Likewise.
9835         * resolv/res_debug.c (loc_aton): Likewise.
9836         (loc_ntoa): Likewise.
9837         * resource/getpriority.c (__getpriority): Likewise.
9838         * resource/getrusage.c (__getrusage): Likewise.
9839         * resource/nice.c (nice): Likewise.
9840         * resource/setpriority.c (__setpriority): Likewise.
9841         * resource/setrlimit64.c (setrlimit64): Likewise.
9842         * resource/vlimit.c (vlimit): Likewise.
9843         * resource/vtimes.c (vtimes): Likewise.
9844         * rt/aio_error.c (aio_error): Likewise.
9845         * rt/aio_return.c (aio_return): Likewise.
9846         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9847         * signal/kill.c (__kill): Likewise.
9848         * signal/killpg.c (killpg): Likewise.
9849         * signal/raise.c (raise): Likewise.
9850         * signal/sigaction.c (__sigaction): Likewise.
9851         * signal/sigaddset.c (sigaddset): Likewise.
9852         * signal/sigaltstack.c (sigaltstack): Likewise.
9853         * signal/sigandset.c (sigandset): Likewise.
9854         * signal/sigblock.c (__sigblock): Likewise.
9855         * signal/sigdelset.c (sigdelset): Likewise.
9856         * signal/sigempty.c (sigemptyset): Likewise.
9857         * signal/sigfillset.c (sigfillset): Likewise.
9858         * signal/sighold.c (sighold): Likewise.
9859         * signal/sigignore.c (sigignore): Likewise.
9860         * signal/sigintr.c (siginterrupt): Likewise.
9861         * signal/sigisempty.c (sigisemptyset): Likewise.
9862         * signal/sigismem.c (sigismember): Likewise.
9863         * signal/signal.c (signal): Likewise.
9864         * signal/sigorset.c (sigorset): Likewise.
9865         * signal/sigpause.c (__sigpause): Likewise.
9866         * signal/sigpending.c (sigpending): Likewise.
9867         * signal/sigprocmask.c (__sigprocmask): Likewise.
9868         * signal/sigrelse.c (sigrelse): Likewise.
9869         * signal/sigreturn.c (__sigreturn): Likewise.
9870         * signal/sigset.c (sigset): Likewise.
9871         * signal/sigsetmask.c (__sigsetmask): Likewise.
9872         * signal/sigstack.c (sigstack): Likewise.
9873         * signal/sigsuspend.c (__sigsuspend): Likewise.
9874         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9875         * signal/sysv_signal.c (__sysv_signal): Likewise.
9876         * socket/accept.c (accept): Likewise.
9877         * socket/accept4.c (__libc_accept4): Likewise.
9878         * socket/bind.c (__bind): Likewise.
9879         * socket/connect.c (__connect): Likewise.
9880         * socket/getpeername.c (getpeername): Likewise.
9881         * socket/getsockname.c (__getsockname): Likewise.
9882         * socket/getsockopt.c (getsockopt): Likewise.
9883         * socket/listen.c (__listen): Likewise.
9884         * socket/recv.c (__recv): Likewise.
9885         * socket/recvmsg.c (__recvmsg): Likewise.
9886         * socket/send.c (__send): Likewise.
9887         * socket/sendmsg.c (__sendmsg): Likewise.
9888         * socket/shutdown.c (shutdown): Likewise.
9889         * socket/sockatmark.c (sockatmark): Likewise.
9890         * socket/socket.c (__socket): Likewise.
9891         * stdio-common/ctermid.c (ctermid): Likewise.
9892         * stdio-common/cuserid.c (cuserid): Likewise.
9893         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9894         * stdio-common/remove.c (remove): Likewise.
9895         * stdio-common/rename.c (rename): Likewise.
9896         * stdio-common/renameat.c (renameat): Likewise.
9897         * stdio-common/tempname.c (__gen_tempname): Likewise.
9898         * stdio-common/xbug.c (InitBuffer): Likewise.
9899         (AppendToBuffer): Likewise.
9900         (ReadFile): Likewise.
9901         * stdlib/a64l.c (a64l): Likewise.
9902         * stdlib/drand48_r.c (drand48_r): Likewise.
9903         * stdlib/getcontext.c (getcontext): Likewise.
9904         * stdlib/getenv.c (getenv): Likewise.
9905         * stdlib/l64a.c (l64a): Likewise.
9906         * stdlib/llabs.c (llabs): Likewise.
9907         * stdlib/lldiv.c (lldiv): Likewise.
9908         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9909         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9910         * stdlib/putenv.c (putenv): Likewise.
9911         * stdlib/random.c (__srandom): Likewise.
9912         (__initstate): Likewise.
9913         (__setstate): Likewise.
9914         * stdlib/random_r.c (__srandom_r): Likewise.
9915         (__setstate_r): Likewise.
9916         (__random_r): Likewise.
9917         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9918         * stdlib/setcontext.c (setcontext): Likewise.
9919         * stdlib/setenv.c (setenv): Likewise.
9920         (unsetenv): Likewise.
9921         * stdlib/srand48.c (srand48): Likewise.
9922         * stdlib/srand48_r.c (__srand48_r): Likewise.
9923         * stdlib/swapcontext.c (swapcontext): Likewise.
9924         * stdlib/system.c (__libc_system): Likewise.
9925         * stdlib/tst-strtod.c (expand): Likewise.
9926         * stdlib/tst-strtol.c (expand): Likewise.
9927         * stdlib/tst-strtoll.c (expand): Likewise.
9928         * streams/fattach.c (fattach): Likewise.
9929         * streams/fdetach.c (fdetach): Likewise.
9930         * streams/getmsg.c (getmsg): Likewise.
9931         * streams/isastream.c (isastream): Likewise.
9932         * string/ffs.c (__ffs): Likewise.
9933         * string/ffsll.c (ffsll): Likewise.
9934         * string/memcmp.c (memcmp_common_alignment): Likewise.
9935         (memcmp_not_common_alignment): Likewise.
9936         (MEMCMP): Likewise.
9937         * string/memcpy.c (memcpy): Likewise.
9938         * string/memmove.c (MEMMOVE): Likewise.
9939         * string/memset.c (memset): Likewise.
9940         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9941         * string/strchrnul.c (STRCHRNUL): Likewise.
9942         * string/strerror.c (strerror): Likewise.
9943         * string/strndup.c (__strndup): Likewise.
9944         * string/strverscmp.c (__strverscmp): Likewise.
9945         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9946         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9947         (clnttcp_freeres): Likewise.
9948         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9949         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9950         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9951         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9952         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9953         (xdr_callhdr): Likewise.
9954         * sunrpc/rpcinfo.c (udpping): Likewise.
9955         (tcpping): Likewise.
9956         (pstatus): Likewise.
9957         (pmapdump): Likewise.
9958         (brdcst): Likewise.
9959         (deletereg): Likewise.
9960         (getprognum): Likewise.
9961         (getvers): Likewise.
9962         (get_inet_address): Likewise.
9963         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9964         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9965         (svcudp_stat): Likewise.
9966         (svcudp_recv): Likewise.
9967         (svcudp_reply): Likewise.
9968         (svcudp_getargs): Likewise.
9969         (svcudp_freeargs): Likewise.
9970         (svcudp_destroy): Likewise.
9971         * sunrpc/xdr.c (xdr_bytes): Likewise.
9972         (xdr_netobj): Likewise.
9973         (xdr_string): Likewise.
9974         (xdr_wrapstring): Likewise.
9975         * sunrpc/xdr_float.c (xdr_float): Likewise.
9976         (xdr_double): Likewise.
9977         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9978         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9979         * sysvipc/ftok.c (ftok): Likewise.
9980         * sysvipc/msgctl.c (msgctl): Likewise.
9981         * sysvipc/msgget.c (msgget): Likewise.
9982         * sysvipc/msgrcv.c (msgrcv): Likewise.
9983         * sysvipc/msgsnd.c (msgsnd): Likewise.
9984         * sysvipc/semget.c (semget): Likewise.
9985         * sysvipc/semop.c (semop): Likewise.
9986         * sysvipc/shmat.c (shmat): Likewise.
9987         * sysvipc/shmctl.c (shmctl): Likewise.
9988         * sysvipc/shmdt.c (shmdt): Likewise.
9989         * sysvipc/shmget.c (shmget): Likewise.
9990         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9991         * termios/speed.c (cfgetospeed): Likewise.
9992         (cfgetispeed): Likewise.
9993         (cfsetospeed): Likewise.
9994         (cfsetispeed): Likewise.
9995         * termios/tcflow.c (tcflow): Likewise.
9996         * termios/tcflush.c (tcflush): Likewise.
9997         * termios/tcgetattr.c (__tcgetattr): Likewise.
9998         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9999         * termios/tcgetsid.c (tcgetsid): Likewise.
10000         * termios/tcsendbrk.c (tcsendbreak): Likewise.
10001         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
10002         * time/adjtime.c (__adjtime): Likewise.
10003         * time/dysize.c (dysize): Likewise.
10004         * time/ftime.c (ftime): Likewise.
10005         * time/getitimer.c (__getitimer): Likewise.
10006         * time/gettimeofday.c (__gettimeofday): Likewise.
10007         * time/gmtime.c (__gmtime_r): Likewise.
10008         (gmtime): Likewise.
10009         * time/localtime.c (__localtime_r): Likewise.
10010         (localtime): Likewise.
10011         * time/offtime.c (__offtime): Likewise.
10012         * time/settimeofday.c (__settimeofday): Likewise.
10013         * time/stime.c (stime): Likewise.
10014         * time/strftime_l.c (tm_diff): Likewise.
10015         (iso_week_days): Likewise.
10016         * time/strptime.c (strptime): Likewise.
10017         * time/time.c (time): Likewise.
10018         * time/timespec_get.c (timespec_get): Likewise.
10019         * time/tzset.c (tzset_internal): Likewise.
10020         (compute_change): Likewise.
10021         (__tz_compute): Likewise.
10022         * wcsmbs/btowc.c (__btowc): Likewise.
10023         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
10024         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
10025         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
10026         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
10027         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
10028         * wcsmbs/wcscat.c (__wcscat): Likewise.
10029         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
10030         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
10031         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
10032         * wcsmbs/wcscspn.c (wcscspn): Likewise.
10033         * wcsmbs/wcsdup.c (wcsdup): Likewise.
10034         * wcsmbs/wcslen.c (__wcslen): Likewise.
10035         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
10036         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
10037         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
10038         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
10039         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
10040         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
10041         * wcsmbs/wcsspn.c (wcsspn): Likewise.
10042         * wcsmbs/wcsstr.c (wcsstr): Likewise.
10043         * wcsmbs/wcstok.c (wcstok): Likewise.
10044         * wcsmbs/wctob.c (wctob): Likewise.
10045         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
10046         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
10047         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
10048         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
10049         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
10050         * wcsmbs/wmemset.c (__wmemset): Likewise.
10051         * wctype/wcfuncs.c (__towlower): Likewise.
10052         (__towupper): Likewise.
10053
10054         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
10055         (lll_unlock_elision): Add adapt_count parameter.
10056
10057 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10058
10059         * sysdeps/nptl/configure.ac: Do not give errors based on the
10060         results of top-level configure tests.
10061         * sysdeps/nptl/configure: Regenerated.
10062
10063         * configure.ac (libc_cv_Bgroup): Remove configure test.
10064         * configure: Regenerated.
10065         * config.make.in (have-Bgroup): Remove variable.
10066
10067         * configure.ac (sizeof_long_double): Remove configure test.
10068         * configure: Regenerated.
10069         * config.make.in (sizeof-long-double): Remove variable.
10070
10071         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
10072         * configure: Regenerated.
10073         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
10074         variable.
10075         (exceptions): Likewise.
10076         * sysdeps/arm/configure: Regenerated.
10077         * config.make.in (exceptions): Remove variable.
10078         * Makeconfig (uses-callbacks): Use -fexceptions instead of
10079         $(exceptions).
10080         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
10081         (CFLAGS-vdprintf_chk.c): Likewise.
10082         (CFLAGS-printf_chk.c): Likewise.
10083         (CFLAGS-fprintf_chk.c): Likewise.
10084         (CFLAGS-vprintf_chk.c): Likewise.
10085         (CFLAGS-vfprintf_chk.c): Likewise.
10086         (CFLAGS-gets_chk.c): Likewise.
10087         (CFLAGS-fgets_chk.c): Likewise.
10088         (CFLAGS-fgets_u_chk.c): Likewise.
10089         (CFLAGS-fread_chk.c): Likewise.
10090         (CFLAGS-fread_u_chk.c): Likewise.
10091         (CFLAGS-wprintf_chk.c): Likewise.
10092         (CFLAGS-fwprintf_chk.c): Likewise.
10093         (CFLAGS-vwprintf_chk.c): Likewise.
10094         (CFLAGS-vfwprintf_chk.c): Likewise.
10095         (CFLAGS-fgetws_chk.c): Likewise.
10096         (CFLAGS-fgetws_u_chk.c): Likewise.
10097         * libio/Makefile (CFLAGS-fileops.c): Likewise.
10098         (CFLAGS-fputc.c): Likewise.
10099         (CFLAGS-fputwc.c): Likewise.
10100         (CFLAGS-freopen64.c): Likewise.
10101         (CFLAGS-freopen.c): Likewise.
10102         (CFLAGS-fseek.c): Likewise.
10103         (CFLAGS-fseeko64.c): Likewise.
10104         (CFLAGS-fseeko.c): Likewise.
10105         (CFLAGS-ftello64.c): Likewise.
10106         (CFLAGS-ftello.c): Likewise.
10107         (CFLAGS-fwide.c): Likewise.
10108         (CFLAGS-genops.c): Likewise.
10109         (CFLAGS-getc.c): Likewise.
10110         (CFLAGS-getchar.c): Likewise.
10111         (CFLAGS-getwc.c): Likewise.
10112         (CFLAGS-getwchar.c): Likewise.
10113         (CFLAGS-iofclose.c): Likewise.
10114         (CFLAGS-iofflush.c): Likewise.
10115         (CFLAGS-iofgetpos64.c): Likewise.
10116         (CFLAGS-iofgetpos.c): Likewise.
10117         (CFLAGS-iofgets.c): Likewise.
10118         (CFLAGS-iofgetws.c): Likewise.
10119         (CFLAGS-iofputs.c): Likewise.
10120         (CFLAGS-iofputws.c): Likewise.
10121         (CFLAGS-iofread.c): Likewise.
10122         (CFLAGS-iofsetpos64.c): Likewise.
10123         (CFLAGS-iofsetpos.c): Likewise.
10124         (CFLAGS-ioftell.c): Likewise.
10125         (CFLAGS-iofwrite.c): Likewise.
10126         (CFLAGS-iogetdelim.c): Likewise.
10127         (CFLAGS-iogetline.c): Likewise.
10128         (CFLAGS-iogets.c): Likewise.
10129         (CFLAGS-iogetwline.c): Likewise.
10130         (CFLAGS-ioputs.c): Likewise.
10131         (CFLAGS-ioseekoff.c): Likewise.
10132         (CFLAGS-ioseekpos.c): Likewise.
10133         (CFLAGS-iosetbuffer.c): Likewise.
10134         (CFLAGS-iosetvbuf.c): Likewise.
10135         (CFLAGS-ioungetc.c): Likewise.
10136         (CFLAGS-ioungetwc.c): Likewise.
10137         (CFLAGS-oldfileops.c): Likewise.
10138         (CFLAGS-oldiofclose.c): Likewise.
10139         (CFLAGS-oldiofgetpos64.c): Likewise.
10140         (CFLAGS-oldiofgetpos.c): Likewise.
10141         (CFLAGS-oldiofsetpos64.c): Likewise.
10142         (CFLAGS-oldiofsetpos.c): Likewise.
10143         (CFLAGS-peekc.c): Likewise.
10144         (CFLAGS-putc.c): Likewise.
10145         (CFLAGS-putchar.c): Likewise.
10146         (CFLAGS-putwc.c): Likewise.
10147         (CFLAGS-putwchar.c): Likewise.
10148         (CFLAGS-rewind.c): Likewise.
10149         (CFLAGS-wfileops.c): Likewise.
10150         (CFLAGS-wgenops.c): Likewise.
10151         (CFLAGS-oldiofopen.c): Likewise.
10152         (CFLAGS-iofopen.c): Likewise.
10153         (CFLAGS-iofopen64.c): Likewise.
10154         (CFLAGS-oldtmpfile.c): Likewise.
10155         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
10156         (CFLAGS-fprintf.c): Likewise.
10157         (CFLAGS-printf.c): Likewise.
10158         (CFLAGS-vfwprintf.c): Likewise.
10159         (CFLAGS-vfscanf.c): Likewise.
10160         (CFLAGS-vfwscanf.c): Likewise.
10161         (CFLAGS-fscanf.c): Likewise.
10162         (CFLAGS-scanf.c): Likewise.
10163         (CFLAGS-isoc99_vfscanf.c): Likewise.
10164         (CFLAGS-isoc99_vscanf.c): Likewise.
10165         (CFLAGS-isoc99_fscanf.c): Likewise.
10166         (CFLAGS-isoc99_scanf.c): Likewise.
10167         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
10168         (CFLAGS-isoc99_fwscanf.c): Likewise.
10169         (CFLAGS-isoc99_vwscanf.c): Likewise.
10170         (CFLAGS-isoc99_vfwscanf.c): Likewise.
10171
10172         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
10173         after mkstemp64.
10174         * login/tst-utmp.c (do_prepare): Likewise.
10175         * rt/tst-aio.c (do_prepare): Likewise.
10176         * rt/tst-aio64.c (do_prepare): Likewise.
10177
10178 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10179
10180         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
10181         (__lll_lock_elision): Remove adapt_count decrement...
10182         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
10183         (__lll_trylock_elision): Likewise.
10184         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
10185         (__lll_unlock_elision): ... to here. And utilize
10186         new adapt_count parameter.
10187         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10188         (__lll_unlock_elision): Update to include adapt_count
10189         parameter.
10190         (lll_unlock_elision): Pass pointer to adapt_count
10191         variable.
10192
10193 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10194
10195         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
10196         Add elision adapt_count parameter to list of arguments.
10197         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10198         (lll_unlock_elision): Update with new parameter list
10199         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
10200         (lll_unlock_elision): Likewise.
10201         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
10202         (lll_unlock_elision): Likewise.
10203
10204 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10205
10206         [BZ #19122]
10207         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
10208         attribute_hidden.
10209
10210         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
10211         attribute_hidden.
10212         [IS_IN (rtld)] (__strdup): Likewise.
10213         [IS_IN (rtld)] (__strerror_r): Likewise.
10214         [IS_IN (rtld)] (__strsep_g): Likewise.
10215         [IS_IN (rtld)] (memchr): Likewise.
10216         [IS_IN (rtld)] (memcmp): Likewise.
10217         [IS_IN (rtld)] (memcpy): Likewise.
10218         [IS_IN (rtld)] (memmove): Likewise.
10219         [IS_IN (rtld)] (memset): Likewise.
10220         [IS_IN (rtld)] (rawmemchr): Likewise.
10221         [IS_IN (rtld)] (stpcpy): Likewise.
10222         [IS_IN (rtld)] (strchr): Likewise.
10223         [IS_IN (rtld)] (strcmp): Likewise.
10224         [IS_IN (rtld)] (strlen): Likewise.
10225         [IS_IN (rtld)] (strnlen): Likewise.
10226         [IS_IN (rtld)] (strsep): Likewise.
10227
10228         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
10229         attribute_hidden.
10230         [IS_IN (rtld)] (__strtoul_internal): Likewise.
10231
10232         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
10233         attribute_hidden.
10234         [IS_IN (rtld)] (__libc_sigaction): Likewise.
10235
10236         * include/setjmp.h (__longjmp): Add attribute_hidden.
10237         [IS_IN (rtld)] (__sigsetjmp): Likewise.
10238
10239         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
10240         Add attribute_hidden.
10241
10242         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
10243         [IS_IN (rtld)] (__open): Likewise.
10244         [IS_IN (rtld)] (__fcntl): Likewise.
10245
10246         * include/dirent.h (__opendirat): Add attribute_hidden.
10247         (__getdents): Likewise.
10248         (__getdents64): Likewise.
10249         (__alloc_dir): Likewise.
10250         [IS_IN (rtld)] (__closedir): Likewise.
10251         [IS_IN (rtld)] (__fdopendir): Likewise.
10252         [IS_IN (rtld)] (__readdir): Likewise.
10253         [IS_IN (rtld)] (__readdir64): Likewise.
10254         [IS_IN (rtld)] (__rewinddir): Likewise.
10255
10256         * include/dlfcn.h (_dl_catch_error): Moved to ...
10257         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
10258         attribute_hidden.
10259
10260         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
10261         (_itoa_word): Likewise.
10262
10263         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
10264         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
10265         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
10266         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
10267         (_dl_higher_prime_number): Likewise.
10268         (_dl_debug_printf_c): Likewise.
10269         (_dl_signal_cerror): Likewise.
10270         (_dl_receive_error): Likewise.
10271         (_dl_reloc_bad_type): Likewise.
10272         (_dl_resolve_conflicts): Likewise.
10273         (_dl_check_all_versions): Likewise.
10274         (_dl_check_map_versions): Likewise.
10275         (_dl_sort_fini): Likewise.
10276         (_dl_debug_initialize): Likewise.
10277         (_dl_init_paths): Likewise.
10278         (_dl_show_auxv): Likewise.
10279         (_dl_next_ld_env_entry): Likewise.
10280         (_dl_important_hwcaps): Likewise.
10281         (_dl_load_cache_lookup): Likewise.
10282         (_dl_update_slotinfo): Likewise.
10283         (_dl_show_scope): Likewise.
10284
10285         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
10286         attribute_hidden.
10287         (_wordcopy_fwd_dest_aligned): Likewise.
10288         (_wordcopy_bwd_aligned): Likewise.
10289         (_wordcopy_bwd_dest_aligned): Likewise.
10290
10291         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
10292         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10293         Likewise.
10294         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10295         Likewise.
10296         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
10297
10298 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10299
10300         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
10301         GCC 5 requirement.
10302
10303 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10304
10305         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
10306         test.
10307         * sysdeps/i386/configure: Regenerated.
10308         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
10309         code unconditional.
10310
10311         * configure.ac (libc_cv_asm_previous_directive): Remove configure
10312         test.
10313         (libc_cv_asm_popsection_directive): Likewise.
10314         * configure: Regenerated.
10315         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
10316         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
10317         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
10318         (__make_section_unallocated): Make definition unconditional.
10319         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
10320         Remove conditional definition.
10321         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
10322         (__make_section_unallocated): Likewise.
10323
10324         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
10325         * configure: Regenerated.
10326         * config.make.in (static-libgcc): Remove variable.
10327         * Makerules (build-shlib-helper): Use -static-libgcc instead of
10328         $(static-libgcc).
10329         (build-module-helper): Likewise.
10330
10331         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
10332         * configure: Regenerated.
10333
10334 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10335
10336         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
10337         (struct char_buffer): New type.
10338         (char_buffer_start, char_buffer_size, char_buffer_error)
10339         (char_buffer_rewind, char_buffer_add): New functions.
10340         (ADDW): Remove macro, replaced by the char_buffer_add function.
10341         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
10342         of extend_alloca.  Make control flow more explicit.
10343
10344 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10345
10346         [BZ #19137]
10347         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
10348         Add -fomit-frame-pointer.
10349         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
10350
10351 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10352
10353         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
10354         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
10355         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
10356         only if !__GNUC_PREREQ (5,0).
10357         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
10358         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10359         (INTERNAL_SYSCALL_NCS): Likewise.
10360         (LOADREGS_0): New macro for GCC 5.
10361         (ASMARGS_0): Likewise.
10362         (LOADREGS_1): Likewise.
10363         (ASMARGS_1): Likewise.
10364         (LOADREGS_2): Likewise.
10365         (ASMARGS_2): Likewise.
10366         (LOADREGS_3): Likewise.
10367         (ASMARGS_3): Likewise.
10368         (LOADREGS_4): Likewise.
10369         (ASMARGS_4): Likewise.
10370         (LOADREGS_5): Likewise.
10371         (ASMARGS_5): Likewise.
10372         (LOADREGS_6): Likewise.
10373         (ASMARGS_6): Likewise.
10374
10375 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10376
10377         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
10378         -fomit-frame-pointer.
10379         (CFLAGS-mmap64.c): Likewise.
10380         (CFLAGS-semtimedop.c): Likewise.
10381         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
10382         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
10383         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10384         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
10385
10386 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10387
10388         [BZ #18928]
10389         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
10390         _dl_pointer_guard member.
10391         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
10392         initializer.
10393         (security_init): Always set up pointer guard.
10394         (process_envvars): Do not process LD_POINTER_GUARD.
10395
10396 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
10397
10398         [BZ #19134]
10399         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
10400         (.LC2): Likewise.
10401         (.LC3): Likewise.
10402         (__lround): Do not add 0.5 to integer or out-of-range arguments.
10403
10404 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10405
10406         [BZ #19129]
10407         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
10408         r0 and r1.
10409
10410 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
10411
10412         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
10413
10414 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
10415
10416         * include/stap-probe.h: Fix macro definition formatting.
10417
10418 2015-10-14  Florian Weimer  <fweimer@redhat.com>
10419
10420         [BZ #19074]
10421         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
10422         load and store num_ifs.
10423
10424 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10425
10426         [BZ #18822]
10427         * sysdeps/unix/sysv/linux/sched_getaffinity.c
10428         (__sched_getaffinity_new): Add libc_hidden_proto and
10429         libc_hidden_def.
10430
10431 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10432
10433         [BZ #19007]
10434         * scripts/localplt.awk: Also allow GOT references.
10435         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
10436         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
10437         with "+ REL R_386_GLOB_DAT".
10438         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
10439         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
10440
10441 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10442
10443         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
10444         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10445         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
10446         Likewise.
10447         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
10448         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
10449         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
10450         INTERNAL_SYSCALLINTERNAL_SYSCALL and
10451         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10452         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
10453         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10454         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
10455         Likewise.
10456         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10457
10458 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10459
10460         [BZ #19125]
10461         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
10462         <math_private.h> and <stdint.h>.
10463         (__llround): Avoid conversions to and from long long int, and
10464         subtractions, where those might raise spurious exceptions.
10465         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
10466         <math_private.h> and <stdint.h>.
10467         (__llroundf): Avoid conversions to and from long long int, and
10468         subtractions, where those might raise spurious exceptions.
10469
10470 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10471
10472         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
10473         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10474         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
10475         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
10476         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
10477         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
10478         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
10479         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
10480         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
10481         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10482         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10483         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10484         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
10485         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10486         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10487         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
10488         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
10489         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
10490         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
10491         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
10492         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
10493         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
10494         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
10495         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
10496         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
10497         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
10498         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
10499         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
10500         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10501         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
10502         (__xstat64_conv): Likewise.
10503         (__xstat32_conv): Likewise.
10504
10505 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10506
10507         * sysdeps/unix/sysv/linux/sysdep.h: New file.
10508         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
10509         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
10510         <sysdeps/unix/sysv/linux/sysdep.h>.
10511         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
10512         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
10513         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
10514         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
10515         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10516         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
10517         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
10518         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10519         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10522         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10523         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10524         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10525         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10526         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10527         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
10528         (sysdep-dl-routines): Add sysdep.
10529         [$(subdir) == nptl] (libpthread-routines): Likewise.
10530         [$(subdir) == rt] (librt-routines): Likewise.
10531         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
10532         PIC when branching to SYSCALL_ERROR_LABEL.
10533         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
10534         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
10535         <sysdeps/unix/sysv/linux/sysdep.h>.
10536         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
10537         (SYSCALL_ERROR_ERRNO): Removed.
10538         (SYSCALL_ERROR_HANDLER): Changed to empty.
10539         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
10540         (__syscall_error): New prototype.
10541         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
10542         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
10543
10544 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10545
10546         [BZ #19124]
10547         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
10548         (_dl_runtime_resolve_avx512): Make it a hidden alias of
10549         _dl_runtime_resolve_avx.
10550         (_dl_runtime_profile_avx512): Make it a hidden alias of
10551         _dl_runtime_profile_avx.
10552
10553 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10554
10555         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
10556         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
10557         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
10558         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
10559
10560         [BZ #16422]
10561         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
10562         New configure test.
10563         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
10564         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
10565         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
10566         <math_private.h> and <stdint.h>.
10567         (__llrint): Avoid conversions to long long int where those might
10568         raise spurious exceptions.
10569         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
10570         <math_private.h> and <stdint.h>.
10571         (__llrintf): Avoid conversions to long long int where those might
10572         raise spurious exceptions.
10573
10574 2015-10-12  Andreas Schwab  <schwab@suse.de>
10575
10576         [BZ #18969]
10577         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
10578         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
10579         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
10580         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
10581         $(gen-locales).
10582         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
10583         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
10584         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
10585         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
10586         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
10587         $(gen-locales).
10588         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
10589         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
10590         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
10591         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
10592         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
10593         ($(objpfx)tst-ftell-active-handler.out)
10594         ($(objpfx)tst-ftell-append.out)
10595         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
10596         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
10597         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
10598         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
10599         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
10600         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
10601         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
10602         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
10603         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
10604         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
10605         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
10606         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
10607         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
10608         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
10609         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
10610         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
10611         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
10612         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
10613         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
10614         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
10615         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
10616         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
10617         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
10618         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
10619         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
10620         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
10621         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10622         $(gen-locales).
10623         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10624         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10625         $(gen-locales).
10626         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10627         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10628         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10629         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10630         $(gen-locales).
10631         * libio/tst_wprintf2.c (main): Use explicit locale.
10632         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10633
10634 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10635
10636         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10637         __msg_sig_post.
10638         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10639
10640 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10641
10642         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10643         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10644
10645         * sysdeps/arm/libm-test-ulps: Regenerated.
10646
10647         [BZ #15470]
10648         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10649
10650         [BZ #16399]
10651         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10652         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10653         and <fix-fp-int-convert-overflow.h>.
10654         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10655         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10656         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10657         and <fix-fp-int-convert-overflow.h>.
10658         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10659         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10660         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10661         <fix-fp-int-convert-overflow.h>.
10662         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10663         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10664         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10665         <fix-fp-int-convert-overflow.h>.
10666         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10667         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10668         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10669         and <fix-fp-int-convert-overflow.h>.
10670         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10671         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10672         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10673         <limits.h> and <fix-fp-int-convert-overflow.h>.
10674         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10675         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10676         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10677         and <fix-fp-int-convert-overflow.h>.
10678         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10679         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10680         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10681         and <fix-fp-int-convert-overflow.h>.
10682         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10683         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10684         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10685
10686 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10687
10688         [BZ #18589]
10689         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10690         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10691         $(gen-locales).
10692
10693 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10694             Phil Blundell <pb@pbcl.net>
10695
10696         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10697         * nptl/tst-cancel26.c: New file.
10698         * nptl/tst-cancel27.c: Likewise.
10699
10700 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10701
10702         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10703         __ILP32__ isn't defined.
10704         (lrint): Likewise.
10705         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10706         (lrintf): Likewise.
10707         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10708         (lrintl): Likewise.
10709         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10710         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10711         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10712
10713 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10714
10715         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10716         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10717
10718         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10719         file.
10720         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10721         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10722
10723 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10724
10725         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10726         configure test.
10727         * sysdeps/i386/configure: Regenerated.
10728         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10729         configure test.
10730         * sysdeps/x86_64/configure: Regenerated.
10731         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10732         Make code unconditional.
10733
10734         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10735         test.
10736         * sysdeps/i386/configure: Regenerated.
10737         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10738         test.
10739         * sysdeps/x86_64/configure: Regenerated.
10740         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10741         Make code unconditional.
10742         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10743         Likewise.
10744         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10745         Likewise.
10746         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10747         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10748         code unconditional.
10749         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10750         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10751         code unconditional.
10752         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10753         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10754         code unconditional.
10755         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10756         code unconditional.
10757         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10758         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10759         code unconditional.
10760         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10761         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10762         code unconditional.
10763         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10764         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10765         code unconditional.
10766         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10767         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10768         code unconditional.
10769         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10770         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10771
10772         [BZ #19095]
10773         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10774         mantissa to long int before shifting left.
10775
10776 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10777
10778         [BZ #19094]
10779         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10780         <limits.h>.
10781         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10782         when result overflows but exception would not result from cast.
10783         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10784         <limits.h>.
10785         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10786         when result overflows but exception would not result from cast.
10787         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10788         <limits.h>.
10789         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10790         when result overflows but exception would not result from cast.
10791         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10792         <limits.h>.
10793         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10794         when result overflows but exception would not result from cast.
10795         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10796         <limits.h>.
10797         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10798         when result overflows but exception would not result from cast.
10799         * math/libm-test.inc (lrint_test_data): Add more tests.
10800         (llrint_test_data): Likewise.
10801
10802 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10803
10804         [BZ #18872]
10805         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10806         Move out from under [$(run-built-tests) = yes] conditional.
10807         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10808         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10809
10810 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10811
10812         [BZ #18589]
10813         * string/Makefile (tests): Add bug-strcoll2.
10814         (LOCALES): Add cs_CZ.UTF-8.
10815         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10816
10817         [BZ #18589]
10818         * string/bug-strcoll2.c: New file.
10819         * locale/categories.def: Revert commit
10820         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10821         * locale/langinfo.h: Likewise.
10822         * locale/localeinfo.h: Likewise.
10823         * locale/C-collate.c: Likewise.
10824         * locale/programs/ld-collate.c (collate_output): Likewise.
10825         * string/strcoll_l.c (STRDIFF): Likewise.
10826         (STRCOLL): Likewise.
10827         * wcsmbs/wcscoll_l.c: Likewise.
10828
10829 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10830
10831         * math/libm-test.inc (lround_test_data): Do not expect the absence
10832         of "inexact" for some tests with non-integer arguments.
10833         (llround_test_data): Likewise.
10834
10835         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10836         test.
10837         (libc_cv_cc_sse2avx): Likewise.
10838         * sysdeps/i386/configure: Regenerated.
10839         * sysdeps/i386/i686/multiarch/Makefile
10840         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10841         [$(subdir) = math].
10842         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10843         code unconditional.
10844         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10845         Likewise.
10846         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10847         Likewise.
10848         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10849         Likewise.
10850         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10851         test.
10852         (libc_cv_cc_sse2avx): Likewise.
10853         * sysdeps/x86_64/configure: Regenerated.
10854         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10855         unconditional.
10856         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10857         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10858         unconditional.
10859         (_dl_runtime_profile)
10860         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10861         conditional code.
10862         * sysdeps/x86_64/fpu/multiarch/Makefile
10863         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10864         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10865         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10866         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10867         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10868         * sysdeps/x86_64/fpu/multiarch/e_log.c
10869         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10870         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10871         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10872         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10873         Likewise.
10874         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10875         Likewise.
10876         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10877         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10878         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10879         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10880         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10881         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10882         (HAVE_SSE2AVX_SUPPORT): Likewise.
10883
10884 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10885
10886         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10887         instead of #pragma optimize.
10888
10889 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10890
10891         [BZ #17195]
10892         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10893         as is similarly done in systrim and _int_free already.
10894
10895 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10896
10897         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10898
10899 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10900
10901         [BZ #19088]
10902         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10903         <limits.h>.
10904         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10905         overflows but exception would not result from cast.
10906         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10907         and <limits.h>.
10908         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10909         overflows but exception would not result from cast.
10910         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10911         <limits.h>.
10912         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10913         overflows but exception would not result from cast.
10914         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10915         <limits.h>.
10916         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10917         overflows but exception would not result from cast.
10918         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10919         <limits.h>.
10920         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10921         overflows but exception would not result from cast.
10922         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10923         <limits.h>.
10924         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10925         overflows but exception would not result from cast.
10926         * math/libm-test.inc (lround_test_data): Add more tests.
10927         (llround_test_data): Likewise.
10928
10929 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10930
10931         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10932         (CFLAGS-ialloc.c): Ditto.
10933         (CFLAGS-scheck.c): Ditto.
10934
10935 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10936
10937         [BZ #19086]
10938         * manual/filesys.texi (Storage Allocation): Fix argument order for
10939         posix_fallocate64.
10940
10941 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10942
10943         [BZ #19085]
10944         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10945         exponent below 48 inside case for non-overflowing exponent.
10946         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10947
10948 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10949
10950         * iconvdata/cp737.h (from_idx): Add const.
10951         * iconvdata/cp775.h (from_idx): Likewise.
10952
10953 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10954
10955         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10956         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10957         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10958
10959         [BZ #19079]
10960         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10961         file, conditioned on [!_LP64].
10962         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10963         [!_LP64] (__lround): Do not define as function or alias.
10964         [!_LP64] (lround): Likewise.
10965         [!_LP64] (__lroundl): Likewise.
10966         [!_LP64] (lroundl): Likewise.
10967         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10968         macro.
10969         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10970         Likewise.
10971
10972 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10973
10974         * math/libm-test.inc (lrint_test_data): Add more tests.
10975         (llrint_test_data): Likewise.
10976         (lround_test_data): Likewise.
10977         (llround_test_data): Likewise.
10978
10979         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10980         (llrint_test_data): Add tests used for lrint.
10981
10982         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10983         test.
10984         * sysdeps/i386/configure: Regenerated.
10985         * sysdeps/i386/i686/multiarch/Makefile
10986         [$(config-cflags-sse4) = yes]: Make code unconditional.
10987         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10988         Likewise.
10989         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10990         Likewise.
10991         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10992         test.
10993         * sysdeps/x86_64/configure: Regenerated.
10994         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10995         Make code unconditional.
10996         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10997         Likewise.
10998         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10999         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
11000
11001         * scripts/rpm2dynsym.sh: Remove file.
11002
11003 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11004
11005         * configure.ac (libc_cv_cxx_thread_local): Define.
11006         * configure: Regenerate.
11007         * config.make.in (have-cxx-thread_local): Define.
11008         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
11009         (LDLIBS-tst-thread_local1): Define.
11010         (tests): Add tst-thread_local1.
11011         [have-cxx-thread_local != yes] (tests-unsupported): Add
11012         tst-thread_local1.
11013         * nptl/tst-thread_local1.cc: New file.
11014
11015 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
11016
11017         [BZ #19078]
11018         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
11019         (u_thres): Likewise.
11020         (__expl): Determine whether to call __kernel_standard_l based on
11021         value of result, not argument.
11022
11023         * math/libm-test.inc (scalb_test_data): Add more expectations for
11024         the "inexact" exception.
11025
11026         [BZ #19077]
11027         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
11028         0.0L for argument 1.0L.
11029
11030         [BZ #19076]
11031         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
11032         constant 0.0L when computing infinite result.
11033
11034 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11035
11036         [BZ #10432]
11037         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
11038         malloc_usable_size.
11039
11040 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11041
11042         [BZ #19018]
11043         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
11044         Mangle function pointer before storing it.
11045         (__call_tls_dtors): Demangle function pointer before calling it.
11046
11047 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11048
11049         [BZ #19012]
11050         * iconv/gconv_db.c (gen_steps): Check for additional errors.
11051         Clean up on failure.
11052
11053 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
11054
11055         [BZ #19071]
11056         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
11057         long int variable to store possibly incremented high part of
11058         mantissa.
11059         * math/libm-test.inc (lround_test_data): Add tests used for
11060         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
11061         for tests requiring 64-bit long.  Do not condition tests on
11062         [TEST_FLOAT] unnecessarily.
11063         (llround_test_data): Add tests used for lround.  Add another
11064         expectation for the "inexact" exception.  Do not condition tests
11065         on [TEST_FLOAT] unnecessarily.
11066
11067         [BZ #887]
11068         [BZ #19049]
11069         [BZ #19050]
11070         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
11071         * sysdeps/ieee754/dbl-64/e_log10.c: Include
11072         <fix-int-fp-convert-zero.h>.
11073         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11074         * sysdeps/ieee754/dbl-64/e_log2.c: Include
11075         <fix-int-fp-convert-zero.h>.
11076         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11077         * sysdeps/ieee754/dbl-64/s_erf.c: Include
11078         <fix-int-fp-convert-zero.h>.
11079         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11080         * sysdeps/ieee754/dbl-64/s_logb.c: Include
11081         <fix-int-fp-convert-zero.h>.
11082         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11083         * sysdeps/ieee754/flt-32/e_log10f.c: Include
11084         <fix-int-fp-convert-zero.h>.
11085         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11086         * sysdeps/ieee754/flt-32/e_log2f.c: Include
11087         <fix-int-fp-convert-zero.h>.
11088         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11089         * sysdeps/ieee754/flt-32/s_erff.c: Include
11090         <fix-int-fp-convert-zero.h>.
11091         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11092         * sysdeps/ieee754/flt-32/s_logbf.c: Include
11093         <fix-int-fp-convert-zero.h>.
11094         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11095         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
11096         <fix-int-fp-convert-zero.h>.
11097         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11098         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
11099         <fix-int-fp-convert-zero.h>.
11100         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11101         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
11102         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
11103         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
11104         file.
11105         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
11106
11107 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
11108
11109         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11110
11111 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
11112
11113         [BZ #19059]
11114         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
11115         overflowing computation.
11116         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11117         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11118         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
11119         Likewise.
11120         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
11121         Likewise.
11122         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11123         Likewise.
11124         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11125         Likewise.
11126         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11127         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11128         Likewise.
11129         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11130         Likewise.
11131         * math/libm-test.inc (nexttoward_test_data): Add more tests.
11132
11133         * nss/rewrite_field.c (__nss_rewrite_field): Use
11134         internal_function.
11135         * nss/valid_field.c (__nss_valid_field): Likewise.
11136         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
11137
11138 2015-10-02  Florian Weimer  <fweimer@redhat.com>
11139
11140         [BZ #18724]
11141         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
11142         (__nss_invalid_field_characters, __nss_valid_field)
11143         (__nss_valid_list_field, __nss_rewrite_field): Declare.
11144         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
11145         tst-field.c: New file.
11146         * nss/Makefile (routines): Add valid_field, rewrite_field.
11147         (tests-static): Define unconditionally.
11148         (tests): Include tests-static.
11149         [build-static-nss] (tests-static): Use append.
11150         [build-static-nss] (tests): Remove modification.
11151         * nss/getent.c (print_group): Call putgrent.  Report error.
11152         (print_gshadow): Call putsgent.  Report error.
11153         (print_passwd): Call putpwent.  Report error.
11154         (print_shadow): Call putspent.  Report error.
11155         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
11156         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
11157         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
11158         name, password, directory, shell fields for valid syntax.  Rewrite
11159         GECOS field to match syntax.
11160         * pwd/Makefile (tests): Add tst-putpwent.
11161         * pwd/tst-putpwent.c: New file.
11162         * grp/putgrent.c (putgrent): Convert to ISO function definition.
11163         Check grName, grpasswd, gr_mem fields for valid syntax.
11164         Change loop variable i to size_t.
11165         * grp/Makefile (tests): Add tst-putgrent.
11166         * grp/tst-putgrent.c: New file.
11167         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
11168         valid syntax.
11169         * shadow/Makefile (tests): Add tst-putspent.
11170         * shadow/tst-putspent.c: New file.
11171         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
11172         sg_mem fields for valid syntax.
11173         * gshadow/Makefile (tests): Add tst-putsgent.
11174         * gshadow/tst-putsgent.c: New file.
11175
11176 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11177
11178         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
11179         assembly instructions.
11180
11181 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11182
11183         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
11184         prefix from operands.
11185
11186 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
11187
11188         [BZ #16347]
11189         [BZ #19046]
11190         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
11191         <libc-internal.h>.
11192         (MAXLGM): Do not use diagnostic control macros.
11193         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
11194         threshold for ldbl-128ibm.
11195         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
11196         instead of multiplying by log then subtracting.
11197         * math/auto-libm-test-in: Add more tests of lgamma.
11198         * math/auto-libm-test-out: Regenerated.
11199
11200         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
11201         (TYPE_HEX_DIG): Likewise.
11202         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
11203         precisions when printing floating-point numbers.
11204         (check_float_internal): Likewise.
11205
11206 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11207
11208         [BZ #16620]
11209         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
11210         of log (10) rounded downward to 48 bits.
11211         (log10_low): Use corresponding low part of log (10).
11212
11213         [BZ #19032]
11214         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
11215         compute result as (x - x) / (x - x) not as 0 / 0.
11216         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
11217         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
11218
11219         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11220         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
11221         and expm1.
11222         * math/auto-libm-test-out: Regenerated.
11223         * math/libm-test.inc (acos_test_data): Add more tests.
11224         (asin_test_data): Likewise.
11225         (asinh_test_data): Likewise.
11226         (atan_test_data): Likewise.
11227         (atanh_test_data): Likewise.
11228         (atan2_test_data): Likewise.
11229         (cbrt_test_data): Likewise.
11230         (ceil_test_data): Likewise.
11231         (copysign_test_data): Likewise.
11232         (cos_test_data): Likewise.
11233         (cosh_test_data): Likewise.
11234         (erf_test_data): Likewise.
11235         (erfc_test_data): Likewise.
11236         (exp_test_data): Likewise.
11237         (exp10_test_data): Likewise.
11238         (exp2_test_data): Likewise.
11239         (expm1_test_data): Likewise.
11240         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11241
11242 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
11243
11244         [BZ #19006]
11245         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
11246         to ...
11247         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
11248         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
11249         to ...
11250         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
11251         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
11252         to ...
11253         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
11254         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
11255         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
11256         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
11257         to ...
11258         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
11259         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
11260         Moved to ...
11261         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
11262         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
11263         Moved to ...
11264         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
11265         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
11266         to ...
11267         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
11268         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
11269         Moved to ...
11270         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
11271         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
11272         to ...
11273         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
11274         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
11275         Removed.
11276         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
11277         Likewise.
11278         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
11279         Likewise.
11280         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
11281         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
11282         Likewise.
11283         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
11284         Likewise.
11285         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
11286         Likewise.
11287         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
11288         Likewise.
11289         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
11290         Likewise.
11291         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
11292         Likewise.
11293         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
11294         Likewise.
11295         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
11296         Likewise.
11297         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
11298         Likewise.
11299         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
11300         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
11301         Likewise.
11302         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
11303         Likewise.
11304         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
11305         Likewise.
11306         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
11307         Likewise.
11308         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
11309         Likewise.
11310         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
11311         Replace ../i486/pthread_cond_timedwait.S with
11312         ../pthread_cond_timedwait.S.
11313
11314 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11315
11316         * math/libm-test.inc (acos_test_data): Refine expectations for
11317         errno and "inexact" exceptions.
11318         (acosh_test_data): Likewise.
11319         (asin_test_data): Likewise.
11320         (asinh_test_data): Likewise.
11321         (atan_test_data): Likewise.
11322         (atanh_test_data): Likewise.
11323         (atan2_test_data): Likewise.
11324         (cbrt_test_data): Likewise.
11325         (ceil_test_data): Likewise.
11326         (copysign_test_data): Likewise.
11327         (cosh_test_data): Likewise.
11328         (erf_test_data): Likewise.
11329         (erfc_test_data): Likewise.
11330         (exp_test_data): Likewise.
11331         (exp10_test_data): Likewise.
11332         (exp2_test_data): Likewise.
11333         (expm1_test_data): Likewise.
11334         (fabs_test_data): Likewise.
11335         (floor_test_data): Likewise.
11336         (fma_test_data): Likewise.
11337         (fmax_test_data): Likewise.
11338         (fmin_test_data): Likewise.
11339         (fmod_test_data): Likewise.
11340         (fpclassify_test_data): Likewise.
11341         (frexp_test_data): Likewise.
11342         (hypot_test_data): Likewise.
11343         (ilogb_test_data): Likewise.
11344         (isgreater_test_data): Likewise.
11345         (isgreaterequal_test_data): Likewise.
11346         (isinf_test_data): Likewise.
11347         (isless_test_data): Likewise.
11348         (islessequal_test_data): Likewise.
11349         (islessgreater_test_data): Likewise.
11350         (isnan_test_data): Likewise.
11351         (isnormal_test_data): Likewise.
11352         (issignaling_test_data): Likewise.
11353         (isunordered_test_data): Likewise.
11354         (j0_test_data): Likewise.
11355         (j1_test_data): Likewise.
11356         (jn_test_data): Likewise.
11357         (lgamma_test_data): Likewise.
11358         (lrint_test_data): Likewise.
11359         (llrint_test_data): Likewise.
11360         (log_test_data): Likewise.
11361         (log10_test_data): Likewise.
11362         (log1p_test_data): Likewise.
11363         (log2_test_data): Likewise.
11364         (logb_test_data): Likewise.
11365         (lround_test_data): Likewise.
11366         (llround_test_data): Likewise.
11367         (modf_test_data): Likewise.
11368         (nearbyint_test_data): Likewise.
11369         (nextafter_test_data): Likewise.
11370         (nexttoward_test_data): Likewise.
11371         (pow_test_data): Likewise.
11372         (remainder_test_data): Likewise.
11373         (remquo_test_data): Likewise.
11374         (rint_test_data): Likewise.
11375         (round_test_data): Likewise.
11376         (signbit_test_data): Likewise.
11377         (sinh_test_data): Likewise.
11378         (sqrt_test_data): Likewise.
11379         (tanh_test_data): Likewise.
11380         (tgamma_test_data): Likewise.
11381         (trunc_test_data): Likewise.
11382         (y0_test_data): Likewise.
11383         (y1_test_data): Likewise.
11384         (yn_test_data): Likewise.
11385         (significand_test_data): Likewise.
11386
11387 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
11388
11389         * manual/filesys.texi (Storage Allocation): Document that
11390         posix_fallocate emulation fails when fd is open with O_WRONLY.
11391
11392 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
11393
11394         [BZ #19016]
11395         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
11396         allow more cases with X^2 + Y^2 >= 0.5.
11397         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
11398         normal element in sum instead of special-casing based on values of
11399         arguments.
11400         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
11401         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
11402         -1 as normal element in sum instead of special-casing based on
11403         values of arguments.
11404         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
11405         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
11406         (__x2y2m1): Update comment.
11407         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
11408         as normal element in sum instead of special-casing based on values
11409         of arguments.
11410         * math/s_clog.c (__clog): Handle more cases using log1p without
11411         hypot.
11412         * math/s_clog10.c (__clog10): Likewise.
11413         * math/s_clog10f.c (__clog10f): Likewise.
11414         * math/s_clog10l.c (__clog10l): Likewise.
11415         * math/s_clogf.c (__clogf): Likewise.
11416         * math/s_clogl.c (__clogl): Likewise.
11417         * math/auto-libm-test-in: Add more tests of clog and clog10.
11418         * math/auto-libm-test-out: Regenerated.
11419         * sysdeps/i386/fpu/libm-test-ulps: Update.
11420         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11421
11422 2015-09-28  Martin Sebor  <msebor@redhat.com>
11423
11424         [BZ #18969]
11425         * string/Makefile (LOCALES): Define.
11426         (gen-locales.mk): Include.
11427         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
11428         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
11429         * string/tst-strxfrm2.c (do_test): Print the name of the locale
11430         on setlocale failure.
11431
11432 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
11433
11434         [BZ #18985]
11435         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
11436         (__strftime_internal): Likewise.
11437         * time/tst-strftime.c (do_bz18985): New test.
11438         (do_test): Call it.
11439
11440 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
11441
11442         [BZ #18956]
11443         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
11444         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
11445         extracting high part.
11446         * math/auto-libm-test-in: Add another test of pow.
11447         * math/auto-libm-test-out: Regenerated.
11448         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11449
11450 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11451
11452         [BZ #18825]
11453         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
11454         New macro.
11455         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
11456         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11457         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
11458         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
11459         DBL_NARROW_EVAL, reloading the PIC register as needed.
11460         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
11461         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
11462         FLT_NARROW_EVAL.  Use separate return path for case when first
11463         argument is NaN.
11464         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
11465         DEFINE_LDBL_MIN.
11466         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
11467         PIC register.
11468         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
11469         math_check_force_underflow_nonneg.
11470         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
11471         underflow for subnormal result.
11472         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11473         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
11474         math_check_force_underflow_nonneg.
11475         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
11476         math_check_force_underflow.
11477         * sysdeps/x86_64/fpu/x86_64-math-asm.h
11478         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
11479         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
11480         DEFINE_LDBL_MIN.
11481         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
11482         * math/auto-libm-test-in: Add more tests of pow.
11483         * math/auto-libm-test-out: Regenerated.
11484
11485 2015-09-25  Florian Weimer  <fweimer@redhat.com>
11486
11487         * nss/bug17079.c (init_test_items): Add diagnostic for
11488         inconsistent entries.
11489         (test_buffer_size): Skip inconsistent entries.
11490
11491 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11492
11493         [BZ #13304]
11494         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
11495         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11496         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
11497
11498         [BZ #13304]
11499         * sysdeps/microblaze/s_fma.c: New file.
11500         * sysdeps/microblaze/s_fmaf.c: Likewise.
11501         * sysdeps/microblaze/sfp-machine.h: Likewise.
11502
11503 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
11504
11505         [BZ #17250]
11506         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
11507         member.
11508
11509 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11510
11511         [BZ #18803]
11512         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
11513         (MO): New macro.
11514         (__ieee754_hypot) [PIC]: Load PIC register.
11515         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
11516         DBL_NARROW_EVAL.
11517         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
11518         math_check_force_underflow_nonneg in case where result might be
11519         tiny.
11520         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11521         Likewise.
11522         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11523         Likewise.
11524         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11525         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11526         * math/auto-libm-test-in: Add more tests of hypot.
11527         * math/auto-libm-test-out: Regenerated.
11528
11529 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
11530
11531         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
11532
11533 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11534
11535         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
11536         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
11537         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11538         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11539         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
11540         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11541         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11542
11543         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
11544         LOAD_PIC_REG.
11545
11546         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
11547         (FLT_CHECK_FORCE_UFLOW): Likewise.
11548         (DBL_CHECK_FORCE_UFLOW): Likewise.
11549         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
11550         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
11551         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
11552         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11553         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11554         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11555         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11556         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11557         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
11558         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11559         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
11560         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
11561         (flt_min): Replace with use of DEFINE_FLT_MIN.
11562         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
11563         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
11564         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11565         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
11566         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
11567         (flt_min): Replace with use of DEFINE_FLT_MIN.
11568         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
11569         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
11570         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11571         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
11572         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
11573         (flt_min): Replace with use of DEFINE_FLT_MIN.
11574         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
11575         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
11576         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11577         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11578         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
11579         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11580         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11581         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
11582         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11583         (__atan): Use DBL_CHECK_FORCE_UFLOW.
11584         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
11585         (flt_min): Replace with use of DEFINE_FLT_MIN.
11586         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
11587         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
11588         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11589         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
11590         main computation.
11591         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
11592         (flt_min): Replace with use of DEFINE_FLT_MIN.
11593         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
11594         main computation.
11595         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
11596         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11597         (MO): New macro.
11598         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
11599         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
11600         (flt_min): Replace with use of DEFINE_FLT_MIN.
11601         (MO): New macro.
11602         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
11603         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
11604         (__log1pl): Use MO.
11605
11606         [BZ #19003]
11607         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
11608         $(config-cflags-nofma).
11609
11610 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11611
11612         * sysdeps/aarch64/libm-test-ulps: Regenerated.
11613
11614 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
11615
11616         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
11617         (TWO127): Likewise.
11618
11619         * sysdeps/generic/math_private.h (fabs_tg): New macro.
11620         (min_of_type): Likewise.
11621         (math_check_force_underflow): Likewise.
11622         (math_check_force_underflow_nonneg): Likewise.
11623         (math_check_force_underflow_complex): Likewise.
11624         * math/e_exp2l.c (__ieee754_exp2l): Use
11625         math_check_force_underflow_nonneg.
11626         * math/k_casinh.c (__kernel_casinh): Likewise.
11627         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11628         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11629         * math/s_catan.c (__catan): Use
11630         math_check_force_underflow_complex.
11631         * math/s_catanf.c (__catanf): Likewise.
11632         * math/s_catanh.c (__catanh): Likewise.
11633         * math/s_catanhf.c (__catanhf): Likewise.
11634         * math/s_catanhl.c (__catanhl): Likewise.
11635         * math/s_catanl.c (__catanl): Likewise.
11636         * math/s_ccosh.c (__ccosh): Likewise.
11637         * math/s_ccoshf.c (__ccoshf): Likewise.
11638         * math/s_ccoshl.c (__ccoshl): Likewise.
11639         * math/s_cexp.c (__cexp): Likewise.
11640         * math/s_cexpf.c (__cexpf): Likewise.
11641         * math/s_cexpl.c (__cexpl): Likewise.
11642         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11643         * math/s_clog10.c (__clog10): Likewise.
11644         * math/s_clog10f.c (__clog10f): Likewise.
11645         * math/s_clog10l.c (__clog10l): Likewise.
11646         * math/s_clogf.c (__clogf): Likewise.
11647         * math/s_clogl.c (__clogl): Likewise.
11648         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11649         * math/s_csinf.c (__csinf): Likewise.
11650         * math/s_csinh.c (__csinh): Likewise.
11651         * math/s_csinhf.c (__csinhf): Likewise.
11652         * math/s_csinhl.c (__csinhl): Likewise.
11653         * math/s_csinl.c (__csinl): Likewise.
11654         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11655         * math/s_csqrtf.c (__csqrtf): Likewise.
11656         * math/s_csqrtl.c (__csqrtl): Likewise.
11657         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11658         * math/s_ctanf.c (__ctanf): Likewise.
11659         * math/s_ctanh.c (__ctanh): Likewise.
11660         * math/s_ctanhf.c (__ctanhf): Likewise.
11661         * math/s_ctanhl.c (__ctanhl): Likewise.
11662         * math/s_ctanl.c (__ctanl): Likewise.
11663         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11664         instead of volatile.
11665         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11666         math_check_force_underflow.
11667         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11668         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11669         volatile when forcing underflow.
11670         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11671         math_check_force_underflow_nonneg.
11672         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11673         Likewise.
11674         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11675         math_check_force_underflow.
11676         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11677         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11678         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11679         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11680         math_check_force_underflow_nonneg.
11681         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11682         math_check_force_underflow.
11683         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11684         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11685         instead of volatile.
11686         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11687         math_check_force_underflow.
11688         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11689         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11690         math_check_force_underflow_nonneg.
11691         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11692         math_check_force_underflow.
11693         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11694         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11695         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11696         math_check_force_underflow_nonneg.
11697         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11698         Likewise.
11699         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11700         math_check_force_underflow.
11701         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11702         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11703         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11704         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11705         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11706         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11707         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11708         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11709         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11710         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11711         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11712         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11713         Likewise.
11714         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11715         math_check_force_underflow_nonneg.
11716         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11717         Likewise.
11718         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11719         math_check_force_underflow.
11720         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11721         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11722         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11723         Likewise.
11724         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11725         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11726         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11727         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11728         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11729         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11730         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11731         instead of volatile.
11732         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11733         math_check_force_underflow.
11734         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11735         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11736         math_check_force_underflow.
11737         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11738         Likewise.
11739         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11740         Use math_check_force_underflow_nonneg.
11741         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11742         math_check_force_underflow.
11743         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11744         Likewise.
11745         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11746         Likewise.
11747         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11748         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11749         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11750         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11751         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11752         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11753         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11754         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11755         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11756         math_check_force_underflow_nonneg.
11757         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11758         math_check_force_underflow.
11759         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11760         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11761         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11762         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11763         math_check_force_underflow_nonneg.
11764         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11765         math_check_force_underflow.
11766         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11767         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11768         instead of volatile.
11769         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11770         math_check_force_underflow.
11771
11772         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11773         * stdlib/strtod_l.c: Include <math_private.h>.
11774         (overflow_value): Use math_narrow_eval.
11775         (underflow_value): Likewise.
11776         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11777         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11778         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11779         (__ieee754_gamma_r): Likewise.
11780         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11781         Likewise.
11782         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11783         Likewise.
11784         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11785         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11786         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11787         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11788         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11789         (__ieee754_gammaf_r): Likewise.
11790         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11791         Likewise.
11792         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11793         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11794         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11795         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11796         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11797         volatile.
11798         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11799         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11800         math_narrow_eval.
11801         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11802         Likewise.
11803         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11804         Likewise.
11805         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11806         Likewise.
11807         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11808         volatile.
11809         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11810         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11811         math_narrow_eval.
11812         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11813         Likewise.
11814         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11815         Likewise.
11816
11817 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11818
11819         * nptl/Versions: Remove ignored symbols.
11820
11821 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11822
11823         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11824         * nss/Makefile (tests): Update.
11825
11826 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11827
11828         * nss/bug18287.c: New file.
11829         * nss/Makefile (tests): Add bug18287.
11830
11831 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11832
11833         * mach/Versions (__mach_host_self_): Add symbol.
11834
11835 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11836
11837         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11838         vm_page_size.
11839
11840 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11841
11842         Really fix sysdeps/i386/fpu/s_scalbn.S build
11843
11844         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11845         (libc: GLIBC_2_22): Remove unused version set.
11846
11847 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11848
11849         * config.make.in (enable-timezone-tools): New variable.
11850         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11851         (enable_timezone_tools): Export to generated files.
11852         * configure: Regenerate.
11853         * INSTALL: Regenerate.
11854         * manual/install.texi (--disable-timezone-tools): Document new flag.
11855         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11856         ifeq ($(enable-timezone-tools),yes) check.
11857
11858 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11859
11860         * timezone/Makefile: Revert previous change.
11861
11862         [BZ #18980]
11863         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11864         (DEFINE_DBL_MIN): Likewise.
11865         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11866         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11867         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11868         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11869         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11870         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11871         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11872         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11873         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11874         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11875         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11876         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11877         (flt_min): Replace with use of DEFINE_FLT_MIN.
11878         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11879         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11880         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11881         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11882         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11883         (flt_min): Replace with use of DEFINE_FLT_MIN.
11884         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11885         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11886         (flt_min): Replace with use of DEFINE_FLT_MIN.
11887         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11888         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11889         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11890         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11891         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11892         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11893         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11894         (__ieee754_pow): Use DBL_NARROW_EVAL.
11895         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11896         (__ieee754_powf): Use FLT_NARROW_EVAL.
11897         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11898         (__ieee754_expf_sse2): Convert double-precision result to single
11899         precision.
11900         * sysdeps/i386/fpu/libm-test-ulps: Update.
11901
11902 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11903
11904         * timezone/Makefile: Ignore unused variable errors due to private.h
11905         (time_t_min) and (time_t_max).
11906         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11907         Likewise.
11908
11909 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11910
11911         [BZ #18981]
11912         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11913         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11914         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11915         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11916         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11917         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11918         (__scalbn): Use DBL_NARROW_EVAL.
11919         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11920         (__scalbnf): Use FLT_NARROW_EVAL.
11921
11922 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11923
11924         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11925         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11926         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11927         * stdio-common/printf_fp.c (___printf_fp):
11928         Use signbit to get the sign. Use isinf macro to allow inlining.
11929         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11930         * stdio-common/printf_size.c (__printf_size): Likewise.
11931
11932 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11933
11934         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11935
11936 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11937
11938         [BZ #18980]
11939         * sysdeps/generic/math_private.h: Include <float.h>.
11940         (math_narrow_eval): New macro.
11941         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11942         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11943         math_narrow_eval on overflowing return value.
11944         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11945         Likewise.
11946         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11947         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11948         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11949         Likewise.
11950         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11951
11952 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11953
11954         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11955         * math/Makefile: Remove isinf_ns.c.
11956         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11957         * math/multc3.c (__multc3): Likewise.
11958         * math/s_casin.c (__casin): Likewise.
11959         * math/s_casinf.c (__casinf): Likewise.
11960         * math/s_casinl.c (__casinl): Likewise.
11961         * math/s_cproj.c (__cproj): Likewise.
11962         * math/s_cprojf.c (__cprojf): Likewise.
11963         * math/s_cprojl.c (__cprofl): Likewise.
11964         * math/s_ctan.c (__ctan): Likewise.
11965         * math/s_ctanf.c (__ctanf): Likewise.
11966         * math/s_ctanh.c (__ctanh): Likewise.
11967         * math/s_ctanhf.c (__ctanhf): Likewise.
11968         * math/s_ctanhl.c (__ctanhl): Likewise.
11969         * math/s_ctanl.c (__ctanl): Likewise.
11970         * math/w_fmod.c (__fmod): Likewise.
11971         * math/w_fmodf.c (__fmodf): Likewise.
11972         * math/w_fmodl.c (_fmodl): Likewise.
11973         * math/w_remainder.c (__remainder): Likewise.
11974         * math/w_remainderf.c (__remainderf): Likewise.
11975         * math/w_remainderl.c (__remainderl): Likewise.
11976         * math/w_scalb.c (__scalb): Likewise.
11977         * math/w_scalbf.c (__scalbf): Likewise.
11978         * math/w_scalbl.c (__scalbl): Likewise.
11979         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11980         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11981         with isinf.
11982         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11983         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11984         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11985         __isinf_nsf with isinf.
11986         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11987         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11988         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11989         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11990         with isinf.
11991         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11992         __isinf_nsl with isinf.
11993         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11994         with isinf.
11995         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11996         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11997         __isinf_nsl with isinf.
11998         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11999         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
12000         with isinf.
12001
12002 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12003
12004         * resolv/base64.c (rcsid): Remove unused static.
12005         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
12006         static.  (tqpi1): Likewise.
12007         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
12008         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
12009         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
12010         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
12011         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
12012         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
12013         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
12014         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
12015         Likewise.
12016
12017 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
12018
12019         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
12020         <nptl/pthreadP.h>.
12021         (_longjmp_unwind): Use __libc_ptf_call.
12022         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
12023
12024 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
12025
12026         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
12027         * sysdeps/arm/__longjmp.S: Likewise.
12028
12029 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12030
12031         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
12032         Use __builtin_signbit.
12033         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
12034         Use __builtin_signbitf.
12035         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
12036         Use __builtin_signbitl.
12037         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
12038         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
12039
12040 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12041
12042         [BZ #15367]
12043         [BZ #17441]
12044
12045         * math/Makefile: Build test-snan.c with -fsignaling-nans.
12046         * math/math.h (fpclassify): Use __builtin_fpclassify when
12047         available.  (signbit): Use __builtin_signbit(f/l).
12048         (isfinite): Use__builtin_isfinite.  (isnormal): Use
12049         __builtin_isnormal.  (isnan): Use __builtin_isnan.
12050         (isinf): Use __builtin_isinf_sign.
12051
12052 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12053
12054         * benchtests/Makefile: Add bench-math-inlines, link with libm.
12055         * benchtests/bench-math-inlines.c: New benchmark.
12056         * benchtests/bench-util.h: New file.
12057         * benchtests/bench-util.c: New file.
12058         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
12059
12060 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
12061
12062         * elf/tst-dlmopen1.c: Define TEST_SO.
12063         (do_test): Use TEST_SO.
12064
12065         * elf/dl-load.c: Include libc-internal.h.
12066         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
12067
12068 2015-09-18  Vincent Bernat  <vincent@bernat.im>
12069
12070         [BZ #17887]
12071         * time/strptime_l.c (__strptime_internal): Make %z accept
12072         [+-]HH:MM time zones.
12073
12074 2015-09-18  Vincent Bernat  <vincent@bernat.im>
12075
12076         [BZ #17886]
12077         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
12078         valid time zone.
12079
12080 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
12081
12082         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
12083         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
12084         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12085         (__ASSUME_FDATASYNC): Delete.
12086
12087 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12088
12089         * conform/linknamespace.pl: Require weak undefined symbols to be
12090         in the standard namespace.
12091         (%strong_syms): Rename to %seen_syms.
12092         (%strong_seen): Rename to %seen_where.
12093
12094 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
12095
12096         [BZ #18970]
12097         * misc/error.c (error): Replace pthread_setcancelstate with
12098         __pthread_setcancelstate.
12099         (error_at_line): Likewise.
12100         * posix/wordexp.c (parse_comm): Likewise.
12101         * stdlib/fmtmsg.c (fmtmsg): Likewise.
12102         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
12103         (__pthread_setcancelstate): This.
12104         (pthread_setcancelstate): Add an alias.
12105         * nptl/nptl-init.c (pthread_functions): Replace
12106         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
12107         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
12108         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
12109         hidden_proto.
12110         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
12111         it with hidden_def.
12112         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
12113         (pthread_setcancelstate): Renamed to ...
12114         (__pthread_setcancelstate): This.
12115         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
12116         __libc_ptf_call with __pthread_setcancelstate.
12117
12118 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12119             Andreas Schwab  <schwab@suse.de>
12120
12121         [BZ #17118]
12122         * math/s_ctan.c (__ctan): Determine sign of zero real part of
12123         result when imaginary part of argument is infinite using sine and
12124         cosine.
12125         * math/s_ctanf.c (__ctanf): Likewise.
12126         * math/s_ctanl.c (__ctanl): Likewise.
12127         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
12128         of result when real part of argument is infinite using sine and
12129         cosine.
12130         * math/s_ctanhf.c (__ctanhf): Likewise.
12131         * math/s_ctanhl.c (__ctanhl): Likewise.
12132         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
12133         (ctanh_test_data): Add more tests of ctanh.
12134
12135 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12136
12137         [BZ #15384]
12138         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
12139         bit-mask as in subtraction.
12140         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
12141         Likewise.
12142         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
12143         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
12144         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
12145
12146         [BZ #18951]
12147         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
12148         underflow exception for small results.
12149         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12150         Likewise.
12151         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12152         Likewise.
12153         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12154         Likewise.
12155         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12156         Likewise.
12157         * math/auto-libm-test-in: Add more tests of tgamma.
12158         * math/auto-libm-test-out: Regenerated.
12159
12160 2015-09-17  Andreas Schwab  <schwab@suse.de>
12161
12162         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
12163
12164 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12165
12166         [BZ #18977]
12167         * math/bits/mathcalls.h
12168         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
12169         not declare.
12170         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
12171         Likewise.
12172         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
12173         Likewise.
12174         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
12175         Likewise.
12176         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
12177         Likewise.
12178         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
12179         Likewise.
12180         * conform/data/math.h-data
12181         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
12182         function.
12183         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
12184         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
12185         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
12186         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
12187         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
12188         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
12189         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
12190         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
12191         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
12192         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
12193         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
12194
12195         [BZ #6803]
12196         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
12197         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
12198         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
12199         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
12200         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
12201         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
12202         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
12203         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
12204         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12205         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
12206         Likewise.
12207         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12208         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
12209         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
12210         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
12211         long_double_symbol calls.
12212         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
12213         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
12214         strong alias of __ldexpl.
12215         (scalbnl): Define using long_double_symbol.
12216         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
12217         Remove alias.
12218         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
12219         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
12220         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
12221         (scalbln_test_data): Add more errno expectations.
12222
12223 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
12224
12225         Cache the host port like we cache the task port.  This way we do not
12226         need to call the kernel just to get the port.  Furthermore, we no
12227         longer increase the reference count on every invocation of
12228         `mach_host_self'.
12229
12230         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
12231         Protect declarations against the macro expansion.
12232         * mach/mach_init.c (__mach_host_self_): New variable.
12233         (mach_init): Initialize `__mach_host_self_'.
12234         * mach/mach_init.h (__mach_host_self_): New declaration.
12235         (__mach_host_self, mach_host_self): New macros.
12236         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
12237         Release reference.
12238
12239 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12240
12241         [BZ #4404]
12242         * po/de.po: Update from Translation Project.
12243
12244         [BZ #16415]
12245         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
12246         (__expm1l): Remove code to handle positive infinity and overflow.
12247         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
12248         variable.
12249         (__expm1l): Remove code to handle positive infinity and overflow.
12250
12251 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12252             Paul Pluzhnikov  <ppluzhnikov@google.com>
12253
12254         [BZ #18872]
12255         * stdio-common/Makefile (tst-printf-bz18872): New test.
12256         (tst-printf-bz18872-mem.out): Likewise.
12257         * stdio-common/tst-printf-bz18872.sh: Generate new test.
12258         * stdio-common/vfprintf.c: Fix memory leaks.
12259
12260 2015-09-16  Andreas Schwab  <schwab@suse.de>
12261
12262         [BZ #17244]
12263         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
12264         Remove extra va_start/va_end calls.
12265
12266         [BZ #17243]
12267         * posix/execl.c (execl): Add missing va_end.
12268         * posix/execle.c (execle): Likewise.
12269         * posix/execlp.c (execlp): Likewise.
12270
12271 2015-09-15  Roland McGrath  <roland@hack.frob.com>
12272
12273         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
12274         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
12275
12276 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
12277
12278         [BZ #18967]
12279         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
12280         undefine around includes of <bits/mathcalls.h>.
12281         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
12282         not declare function.
12283         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
12284         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
12285         (scalb): Likewise.
12286         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
12287         not define macro.
12288         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
12289         variable.
12290         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
12291         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
12292         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
12293
12294         [BZ #18857]
12295         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
12296         return non-finite argument without doing ordered comparisons on
12297         it.
12298
12299         [BZ #16296]
12300         * math/fenv.h (fegetround): Use __attribute_pure__.
12301         * include/fenv.h (__fegetround): Likewise.
12302
12303         [BZ #18595]
12304         * math/s_ctan.c (__ctan): Force underflow exception for results
12305         whose real or imaginary part has small absolute value.
12306         * math/s_ctanf.c (__ctanf): Likewise.
12307         * math/s_ctanh.c (__ctanh): Likewise.
12308         * math/s_ctanhf.c (__ctanhf): Likewise.
12309         * math/s_ctanhl.c (__ctanhl): Likewise.
12310         * math/s_ctanl.c (__ctanl): Likewise.
12311         * math/auto-libm-test-in: Do not allow missing underflow for ctan
12312         and ctanh.  Add more tests of ctan and ctanh.
12313
12314         [BZ #15918]
12315         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
12316         handling of cases where one argument is an infinity.
12317
12318         [BZ #18875]
12319         [BZ #18966]
12320         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
12321         (MO): New macro.
12322         (__ieee754_exp10): For small results, force underflow exception
12323         and remove excess range and precision from return value.
12324         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
12325         (MO): New macro.
12326         (__ieee754_exp10f): For small results, force underflow exception
12327         and remove excess range and precision from return value.
12328         * math/auto-libm-test-in: Add more tests of exp10.
12329         * math/auto-libm-test-out: Regenerated.
12330
12331 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
12332
12333         [BZ #18875]
12334         [BZ #18961]
12335         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
12336         (MO): New macro.
12337         (__ieee754_exp): For small results, force underflow exception and
12338         remove excess range and precision from return value.
12339         (__exp_finite): Likewise.
12340         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
12341         (MO): New macro.
12342         (__ieee754_expf): For small results, force underflow exception and
12343         remove excess range and precision from return value.
12344         (__expf_finite): Likewise.
12345         * math/auto-libm-test-in: Add more tests of exp.
12346         * math/auto-libm-test-out: Regenerated.
12347
12348         [BZ #16521]
12349         [BZ #18875]
12350         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
12351         small results.
12352         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
12353         (MO): New macro.
12354         (__ieee754_exp2): For small results, force underflow exception and
12355         remove excess range and precision from return value.
12356         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
12357         (MO): New macro.
12358         (__ieee754_exp2f): For small results, force underflow exception
12359         and remove excess range and precision from return value.
12360         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
12361         (MO): New macro.
12362         (__ieee754_exp2l): Force underflow exception for small results.
12363         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
12364         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
12365         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
12366         (MO): New macro.
12367         (__ieee754_exp2l): Force underflow exception for small results.
12368         * math/auto-libm-test-in: Add more tests or exp2.
12369         * math/auto-libm-test-out: Regenerated.
12370
12371 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
12372
12373         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
12374
12375         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
12376         /dev/null.
12377
12378 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12379
12380         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12381         io fs process)): Drop spurious backslash.
12382
12383 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
12384
12385         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
12386         Use sysinfo system call instead of parsing /proc/meminfo.
12387         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
12388         Likewise.
12389
12390 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
12391
12392         [BZ #16985]
12393         * programs/localedef.c (main): Display argv[remaining] when
12394         output_path is NULL.
12395
12396 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12397
12398         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
12399         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
12400         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
12401         tanh.
12402         * math/auto-libm-test-out: Regenerated.
12403         * sysdeps/i386/fpu/libm-test-ulps: Update.
12404         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
12405         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12406         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12407
12408 2015-09-11  Roland McGrath  <roland@hack.frob.com>
12409
12410         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
12411         Use 'override' keyword to freeze the value here, preventing
12412         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
12413
12414 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12415
12416         [BZ #14912]
12417         * sysdeps/aarch64/bits/atomic.h: Move to ...
12418         * sysdeps/aarch64/atomic-machine.h: ...here.
12419         (_AARCH64_BITS_ATOMIC_H): Rename macro to
12420         _AARCH64_ATOMIC_MACHINE_H.
12421         * sysdeps/alpha/bits/atomic.h: Move to ...
12422         * sysdeps/alpha/atomic-machine.h: ...here.
12423         * sysdeps/arm/bits/atomic.h: Move to ...
12424         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
12425         * bits/atomic.h: Move to ...
12426         * sysdeps/generic/atomic-machine.h: ...here.
12427         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12428         * sysdeps/i386/bits/atomic.h: Move to ...
12429         * sysdeps/i386/atomic-machine.h: ...here.
12430         * sysdeps/ia64/bits/atomic.h: Move to ...
12431         * sysdeps/ia64/atomic-machine.h: ...here.
12432         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
12433         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
12434         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12435         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
12436         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
12437         * sysdeps/microblaze/bits/atomic.h: Move to ...
12438         * sysdeps/microblaze/atomic-machine.h: ...here.
12439         * sysdeps/mips/bits/atomic.h: Move to ...
12440         * sysdeps/mips/atomic-machine.h: ...here.
12441         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
12442         * sysdeps/powerpc/bits/atomic.h: Move to ...
12443         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
12444         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
12445         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
12446         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
12447         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
12448         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
12449         <atomic-machine.h> instead of <bits/atomic.h>.
12450         * sysdeps/s390/bits/atomic.h: Move to ...
12451         * sysdeps/s390/atomic-machine.h: ...here.
12452         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
12453         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
12454         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12455         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
12456         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
12457         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
12458         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
12459         * sysdeps/tile/bits/atomic.h: Move to ...
12460         * sysdeps/tile/atomic-machine.h: ...here.
12461         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
12462         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
12463         <sysdeps/tile/atomic-machine.h> instead of
12464         <sysdeps/tile/bits/atomic.h>.
12465         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12466         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
12467         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
12468         <sysdeps/tile/atomic-machine.h> instead of
12469         <sysdeps/tile/bits/atomic.h>.
12470         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12471         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
12472         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
12473         <sysdeps/arm/atomic-machine.h> instead of
12474         <sysdeps/arm/bits/atomic.h>.
12475         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
12476         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
12477         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12478         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
12479         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
12480         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12481         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
12482         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
12483         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
12484         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
12485         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
12486         * sysdeps/x86_64/bits/atomic.h: Move to ...
12487         * sysdeps/x86_64/atomic-machine.h: ...here.
12488         * include/atomic.h: Include <atomic-machine.h> instead of
12489         <bits/atomic.h>.
12490
12491         * sysdeps/mips/mips32/libm-test-ulps: Update.
12492         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12493
12494         [BZ #18952]
12495         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
12496         not convert non-integer negative arguments to int to determine the
12497         value of signgam.
12498         * math/auto-libm-test-in: Add more tests of lgamma.
12499         * math/auto-libm-test-out: Regenerated.
12500
12501         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
12502         cosh, csqrt, erfc, expm1 and lgamma.
12503         * math/auto-libm-test-out: Regenerated.
12504         * sysdeps/i386/fpu/libm-test-ulps: Update.
12505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12506
12507 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
12508
12509         [BZ #2542]
12510         [BZ #2543]
12511         [BZ #2558]
12512         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
12513         __lgamma_neg for arguments from -28.0 to -2.0.
12514         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
12515         __lgamma_negf for arguments from -15.0 to -2.0.
12516         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12517         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
12518         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
12519         Call __lgamma_negl for arguments from -33.0 to -2.0.
12520         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
12521         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12522         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12523         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
12524         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12525         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12526         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12527         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
12528         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12529         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12530         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
12531         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
12532         (__lgamma_neg): Likewise.
12533         (__lgamma_negl): Likewise.
12534         (__lgamma_product): Likewise.
12535         (__lgamma_productl): Likewise.
12536         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
12537         * math/auto-libm-test-in: Add more tests of lgamma.
12538         * math/auto-libm-test-out: Regenerated.
12539         * sysdeps/i386/fpu/libm-test-ulps: Update.
12540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12541
12542 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
12543
12544         [BZ #18675]
12545         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
12546
12547 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12548
12549         [BZ #14912]
12550         * bits/libc-lock.h: Move to ...
12551         * sysdeps/generic/libc-lock.h: ...here.
12552         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12553         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
12554         * sysdeps/mach/hurd/libc-lock.h: ...here.
12555         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12556         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
12557         * sysdeps/mach/bits/libc-lock.h: Move to ...
12558         * sysdeps/mach/libc-lock.h: ...here.
12559         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12560         * sysdeps/nptl/bits/libc-lock.h: Move to ...
12561         * sysdeps/nptl/libc-lock.h: ...here.
12562         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12563         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
12564         * sysdeps/nptl/libc-lockP.h: ...here.
12565         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
12566         * crypt/crypt_util.c: Include <libc-lock.h> instead of
12567         <bits/libc-lock.h>.
12568         * dirent/scandir-tail.c: Likewise.
12569         * dlfcn/dlerror.c: Likewise.
12570         * elf/dl-close.c: Likewise.
12571         * elf/dl-iteratephdr.c: Likewise.
12572         * elf/dl-lookup.c: Likewise.
12573         * elf/dl-open.c: Likewise.
12574         * elf/dl-support.c: Likewise.
12575         * elf/dl-writev.h: Likewise.
12576         * elf/rtld.c: Likewise.
12577         * grp/fgetgrent.c: Likewise.
12578         * gshadow/fgetsgent.c: Likewise.
12579         * gshadow/sgetsgent.c: Likewise.
12580         * iconv/gconv_conf.c: Likewise.
12581         * iconv/gconv_db.c: Likewise.
12582         * iconv/gconv_dl.c: Likewise.
12583         * iconv/gconv_int.h: Likewise.
12584         * iconv/gconv_trans.c: Likewise.
12585         * include/link.h: Likewise.
12586         * inet/getnameinfo.c: Likewise.
12587         * inet/getnetgrent.c: Likewise.
12588         * inet/getnetgrent_r.c: Likewise.
12589         * intl/bindtextdom.c: Likewise.
12590         * intl/dcigettext.c: Likewise.
12591         * intl/finddomain.c: Likewise.
12592         * intl/gettextP.h: Likewise.
12593         * intl/loadmsgcat.c: Likewise.
12594         * intl/localealias.c: Likewise.
12595         * intl/textdomain.c: Likewise.
12596         * libidn/idn-stub.c: Likewise.
12597         * libio/libioP.h: Likewise.
12598         * locale/duplocale.c: Likewise.
12599         * locale/freelocale.c: Likewise.
12600         * locale/newlocale.c: Likewise.
12601         * locale/setlocale.c: Likewise.
12602         * login/getutent_r.c: Likewise.
12603         * login/getutid_r.c: Likewise.
12604         * login/getutline_r.c: Likewise.
12605         * login/utmp-private.h: Likewise.
12606         * login/utmpname.c: Likewise.
12607         * malloc/mtrace.c: Likewise.
12608         * misc/efgcvt.c: Likewise.
12609         * misc/error.c: Likewise.
12610         * misc/fstab.c: Likewise.
12611         * misc/getpass.c: Likewise.
12612         * misc/mntent.c: Likewise.
12613         * misc/syslog.c: Likewise.
12614         * nis/nis_call.c: Likewise.
12615         * nis/nis_callback.c: Likewise.
12616         * nis/nss-default.c: Likewise.
12617         * nis/nss_compat/compat-grp.c: Likewise.
12618         * nis/nss_compat/compat-initgroups.c: Likewise.
12619         * nis/nss_compat/compat-pwd.c: Likewise.
12620         * nis/nss_compat/compat-spwd.c: Likewise.
12621         * nis/nss_nis/nis-alias.c: Likewise.
12622         * nis/nss_nis/nis-ethers.c: Likewise.
12623         * nis/nss_nis/nis-grp.c: Likewise.
12624         * nis/nss_nis/nis-hosts.c: Likewise.
12625         * nis/nss_nis/nis-network.c: Likewise.
12626         * nis/nss_nis/nis-proto.c: Likewise.
12627         * nis/nss_nis/nis-pwd.c: Likewise.
12628         * nis/nss_nis/nis-rpc.c: Likewise.
12629         * nis/nss_nis/nis-service.c: Likewise.
12630         * nis/nss_nis/nis-spwd.c: Likewise.
12631         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12632         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12633         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12634         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12635         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12636         * nis/nss_nisplus/nisplus-network.c: Likewise.
12637         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12638         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12639         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12640         * nis/nss_nisplus/nisplus-service.c: Likewise.
12641         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12642         * nis/ypclnt.c: Likewise.
12643         * nptl/libc_pthread_init.c: Likewise.
12644         * nss/getXXbyYY.c: Likewise.
12645         * nss/getXXent.c: Likewise.
12646         * nss/getXXent_r.c: Likewise.
12647         * nss/nss_db/db-XXX.c: Likewise.
12648         * nss/nss_db/db-netgrp.c: Likewise.
12649         * nss/nss_db/nss_db.h: Likewise.
12650         * nss/nss_files/files-XXX.c: Likewise.
12651         * nss/nss_files/files-alias.c: Likewise.
12652         * nss/nsswitch.c: Likewise.
12653         * posix/regex_internal.h: Likewise.
12654         * posix/wordexp.c: Likewise.
12655         * pwd/fgetpwent.c: Likewise.
12656         * resolv/res_hconf.c: Likewise.
12657         * resolv/res_libc.c: Likewise.
12658         * shadow/fgetspent.c: Likewise.
12659         * shadow/lckpwdf.c: Likewise.
12660         * shadow/sgetspent.c: Likewise.
12661         * socket/opensock.c: Likewise.
12662         * stdio-common/reg-modifier.c: Likewise.
12663         * stdio-common/reg-printf.c: Likewise.
12664         * stdio-common/reg-type.c: Likewise.
12665         * stdio-common/vfprintf.c: Likewise.
12666         * stdio-common/vfscanf.c: Likewise.
12667         * stdlib/abort.c: Likewise.
12668         * stdlib/cxa_atexit.c: Likewise.
12669         * stdlib/fmtmsg.c: Likewise.
12670         * stdlib/random.c: Likewise.
12671         * stdlib/setenv.c: Likewise.
12672         * string/strsignal.c: Likewise.
12673         * sunrpc/auth_none.c: Likewise.
12674         * sunrpc/bindrsvprt.c: Likewise.
12675         * sunrpc/create_xid.c: Likewise.
12676         * sunrpc/key_call.c: Likewise.
12677         * sunrpc/rpc_thread.c: Likewise.
12678         * sysdeps/arm/backtrace.c: Likewise.
12679         * sysdeps/generic/ldsodefs.h: Likewise.
12680         * sysdeps/generic/stdio-lock.h: Likewise.
12681         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12682         * sysdeps/i386/backtrace.c: Likewise.
12683         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12684         * sysdeps/m68k/backtrace.c: Likewise.
12685         * sysdeps/mach/hurd/cthreads.c: Likewise.
12686         * sysdeps/mach/hurd/dirstream.h: Likewise.
12687         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12688         * sysdeps/nptl/malloc-machine.h: Likewise.
12689         * sysdeps/nptl/stdio-lock.h: Likewise.
12690         * sysdeps/posix/dirstream.h: Likewise.
12691         * sysdeps/posix/getaddrinfo.c: Likewise.
12692         * sysdeps/posix/system.c: Likewise.
12693         * sysdeps/pthread/aio_suspend.c: Likewise.
12694         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12695         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12696         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12697         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12698         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12699         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12700         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12701         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12702         * sysdeps/unix/sysv/linux/system.c: Likewise.
12703         * sysdeps/x86_64/backtrace.c: Likewise.
12704         * time/alt_digit.c: Likewise.
12705         * time/era.c: Likewise.
12706         * time/tzset.c: Likewise.
12707         * wcsmbs/wcsmbsload.c: Likewise.
12708         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12709         instead of <bits/libc-lock.h> in comment.
12710
12711 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12712
12713         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12714         Only use .set mips2 if the current ISA is below mips2.
12715         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12716         Likewise.
12717         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12718         mips32r2 if the current ISA is below mips32r2.
12719         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12720         (TLS_IE): Updated to use the TLD_RDHWR macro.
12721         (TLS_LE): Likewise.
12722         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12723         __ASSEMBLER__ condition.
12724
12725 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12726
12727         Fix parallel build of before-compile targets.
12728
12729         * sysdeps/mach/Makefile ($(patsubst
12730         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12731         mach-before-compile target.
12732         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12733         io fs process)): Move rule to dedicated hurd-before-compile target.
12734
12735 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12736
12737         Fix rules generating headers in hurd/ and mach/ when initial make call
12738         has subdir= explicitly set.
12739
12740         * sysdeps/mach/Makefile ($(patsubst
12741         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12742         calling $(MAKE).
12743         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12744         io fs process)): Force subdir to hurd when calling $(MAKE).
12745         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12746         subdir to mach when calling $(MAKE).
12747
12748 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12749
12750         Check sysheaders when looking for Mach and Hurd headers
12751
12752         * sysdeps/mach/configure.ac: Add sysheaders check.
12753         * sysdeps/mach/configure: Regenerate.
12754         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12755         * sysdeps/mach/hurd/configure: Regenerate.
12756
12757 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12758
12759         [BZ #18921]
12760         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12761         Fix inverted sense of test of 'o_directory_works' value.
12762         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12763         Bernhard Voelker <mail@bernhard-voelker.de>.
12764
12765 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12766
12767         [BZ #14912]
12768         * bits/linkmap.h: Move to ...
12769         * sysdeps/generic/linkmap.h: ...here.
12770         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12771         * sysdeps/aarch64/linkmap.h: ...here.
12772         * sysdeps/arm/bits/linkmap.h: Move to ...
12773         * sysdeps/arm/linkmap.h: ...here.
12774         * sysdeps/hppa/bits/linkmap.h: Move to ...
12775         * sysdeps/hppa/linkmap.h: ...here.
12776         * sysdeps/ia64/bits/linkmap.h: Move to ...
12777         * sysdeps/ia64/linkmap.h: ...here.
12778         * sysdeps/mips/bits/linkmap.h: Move to ...
12779         * sysdeps/mips/linkmap.h: ...here.
12780         * sysdeps/s390/bits/linkmap.h: Move to ...
12781         * sysdeps/s390/linkmap.h: ...here.
12782         * sysdeps/sh/bits/linkmap.h: Move to ...
12783         * sysdeps/sh/linkmap.h: ...here.
12784         * sysdeps/x86/bits/linkmap.h: Move to ...
12785         * sysdeps/x86/linkmap.h: ...here.
12786         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12787
12788 2015-09-04  Andreas Schwab  <schwab@suse.de>
12789
12790         [BZ #18635]
12791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12792         (__makecontext): Terminate FDE before return label.
12793         (__novec_makecontext): Likewise.
12794
12795 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12796
12797         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12798         first member of struct sv in syscall macro.
12799
12800 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12801
12802         [BZ #14912]
12803         * bits/stdio-lock.h: Move to ...
12804         * sysdeps/generic/stdio-lock.h: ...here.
12805         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12806         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12807         * sysdeps/nptl/stdio-lock.h: ...here.
12808         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12809         * include/libio.h: Include <stdio-lock.h> instead of
12810         <bits/stdio-lock.h>.
12811         * sysdeps/nptl/fork.c: Likewise.
12812         * sysdeps/pthread/flockfile.c: Likewise.
12813         * sysdeps/pthread/ftrylockfile.c: Likewise.
12814         * sysdeps/pthread/funlockfile.c: Likewise.
12815
12816         [BZ #14912]
12817         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12818         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12819         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12820         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12821         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12822         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12823         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12824
12825 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12826
12827         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12828         (test-xfail-tst-protected1b): New variable.
12829
12830 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12831
12832         [BZ #14912]
12833         * bits/libc-tsd.h: Move to ...
12834         * sysdeps/generic/libc-tsd.h: ...here.
12835         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12836         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12837         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12838         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12839         * include/ctype.h: Include <libc-tsd.h> instead of
12840         <bits/libc-tsd.h>.
12841         * include/rpc/rpc.h: Likewise.
12842         * locale/localeinfo.h: Likewise.
12843         * sunrpc/rpc_thread.c: Likewise.
12844         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12845         * sysdeps/nptl/malloc-machine.h: Likewise.
12846
12847         * Makefile (headers): Remove bits/libc-lock.h.
12848         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12849
12850         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12851         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12852         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12853         <bits/stdio-lock.h>.
12854         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12855         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12856
12857 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12858
12859         [BZ #18757]
12860         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12861         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12862         BZ #18757.
12863
12864 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12865
12866         * malloc/mtrace.pl: Filter out NULL entries.
12867
12868 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12869
12870         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12871         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12872         macro.
12873
12874         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12875         (TCP_CC_INFO): Likewise.
12876         (TCP_SAVE_SYN): Likewise.
12877         (TCP_SAVED_SYN): Likewise.
12878
12879 2015-08-31  Brett Neumeier <brett@neumeier.us>
12880
12881         [BZ #18870]
12882         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12883
12884 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12885
12886         [BZ #18873]
12887         Fix broken overflow check in posix_fallocate
12888         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12889         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12890         Fix parenthesization typo.
12891
12892 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12893
12894         [BZ #18887]
12895         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12896         tst-mntent-blank-passno.
12897         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12898         * misc/tst-mntent-blank-corrupt.c: New test.
12899         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12900         * misc/tst-mntent.c (do_test): ... here.
12901
12902 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12903
12904         [BZ #4404]
12905         * po/de.po: Fix SIGALRM typo.
12906
12907 2015-08-28  James Perkins  <james@loowit.net>
12908
12909         * time/tst-strptime2.c (tests): Replace short list of test
12910         strings for strptime %z specifier with code which exhaustively
12911         tests every combination of sign and 0 to 5 digits. Tests for
12912         rejection of invalid strings.
12913
12914 2015-08-28  James Perkins  <james@loowit.net>
12915
12916         [BZ #16141]
12917         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12918         calculation, removing incorrect decimal time rounding, so that
12919         all minute values result in a valid seconds value.
12920         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12921         offset range limits to UTC-99:59 through UTC+99:59 to parse
12922         current and historical use cases.
12923         * time/tst-strptime2.c (tests): Modify and add tests for the
12924         strptime %z input field descriptor, specifically conversion of
12925         minutes to seconds and validating an offset range of -9959 to
12926         +9959.
12927
12928 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12929             Dmitry V. Levin  <ldv@altlinux.org>
12930
12931         [BZ #18877]
12932         * posix/Makefile (tests): Add tst-mmap-offset.
12933         * posix/tst-mmap.c: New file.
12934         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12935         offset calculation for negative values.
12936
12937 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12938
12939         * sysdeps/i386/init-arch.h: New file.
12940         * sysdeps/i386/i586/init-arch.h: Likewise.
12941         * sysdeps/i386/i686/init-arch.h: Likewise.
12942         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12943         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12944         * sysdeps/x86/cpu-features.h (bit_I586): New.
12945         (bit_I686): Likewise.
12946         (bit_CX8): Likewise.
12947         (bit_CMOV): Likewise.
12948         (index_CX8): Likewise.
12949         (index_CMOV): Likewise.
12950         (index_I586): Likewise.
12951         (index_I686): Likewise.
12952         (reg_CX8): Likewise.
12953         (reg_CMOV): Likewise.
12954         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12955         available at compile-time.
12956         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12957         available at compile-time.
12958         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12959         (USE_I686): Likewise.
12960
12961 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12962
12963         * sysdeps/i386/bcopy.S: New file.
12964         * sysdeps/i386/bzero.S: Likewise.
12965         * sysdeps/i386/memcpy.S: Likewise.
12966         * sysdeps/i386/memmove.S: Likewise.
12967         * sysdeps/i386/mempcpy.S: Likewise.
12968         * sysdeps/i386/memset.S: Likewise.
12969         * sysdeps/i386/bzero.c: Removed.
12970         * sysdeps/i386/memset.c: Likewise.
12971         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12972         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12973         * sysdeps/i386/i586/memset_chk.S: Likewise.
12974         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12975         * sysdeps/i386/memcpy_chk.S: Here.
12976         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12977         * sysdeps/i386/memmove_chk.S: Here.
12978         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12979         * sysdeps/i386/mempcpy_chk.S: Likewise.
12980         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12981         * sysdeps/i386/memset_chk.S: Likewise.
12982
12983 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12984
12985         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12986         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12987         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12988         * soft-fp/fmadf4.c: Ditto.
12989         * soft-fp/fmatf4.c: Ditto.
12990
12991 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12992
12993         * sysdeps/i386/i586/Implies: Removed.
12994         * sysdeps/i386/i686/Implies: Likewise.
12995
12996 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12997
12998         * sysdeps/i386/i486/strlen.S: Moved to ...
12999         * sysdeps/i386/strlen.S: Here.
13000
13001 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13002
13003         * sysdeps/i386/i486/strcat.S: Moved to ...
13004         * sysdeps/i386/strcat.S: Here.
13005
13006 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13007
13008         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
13009         * sysdeps/i386/pthread_spin_trylock.S: Here.
13010         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
13011         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
13012
13013 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13014
13015         * sysdeps/i386/i486/string-inlines.c: Moved to ...
13016         * sysdeps/i386/string-inlines.c: Here.
13017
13018 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13019
13020         * sysdeps/i386/i486/htonl.S: Moved ...
13021         * sysdeps/i386/htonl.S: here.
13022
13023 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13024
13025         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
13026         * sysdeps/i386/bits/atomic.h: Here.
13027
13028 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13029
13030         * sysdeps/i386/i486/Versions: Removed.
13031
13032 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
13033
13034         [BZ #2898]
13035         * misc/mktemp.c: Add mkdtemp to the link_warning message.
13036         Based on patch by Aurelien Jarno.
13037
13038 2015-08-26  Stan Shebs  <stanshebs@google.com>
13039
13040         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
13041         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
13042
13043 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13044
13045         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
13046         * sysdeps/powerpc/dl-procinfo.c:
13047         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
13048         feature so it shows when LD_SHOW_AUXV=1.
13049
13050 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13051
13052         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
13053         (__arch_compare_and_exchange_val_32_acq): Remove and use common
13054         definition.  ISA 2.07B no longer requires full sync.
13055
13056 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
13057
13058         [BZ #18863]
13059         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
13060         (si_call_addr): Define.
13061         (si_syscall): Define.
13062         (si_arch): Define.
13063
13064 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
13065
13066         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
13067         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
13068         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
13069         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
13070         (__memset_zero_constant_len_parameter): New.
13071         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
13072         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
13073         (__memset_zero_constant_len_parameter): Don't define if
13074         __memset_chk or USE_AS_BZERO are defined.
13075
13076         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
13077         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
13078         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
13079
13080         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
13081         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
13082         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
13083         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
13084         comments.
13085         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
13086         -mno-mmx for $(all-rtld-routines).
13087         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
13088         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
13089         i386.
13090
13091 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
13092
13093         * sysdeps/generic/unwind.h
13094         (_Unwind_Word): Use __mode__(__unwind_word__)
13095         instead of __mode__(__word__).
13096         (_Unwind_Sword): Likewise.
13097
13098         * sysdeps/s390/s390-64/utf8-utf16-z9.c
13099         (MAX_NEEDED_INPUT): New define.
13100         (MAX_NEEDED_OUTPUT): New define.
13101
13102         * NEWS: New item for IBM z13 string optimizations.
13103
13104         * sysdeps/s390/multiarch/memrchr-c.c: New File.
13105         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
13106         * sysdeps/s390/multiarch/memrchr.c: Likewise.
13107         * sysdeps/s390/multiarch/Makefile
13108         (sysdep_routines): Add memrchr functions.
13109         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13110         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
13111
13112         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
13113         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
13114         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
13115         * sysdeps/s390/multiarch/Makefile
13116         (sysdep_routines): Add wmemcmp functions.
13117         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13118         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
13119         * benchtests/bench-wmemcmp.c: New File.
13120         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
13121
13122         * sysdeps/s390/multiarch/wmemset-c.c: New File.
13123         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
13124         * sysdeps/s390/multiarch/wmemset.c: Likewise.
13125         * sysdeps/s390/multiarch/Makefile
13126         (sysdep_routines): Add wmemset functions.
13127         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13128         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
13129         * wcsmbs/wmemset.c: Use WMEMSET if defined.
13130         * string/test-memset.c: Add wmemset support.
13131         * wcsmbs/test-wmemset.c: New File.
13132         * wcsmbs/Makefile (strop-tests): Add wmemset.
13133         * benchtests/bench-memset.c: Add wmemset support.
13134         * benchtests/bench-wmemset.c: New File.
13135         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
13136
13137         * sysdeps/s390/multiarch/memccpy-c.c: New File.
13138         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
13139         * sysdeps/s390/multiarch/memccpy.c: Likewise.
13140         * sysdeps/s390/multiarch/Makefile
13141         (sysdep_routines): Add memccpy functions.
13142         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13143         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
13144         * string/memccpy.c: Use MEMCCPY if defined.
13145
13146         * sysdeps/s390/multiarch/memchr-vx.S: New File.
13147         * sysdeps/s390/multiarch/memchr.c: Likewise.
13148         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
13149         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
13150         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
13151         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
13152         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
13153         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
13154         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
13155         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
13156         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
13157         and rawmemchr functions.
13158         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13159         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
13160         and wmemchr.
13161         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
13162         * string/test-memchr.c: Add wmemchr support.
13163         * wcsmbs/test-wmemchr.c: New File.
13164         * wcsmbs/Makefile (strop-tests): Add wmemchr.
13165         * benchtests/bench-memchr.c: Add wmemchr support.
13166         * benchtests/bench-wmemchr.c: New File.
13167         * benchtests/Makefile (wcsmbs-bench): wmemchr.
13168
13169         * sysdeps/s390/multiarch/strcspn-c.c: New File.
13170         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
13171         * sysdeps/s390/multiarch/strcspn.c: Likewise.
13172         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
13173         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
13174         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
13175         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
13176         wcscspn functions.
13177         * sysdeps/s390/multiarch/ifunc-impl-list.c
13178         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
13179         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
13180         * string/test-strcspn.c: Add wcscspn support.
13181         * wcsmbs/test-wcscspn.c: New File.
13182         * wcsmbs/Makefile (strop-tests): Add wcscspn.
13183         * benchtests/bench-strcspn.c: Add wcscspn support.
13184         * benchtests/bench-wcscspn.c: New File.
13185         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
13186
13187         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
13188         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
13189         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
13190         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
13191         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
13192         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
13193         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
13194         wcspbrk functions.
13195         * sysdeps/s390/multiarch/ifunc-impl-list.c
13196         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
13197         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
13198         * string/test-strpbrk.c: Add wcspbrk support.
13199         * wcsmbs/test-wcspbrk.c: New File.
13200         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
13201         * benchtests/bench-strpbrk.c: Add wcspbrk support.
13202         * benchtests/bench-wcspbrk.c: New File.
13203         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
13204
13205         * sysdeps/s390/multiarch/strspn-c.c: New File.
13206         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
13207         * sysdeps/s390/multiarch/strspn.c: Likewise.
13208         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
13209         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
13210         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
13211         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
13212         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
13213         wcsspn functions.
13214         * sysdeps/s390/multiarch/ifunc-impl-list.c
13215         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
13216         * string/test-strspn.c: Add wcsspn support.
13217         * wcsmbs/test-wcsspn.c: New File.
13218         * wcsmbs/Makefile (strop-tests): Add wcsspn.
13219         * benchtests/bench-strspn.c: Add wcsspn support.
13220         * benchtests/bench-wcsspn.c: New File.
13221         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
13222
13223         * sysdeps/s390/multiarch/strrchr-c.c: New File.
13224         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
13225         * sysdeps/s390/multiarch/strrchr.c: Likewise.
13226         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
13227         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
13228         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
13229         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
13230         wcsrchr functions.
13231         * sysdeps/s390/multiarch/ifunc-impl-list.c
13232         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
13233         * benchtests/bench-wcsrchr.c: New File.
13234         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
13235
13236         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
13237         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
13238         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
13239         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
13240         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
13241         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
13242         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
13243         wcschrnul functions.
13244         * sysdeps/s390/multiarch/ifunc-impl-list.c
13245         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
13246         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
13247         * string/test-strchr.c: Add wcschrnul support.
13248         * wcsmbs/test-wcschrnul.c: New File.
13249         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
13250         * benchtests/bench-strchr.c: Add wcschrnul support.
13251         * benchtests/bench-wcschrnul.c: New File.
13252         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
13253
13254         * sysdeps/s390/multiarch/strchr-c.c: New File.
13255         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
13256         * sysdeps/s390/multiarch/strchr.c: Likewise.
13257         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
13258         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
13259         * sysdeps/s390/multiarch/wcschr.c: Likewise.
13260         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
13261         wcschr functions.
13262         * sysdeps/s390/multiarch/ifunc-impl-list.c
13263         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
13264         * string/strchr.c (STRCHR): Define and use macro.
13265         * benchtests/bench-wcschr.c: New File.
13266         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
13267
13268         * sysdeps/s390/multiarch/strncmp-c.c: New File.
13269         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
13270         * sysdeps/s390/multiarch/strncmp.c: Likewise.
13271         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
13272         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
13273         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
13274         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
13275         wcsncmp functions.
13276         * sysdeps/s390/multiarch/ifunc-impl-list.c
13277         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
13278         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
13279         * benchtests/bench-strncmp.c: Add wcsncmp support.
13280         * benchtests/bench-wcsncmp.c: New File.
13281         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
13282
13283         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
13284         * sysdeps/s390/multiarch/strcmp.c: Likewise.
13285         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
13286         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
13287         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
13288         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
13289         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
13290         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
13291         wcscmp functions.
13292         * sysdeps/s390/multiarch/ifunc-impl-list.c
13293         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
13294         * string/strcmp.c (STRCMP): Define and use macro.
13295         * benchtests/bench-wcscmp.c: New File.
13296         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
13297         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
13298         instead of _HAVE_STRING_ARCH_memchr.
13299
13300         * sysdeps/s390/multiarch/strncat-c.c: New File.
13301         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
13302         * sysdeps/s390/multiarch/strncat.c: Likewise.
13303         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
13304         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
13305         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
13306         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
13307         wcsncat functions.
13308         * sysdeps/s390/multiarch/ifunc-impl-list.c
13309         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
13310         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
13311         * string/test-strncat.c: Add wcsncat support.
13312         * wcsmbs/test-wcsncat.c: New File.
13313         * wcsmbs/Makefile (strop-tests): Add wcsncat.
13314         * benchtests/bench-strncat.c: Add wcsncat support.
13315         * benchtests/bench-wcsncat.c: New File.
13316         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
13317
13318         * sysdeps/s390/multiarch/strcat-c.c: New File.
13319         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
13320         * sysdeps/s390/multiarch/strcat.c: Likewise.
13321         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
13322         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
13323         * sysdeps/s390/multiarch/wcscat.c: Likewise.
13324         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
13325         wcscat functions.
13326         * sysdeps/s390/multiarch/ifunc-impl-list.c
13327         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
13328         * string/strcat.c (STRCAT): Define and use macro.
13329         * wcsmbs/wcscat.c: Use WCSCAT if defined.
13330         * string/test-strcat.c: Add wcscat support.
13331         * wcsmbs/test-wcscat.c: New File.
13332         * wcsmbs/Makefile (strop-tests): Add wcscat.
13333         * benchtests/bench-strcat.c: Add wcscat support.
13334         * benchtests/bench-wcscat.c: New File.
13335         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
13336
13337         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
13338         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
13339         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
13340         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
13341         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
13342         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
13343         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
13344         wcpncpy functions.
13345         * sysdeps/s390/multiarch/ifunc-impl-list.c
13346         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
13347         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
13348         * string/test-stpncpy.c: Add wcpncpy support.
13349         * wcsmbs/test-wcpncpy.c: New File.
13350         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
13351         * benchtests/bench-stpncpy.c: Add wcpncpy support.
13352         * benchtests/bench-wcpncpy.c: New File.
13353         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
13354
13355         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
13356         * sysdeps/s390/multiarch/strncpy.c: Likewise.
13357         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
13358         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
13359         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
13360         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
13361         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
13362         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
13363         wcsncpy functions.
13364         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
13365         * sysdeps/s390/multiarch/ifunc-impl-list.c
13366         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
13367         * string/test-strncpy.c: Add wcsncpy support.
13368         * wcsmbs/test-wcsncpy.c: New File.
13369         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
13370         * benchtests/bench-strncpy.c: Add wcsncpy support.
13371         * benchtests/bench-wcsncpy.c: New File.
13372         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
13373
13374         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
13375         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
13376         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
13377         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
13378         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
13379         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
13380         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
13381         wcpcpy functions.
13382         * string/stpcpy.c: Use STPCPY if defined.
13383         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
13384         * sysdeps/s390/multiarch/ifunc-impl-list.c
13385         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
13386         * string/test-stpcpy.c: Add wcpcpy support.
13387         * wcsmbs/test-wcpcpy.c: New File.
13388         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
13389         * benchtests/bench-stpcpy.c: Add wcpcpy support.
13390         * benchtests/bench-wcpcpy.c: New File.
13391         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
13392
13393         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
13394         * sysdeps/s390/multiarch/strcpy.c: Likewise.
13395         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
13396         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
13397         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
13398         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
13399         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
13400         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
13401         wcscpy functions.
13402         * sysdeps/s390/multiarch/ifunc-impl-list.c
13403         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
13404         * benchtests/bench-wcscpy.c: New File.
13405         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
13406
13407         * sysdeps/s390/multiarch/strnlen-c.c: New File.
13408         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
13409         * sysdeps/s390/multiarch/strnlen.c: Likewise.
13410         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
13411         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
13412         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
13413         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
13414         wcsnlen functions.
13415         * sysdeps/s390/multiarch/ifunc-impl-list.c
13416         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
13417         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
13418         * string/test-strnlen.c: Add wcsnlen support.
13419         * wcsmbs/test-wcsnlen.c: New File.
13420         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
13421         * benchtests/bench-strnlen.c: Add wcsnlen support.
13422         * benchtests/bench-wcsnlen.c: New File.
13423         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
13424
13425         * sysdeps/s390/multiarch/Makefile: New File.
13426         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
13427         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
13428         * sysdeps/s390/multiarch/strlen.c: Likewise.
13429         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
13430         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
13431         * sysdeps/s390/multiarch/wcslen.c: Likewise.
13432         * string/strlen.c (STRLEN): Define and use macro.
13433         * sysdeps/s390/multiarch/ifunc-impl-list.c
13434         (IFUNC_VX_IMPL): New macro function.
13435         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
13436         * benchtests/Makefile (wcsmbs-bench): New variable.
13437         (string-bench-all): Added wcsmbs-bench.
13438         * benchtests/bench-wcslen.c: New File.
13439
13440         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
13441         s390_vx_libc_ifunc2): New macro function.
13442
13443         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
13444         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
13445         assembler support.
13446         * sysdeps/s390/configure: Regenerated.
13447
13448         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
13449         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
13450
13451         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
13452         * sysdeps/s390/dl-procinfo.h: Add vector capability.
13453         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
13454
13455         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
13456         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
13457         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
13458         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
13459         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
13460         (memcmp, bcmp): Use __memcmp_default as alias source.
13461         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
13462         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
13463         Rename to __memcmp_default.
13464         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
13465         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
13466         (memcpy): Use __memcpy_default as alias source.
13467         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
13468         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
13469         Rename to __memcpy_default.
13470         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
13471         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
13472         (memset): Use __memset_default as alias source.
13473         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
13474         * sysdeps/s390/s390-32/memset.S (__memset_g5):
13475         Rename to __memset_default.
13476         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
13477         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
13478         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
13479         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
13480         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
13481         (memcmp, bcmp): Use __memcmp_default as alias source.
13482         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
13483         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
13484         Rename to __memcmp_default.
13485         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
13486         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
13487         (memcpy): Use __memcpy_default as alias source.
13488         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
13489         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
13490         Rename to __memcpy_default.
13491         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
13492         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
13493         (memset): Use __memset_default as alias source.
13494         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
13495         * sysdeps/s390/s390-64/memset.S (__memset_z900):
13496         Rename to __memset_default.
13497         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
13498         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
13499
13500         [BZ #18610]
13501         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
13502         __ieee_instruction_pointer to __unused.
13503         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
13504         __ieee_instruction_pointer.
13505         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
13506         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
13507         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13508         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13509         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
13510         Mark dxc-field as reserved.
13511
13512 2015-08-25  Roland McGrath  <roland@hack.frob.com>
13513
13514         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
13515         if the weak reference is not null.
13516
13517 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13518
13519         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
13520
13521         [BZ #11214]
13522         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
13523
13524 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13525
13526         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
13527         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
13528         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
13529         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
13530         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
13531         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
13532         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
13533         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
13534         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
13535         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
13536         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
13537         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
13538         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
13539         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
13540         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
13541         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
13542         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
13543         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
13544
13545 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13546
13547         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
13548         register other than r0 for tabort, it has special meaning.
13549         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
13550         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
13551         transaction before starting syscall.
13552
13553 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13554
13555         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
13556
13557 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13558
13559         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
13560
13561         * sysdeps/x86_64/rtld-memcmp.c: Removed.
13562         * sysdeps/x86_64/rtld-memset.S: Likewise.
13563         * sysdeps/x86_64/rtld-strchr.S: Likewise.
13564         * sysdeps/x86_64/rtld-strlen.S: Likewise.
13565         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
13566         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
13567
13568         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
13569
13570 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
13571
13572         * debug/strcpy_chk.c: Improve performance.
13573         * debug/stpcpy_chk.c: Likewise.
13574         * sysdeps/x86_64/strcpy_chk.S: Remove.
13575         * sysdeps/x86_64/stpcpy_chk.S: Remove.
13576
13577         [BZ #18240]
13578         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
13579
13580 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13581
13582         [BZ #15128]
13583         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
13584         ifuncmain8.
13585         (modules-names): Add ifuncmod8.
13586         ($(objpfx)ifuncmain8): New rule.
13587         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
13588         <cpuid.h>.
13589         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
13590         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
13591         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
13592         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
13593         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
13594         * sysdeps/x86_64/dl-trampoline.h: Likewise.
13595         * sysdeps/x86_64/ifuncmain8.c: New file.
13596         * sysdeps/x86_64/ifuncmod8.c: Likewise.
13597         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
13598         Removed.
13599         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
13600         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
13601         Change rtld_savespace_sse to __glibc_unused2.
13602         (RTLD_CHECK_FOREIGN_CALL): Removed.
13603         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
13604         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
13605         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
13606
13607 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13608
13609         * sysdeps/aarch64/bzero.S (__bzero): Remove.
13610
13611 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13612
13613         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
13614         Unconditionally set __fpcr to avoid uninialized warning.
13615         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
13616
13617 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13618
13619         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
13620         is corrupt.
13621
13622         * malloc/arena.c (arena_get2): Drop unused argument.
13623         (arena_lock): Adjust.
13624         (arena_get_retry): Likewise.
13625
13626 2015-08-24  Andreas Schwab  <schwab@suse.de>
13627
13628         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13629         Don't define.
13630         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13631         (__ASSUME_IPC64): Don't undef.
13632         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13633         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13634         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13635         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13636         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13637         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13638         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13639         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13640         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13641         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13642         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13643         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13644         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13645         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13646         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13647         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13648         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13649         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13650         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13651         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13652         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13653
13654 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13655
13656         * manual/Makefile (install): Only build manual when perl is available.
13657
13658 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13659
13660         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13661         '#undef memcpy' by '#undef memchr'.
13662
13663 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13664
13665         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13666         memchr not point to the internal __GI_memchr implementation.
13667
13668 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13669
13670         * timezone/Makefile (CFLAGS-zdump.c): Remove
13671         -Wno-strict-prototypes.
13672         (CFLAGS-zic.c): Likewise.
13673         (CFLAGS-ialloc.c): Likewise.
13674         (CFLAGS-scheck.c): Likewise.
13675
13676         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13677         -Wno-error=undef.
13678
13679 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13680
13681         * i386/i686/multiarch/strcasestr-c.c: Removed.
13682         * x86_64/multiarch/strcasestr.c: Likewise.
13683         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13684         Remove strcasestr.
13685
13686 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13687
13688         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13689
13690         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13691         variables for high and low parts before possibly modifying them.
13692
13693 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13694
13695         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13696         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13697         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13698         of "multiarch/init-arch.h".
13699         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13700         * sysdeps/x86/init-arch.h: This.
13701
13702 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13703
13704         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13705         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13706
13707 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13708
13709         [BZ #17787]
13710         * manual/macros.texi: Add twoexp macro.
13711         * manual/filesys.texi: Fix exponents.
13712         * manual/llio.texi: Likewise.
13713         * manual/stdio.texi: Likewise.
13714
13715 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13716
13717         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13718         incorrect use.
13719
13720 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13721
13722         [BZ #18370]
13723         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13724         whose real or imaginary part has small absolute value.
13725         * math/s_csqrtf.c (__csqrtf): Likewise.
13726         * math/s_csqrtl.c (__csqrtl): Likewise.
13727         * math/auto-libm-test-in: Add more tests of csqrt.
13728         * math/auto-libm-test-out: Regenerated.
13729         * sysdeps/i386/fpu/libm-test-ulps: Update.
13730
13731 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13732
13733         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13734         __ppc_set_ppr_very_low): New functions.
13735         * manual/platform.texi: Add documentation about
13736         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13737
13738 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13739
13740         * string/stpncpy.c (stpncpy): Improve performance using
13741         __strnlen/memcpy/memset.
13742
13743 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13744
13745         [BZ #18796]
13746         * scripts/test-installation.pl: Don't add -lmvec to build options if
13747         libmvec wasn't built.
13748
13749 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13750
13751         [BZ #14341]
13752         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13753         case when there is a gap between DT_REL and DT_JMPREL sections.
13754         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13755         (LDFLAGS-tst-split-dynreloc): New.
13756         (tst-split-dynreloc-ENV): Likewise.
13757         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13758         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13759
13760 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13761
13762         [BZ #18822]
13763         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13764         attribute_hidden.
13765         (__xstat64_conv): Likewise.
13766         (__xstat32_conv): Likewise.
13767
13768 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13769
13770         [BZ #18822]
13771         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13772         Don't load %ebx when calling __setcontext.  Call __setcontext
13773         with HIDDEN_JUMPTARGET.
13774         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13775         libc_hidden_def.
13776
13777 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13778
13779         * sysdeps/i386/i686/Makefile
13780         [$(subdir) == string] (sysdep_routines): Moved to ...
13781         * sysdeps/i386/Makefile: Here.
13782         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13783         * sysdeps/i386/cacheinfo.c: Here.
13784         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13785         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13786         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13787         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13788
13789 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13790
13791         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13792         __i586__ is defined.
13793         (HAS_I686): Defined to 1 if __i686__ is defined.
13794
13795 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13796
13797         * elf/Makefile [$(have-z-execstack) = yes]
13798         (CPPFLAGS-tst-execstack.c): New variable.
13799
13800         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13801         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13802         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13803         UTMPX || _HAVE_UT_TV].
13804         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13805         UTMPX || _HAVE_UT_TV - 0].
13806
13807 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13808
13809         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13810         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13811         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13812
13813 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13814
13815         * sysdeps/powerpc/dl-procinfo.c:
13816         (_dl_powerpc_cap_flags): Added missing strings for some
13817         hwcap features.
13818         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13819
13820 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13821
13822         Port the 0x7efe...feff pattern to GCC 6.
13823         See Steve Ellcey's bug report in:
13824         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13825         * string/memrchr.c (MEMRCHR):
13826         * string/rawmemchr.c (RAWMEMCHR):
13827         * string/strchr.c (strchr):
13828         * string/strchrnul.c (STRCHRNUL):
13829         Rewrite code to avoid issues with signed shift overflow.
13830
13831 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13832
13833         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13834         whether cpuid is available only if HAS_CPUID is 0.
13835         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13836         (HAS_I586): Likewise.
13837         (HAS_I686): Likewise.
13838
13839 2015-08-18  Zack Weinberg  <zackw@panix.com>
13840
13841         * misc/Versions (libc): Add GLIBC_2.23.
13842
13843 2015-08-18  Alan Modra  <amodra@gmail.com>
13844
13845         [BZ #18421]
13846         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13847         .Lp__global.
13848         (_start): Load %dp via .Lp__global.
13849         [!SHARED]: Use .section .rodata.
13850
13851 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13852
13853         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13854         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13855
13856 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13857
13858         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13859         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13860
13861 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13862
13863         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13864         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13865
13866 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13867
13868         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13869         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13870
13871 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13872
13873         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13874         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13875
13876 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13877
13878         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13879         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13880
13881 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13882
13883         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13884
13885 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13886
13887         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13888         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13889         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13890         (__ASSUME_LWS_CAS): Delete.
13891
13892 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13893
13894         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13895         * sysdeps/hppa/configure: Regenerated.
13896         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13897         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13898         * sysdeps/hppa/nptl/tls.h: Likewise.
13899
13900 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13901
13902         [BZ #18823]
13903         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13904         for scaling up small arguments.
13905         * math/s_csqrtf.c (__csqrtf): Likewise.
13906         * math/s_csqrtl.c (__csqrtl): Likewise.
13907         * math/auto-libm-test-in: Add more tests of csqrt.
13908         * math/auto-libm-test-out: Regenerated.
13909
13910 2015-08-17  Andreas Schwab  <schwab@suse.de>
13911
13912         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13913         version set GLIBC_2.19.
13914
13915 2015-08-16  Zack Weinberg  <zackw@panix.com>
13916
13917         [BZ #18681]
13918         * misc/regexp.h: This interface is no longer supported.
13919         Remove all contents, leaving only an #error directive.
13920         * misc/regexp.c (loc1, loc2, locs, step, advance):
13921         Demote to compatibility symbols.
13922
13923 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13924
13925         [BZ #18084]
13926         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13927         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13928         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13929         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13930         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13931         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13932         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13933         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13934         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13935
13936 2015-08-15  Zack Weinberg  <zackw@panix.com>
13937
13938         [BZ #18795]
13939         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13940         buffer length is known to be too large, not if it's known to be
13941         small enough.
13942         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13943         overflow at runtime, involving a length parameter, twice: once
13944         with a compile-time constant length parameter, once without.
13945
13946 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13947
13948         [BZ #18824]
13949         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13950         scaling x * y up instead of down.
13951         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13952         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13953         * math/auto-libm-test-in: Add more tests of fma.
13954         * math/auto-libm-test-out: Regenerated.
13955
13956 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13957
13958         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13959
13960 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13961
13962         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13963         unnecessary movq.
13964         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13965         Likewise.
13966
13967 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13968
13969         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13970         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13971         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13972         and tgamma.
13973         * math/auto-libm-test-out: Regenerated.
13974         * sysdeps/i386/fpu/libm-test-ulps: Update.
13975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13976
13977         [BZ #16520]
13978         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13979         (__tanh): Force underflow exception for arguments with small
13980         absolute value.
13981         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13982         (__tanhf): Force underflow exception for arguments with small
13983         absolute value.
13984         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13985         (__tanhl): Force underflow exception for arguments with small
13986         absolute value.
13987         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13988         (__tanhl): Force underflow exception for arguments with small
13989         absolute value.
13990         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13991         (__tanhl): Force underflow exception for arguments with small
13992         absolute value.
13993         * math/auto-libm-test-in: Add more tests of tanh.
13994         * math/auto-libm-test-out: Regenerated.
13995         * sysdeps/i386/fpu/libm-test-ulps: Update.
13996
13997 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13998
13999         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
14000         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
14001
14002 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14003
14004         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
14005         <cpuid.h>.
14006
14007 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14008
14009         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
14010         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
14011
14012 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14013
14014         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
14015         Remove $(objpfx)init-arch.o.
14016         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
14017         init-arch.
14018         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
14019         (INIT_ARCH_EXT): Defined as empty.
14020         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
14021         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
14022         __init_cpu_features call.  Replace HAS_XXX with
14023         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14024         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
14025         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
14026         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
14027         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
14028         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14029         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
14030         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
14031         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14032         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
14033         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
14034         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14035         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
14036         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
14037         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14038         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
14039         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
14040         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14041         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14042         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
14043         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
14044         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14045         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
14046         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
14047         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14048         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
14049         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
14050         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14051         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
14052         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
14053         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14054         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
14055         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
14056         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14057         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
14058         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
14059
14060 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14061
14062         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
14063         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14064         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
14065         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
14066         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
14067         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
14068         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
14069         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
14070         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
14071         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
14072         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
14073         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
14074         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14075         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14076         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14077         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14078         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14079         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14080         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14081         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14082         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14083         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14084         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14085         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14086         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14087         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14088         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14089         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14090         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14091         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14092         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14093         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14094         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14095         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14096         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14097         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14098         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14099         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14100         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14101         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14102         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14103         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14104         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14105
14106 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14107
14108         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
14109         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14110         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14111         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14112         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14113         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
14114         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14115         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
14116         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14117         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14118         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14119         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
14120         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
14121         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
14122         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
14123         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
14124         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
14125         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
14126         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
14127         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
14128         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
14129         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
14130         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
14131         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14132         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14133         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
14134         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
14135         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
14136         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14137         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
14138         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
14139         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
14140         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
14141         * sysdeps/x86_64/multiarch/memset.S: Likewise.
14142         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
14143         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
14144         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
14145         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14146         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
14147         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
14148         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
14149         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
14150         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
14151
14152 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14153
14154         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
14155         (dl_platform_init): Call init_cpu_features.
14156         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
14157         * sysdeps/i386/i686/cacheinfo.c
14158         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
14159         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
14160         * sysdeps/i386/i686/multiarch/Versions: Removed.
14161         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
14162         Removed.
14163         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
14164         * sysdeps/unix/sysv/linux/x86/Makefile
14165         (libpthread-sysdep_routines): Remove init-arch.
14166         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
14167         <sysdeps/x86_64/dl-procinfo.c> instead of
14168         sysdeps/generic/dl-procinfo.c>.
14169         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
14170         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
14171         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
14172         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
14173         [$(subdir) == elf] (tests-static): Add
14174         tst-get-cpu-features-static.
14175         * sysdeps/x86/Versions: New file.
14176         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
14177         * sysdeps/x86/cpu-features.c: Likewise.
14178         * sysdeps/x86/cpu-features.h: Likewise.
14179         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
14180         * sysdeps/x86/libc-start.c: Likewise.
14181         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
14182         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
14183         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
14184         * sysdeps/x86_64/dl-procinfo.c: Likewise.
14185         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
14186         Assume USE_MULTIARCH is defined and don't check it.
14187         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
14188         (is_amd): Likewise.
14189         (max_cpuid): Likewise.
14190         (intel_check_word): Likewise.
14191         (__cache_sysconf): Don't call __init_cpu_features.
14192         (__x86_preferred_memory_instruction): Removed.
14193         (init_cacheinfo): Don't call __init_cpu_features. Replace
14194         __cpu_features with GLRO(dl_x86_cpu_features).
14195         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
14196         (dl_platform_init): Call init_cpu_features.
14197         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
14198         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
14199         * sysdeps/x86_64/multiarch/Versions: Removed.
14200         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
14201         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
14202         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
14203         Removed.
14204         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
14205
14206 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14207
14208         [BZ #18820]
14209         * libio/Makefile (test-fmemopen-mem): New test.
14210         * libio/test-fmemopen.c (do_bz18820): New test.
14211         * libio/fmemopen.c (__fmemopen): Fix memory leak.
14212         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
14213
14214 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14215
14216         [BZ #16734]
14217         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
14218         (FREE_BUF): Delete.
14219         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
14220         * libio/genops.c (_IO_setb): Use malloc and free directly.
14221         (_IO_default_doallocate, _IO_default_finish): Likewise.
14222         ( _IO_unbuffer_all): Likewise.
14223         ( libc_freeres_fn): Likewise.
14224         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
14225         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
14226         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
14227         (_IO_wdefault_doallocate): Likewise.
14228
14229 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14230
14231         [BZ #18086]
14232         * sysdeps/posix/nice.c (nice): Restore old errno.
14233         * posix/tst-nice.c (do_test): Add test for BZ #18086.
14234
14235 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
14236
14237         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
14238
14239 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14240
14241         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
14242         __bcopy and add a weak_alias to bcopy.
14243         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
14244         for static build.
14245
14246         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
14247         cleanup macro usage.
14248         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
14249         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
14250         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
14251         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
14252         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
14253         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
14254         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
14255         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14256         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
14257         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
14258         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14259         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
14260         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14261         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
14262         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
14263         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
14264         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
14265         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
14266         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14267
14268         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
14269         libc_hidden_def.
14270         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
14271
14272         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
14273         (sysdep_routines): Add strstr-ppc64.
14274         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
14275
14276 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
14277
14278         [BZ #18778]
14279         * elf/Makefile (tests): Add Add tst-nodelete2.
14280         (modules-names): Add tst-nodelete2mod.
14281         (tst-nodelete2mod.so-no-z-defs): New.
14282         ($(objpfx)tst-nodelete2): Likewise.
14283         ($(objpfx)tst-nodelete2.out): Likewise.
14284         (LDFLAGS-tst-nodelete2): Likewise.
14285         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
14286         out of loop through all loaded libraries.
14287         * elf/tst-nodelete2.c: New file.
14288         * elf/tst-nodelete2mod.c: Likewise.
14289         * elf/tst-znodelete-zlib.cc: Delete.
14290
14291 2015-08-11  Andreas Schwab  <schwab@suse.de>
14292
14293         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
14294         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
14295         (__openat64_nocancel): Likewise.
14296
14297 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
14298
14299         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
14300         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
14301         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
14302         * math/auto-libm-test-out: Regenerated.
14303         * sysdeps/i386/fpu/libm-test-ulps: Update.
14304         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14305
14306 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14307
14308         [BZ #18790]
14309         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
14310         threshold for returning +/- 1.
14311         * math/auto-libm-test-in: Add more tests of tanh.
14312         * math/auto-libm-test-out: Regenerated.
14313         * sysdeps/i386/fpu/libm-test-ulps: Update.
14314
14315 2015-08-10  Andreas Schwab  <schwab@suse.de>
14316
14317         [BZ #18781]
14318         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
14319         MORE_OFLAGS to oflag.
14320         * io/test-lfs.c (do_test): Test openat64.
14321
14322 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14323
14324         [BZ #18789]
14325         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
14326         smaller threshold for returning the argument.
14327         * math/auto-libm-test-in: Add more tests of sinh.
14328         * math/auto-libm-test-out: Regenerated.
14329         * sysdeps/i386/fpu/libm-test-ulps: Update.
14330
14331 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14332
14333         [BZ #18674]
14334         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
14335         break.
14336
14337 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
14338
14339         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
14340         (generated): Don't add $(addprefix z.,$(tzfiles)).
14341
14342 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14343
14344         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
14345         * scripts/sysd-rules.awk: Likewise.
14346
14347 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14348
14349         * iconvdata/tst-tables.sh: Change echo -n to printf.
14350         * nss/db-Makefile: Likewise.
14351         * posix/tst-getconf.sh: Likewise.
14352         * stdio-common/tst-unbputc.sh: Likewise.
14353
14354 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14355
14356         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
14357         MADV_*_PAGES defines behind this feature check.
14358
14359 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
14360
14361         [BZ #18480]
14362         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
14363         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
14364         Define.
14365         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
14366         LOAD_REGS_5, LOAD_REGS_6): Update.
14367         (INTERNAL_SYSCALL): Update using new LOAD defines.
14368         (INTERNAL_SYSCALL_NCS): Likewise.
14369         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
14370
14371 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14372
14373         [BZ #16734]
14374         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
14375
14376 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14377
14378         [BZ #17905]
14379         * catgets/Makefile (tst-catgets-mem): New test.
14380         * catgets/catgets.c (catopen): Don't use unbounded alloca.
14381         * catgets/open_catalog.c (__open_catalog): Likewise.
14382         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
14383
14384 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
14385
14386         [BZ #18787]
14387         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
14388         clobber registers.
14389         (atomic_compare_and_exchange_val_acq): Use register asms to assign
14390         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
14391         Cast return to __typeof (oldval).
14392
14393 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
14394
14395         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
14396         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
14397         and delete sys/syscall.h include.
14398
14399 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
14400
14401         [BZ #16517]
14402         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
14403         (tan): Force underflow exception for arguments with small absolute
14404         value.
14405         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
14406         (__kernel_tanf): Force underflow exception for arguments with
14407         small absolute value.
14408         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
14409         (__kernel_tanl): Force underflow exception for arguments with
14410         small absolute value.
14411         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
14412         (__kernel_tanl): Force underflow exception for arguments with
14413         small absolute value.
14414         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
14415         (__kernel_tanl): Force underflow exception for arguments with
14416         small absolute value.
14417         * math/auto-libm-test-in: Add more tests of tan.
14418         * math/auto-libm-test-out: Regenerated.
14419
14420 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14421
14422         Fix sysdeps/i386/fpu/s_scalbn.S build
14423
14424         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
14425
14426 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
14427
14428         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14429
14430 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14431
14432         Fix gcrt0.o compilation
14433
14434         When static-start-installed-name is different from
14435         start-installed-name, we must not use the shared objects.
14436
14437         * csu/Makefile
14438         (extra-objs): Add gmon-start.o when building shared library and
14439         $(static-start-installed-name) is different from
14440         $(start-installed-name).
14441         $(objpfx)g$(static-start-installed-name): When building shared
14442         library and $(static-start-installed-name) is different from
14443         $(static-start-installed-name), revert to non-shared rule,
14444         i.e. using $(objpfx)% and gmon-start.o.
14445
14446 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
14447
14448         [BZ #16519]
14449         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
14450         (__ieee754_sinh): Force underflow exception for arguments with
14451         small absolute value.
14452         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
14453         (__ieee754_sinhf): Force underflow exception for arguments with
14454         small absolute value.
14455         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
14456         (__ieee754_sinhl): Force underflow exception for arguments with
14457         small absolute value.
14458         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
14459         (__ieee754_sinhl): Force underflow exception for arguments with
14460         small absolute value.
14461         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
14462         (__ieee754_sinhl): Force underflow exception for arguments with
14463         small absolute value.
14464         * math/auto-libm-test-in: Add more tests of sinh.
14465         * math/auto-libm-test-out: Regenerated.
14466         * sysdeps/i386/fpu/libm-test-ulps: Update.
14467
14468 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14469
14470         * libio/oldfileops.c: Include unistd.h.
14471
14472 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
14473
14474         * stdlib/isomac.c: Include ctype.h.
14475
14476 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
14477
14478         * dirent/tst-seekdir.c (main): Converted to ...
14479         (do_test): ... this.
14480         (TEST_FUNCTION): New macro.
14481         Include test-skeleton.c.
14482         * elf/tst-dlmodcount.c (main): Converted to ...
14483         (do_test): ... this.
14484         (TEST_FUNCTION): New macro.
14485         Include test-skeleton.c.
14486         * elf/tst-order-main.c (main): Converted to ...
14487         (do_test): ... this.
14488         (TEST_FUNCTION): New macro.
14489         Include test-skeleton.c.
14490         * elf/tst-pie2.c (main): Converted to ...
14491         (do_test): ... this.
14492         (TEST_FUNCTION): New macro.
14493         Include test-skeleton.c.
14494         * inet/tst-ether_aton.c (main): Converted to ...
14495         (do_test): ... this.
14496         (TEST_FUNCTION): New macro.
14497         Include test-skeleton.c.
14498         * misc/tst-mntent.c (main): Converted to ...
14499         (do_test): ... this.
14500         (TEST_FUNCTION): New macro.
14501         Include test-skeleton.c.
14502         * misc/tst-tsearch.c (main): Converted to ...
14503         (do_test): ... this.
14504         (TEST_FUNCTION): New macro.
14505         Include test-skeleton.c.
14506         * posix/tst-regexloc.c (main): Converted to ...
14507         (do_test): ... this.
14508         (TEST_FUNCTION): New macro.
14509         Include test-skeleton.c.
14510         * resolv/tst-aton.c (main): Converted to ...
14511         (do_test): ... this.
14512         (TEST_FUNCTION): New macro.
14513         Include test-skeleton.c.
14514         * stdio-common/test-fwrite.c (main): Converted to ...
14515         (do_test): ... this.
14516         (TEST_FUNCTION): New macro.
14517         Include test-skeleton.c.
14518         * stdio-common/tst-ferror.c (main): Converted to ...
14519         (do_test): ... this.
14520         (TEST_FUNCTION): New macro.
14521         Include test-skeleton.c.
14522         * stdio-common/tst-printf.c (main): Converted to ...
14523         (do_test): ... this.
14524         (TEST_FUNCTION): New macro.
14525         Include test-skeleton.c.
14526         * stdio-common/tst-printfsz.c (main): Converted to ...
14527         (do_test): ... this.
14528         (TEST_FUNCTION): New macro.
14529         Include test-skeleton.c.
14530         * stdlib/tst-strtod.c (main): Converted to ...
14531         (do_test): ... this.
14532         (TEST_FUNCTION): New macro.
14533         Include test-skeleton.c.
14534         * string/tst-strlen.c (main): Converted to ...
14535         (do_test): ... this.
14536         (TEST_FUNCTION): New macro.
14537         Include test-skeleton.c.
14538         * string/tst-svc.c (main): Converted to ...
14539         (do_test): ... this.
14540         (TEST_FUNCTION): New macro.
14541         Include test-skeleton.c.
14542         * time/tst-strptime.c (main): Converted to ...
14543         (do_test): ... this.
14544         (TEST_FUNCTION): New macro.
14545         Include test-skeleton.c.
14546         * timezone/tst-timezone.c (main): Converted to ...
14547         (do_test): ... this.
14548         (TEST_FUNCTION): New macro.
14549         Include test-skeleton.c.
14550
14551 2015-08-05  Zack Weinberg  <zackw@panix.com>
14552
14553         * misc/regexp.h: Update comments.
14554
14555 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
14556
14557         [BZ #18635]
14558         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
14559         before return label.
14560
14561 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14562
14563         [BZ #18661]
14564         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
14565         when calling __errno_location.
14566         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
14567         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
14568
14569 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14570
14571         [BZ #18661]
14572         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
14573         (__lll_timedwait_tid): Align stack to 16 bytes when calling
14574         __gettimeofday.
14575
14576 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14577
14578         [BZ #18661]
14579         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
14580         (__start_context): Don't use pop to restore %rdi so that stack
14581         is aligned to 16 bytes when calling __setcontext.
14582
14583 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14584
14585         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
14586         only for libc.
14587         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14588
14589 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14590
14591         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
14592         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
14593         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
14594
14595 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14596
14597         * string/memccpy.c (memccpy):
14598         Improve performance by using memchr/memcpy/__mempcpy.
14599
14600 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14601
14602         * string/strncpy.c (strncpy):
14603         Improve performance by using __strnlen/memcpy.
14604
14605 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14606
14607         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
14608         Optimize to avoid an unnecessary FPCR read.
14609
14610 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14611
14612         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
14613         Optimize to reduce FPCR/FPSR accesses.
14614
14615 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14616
14617         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
14618         dead->data[category] != NULL.
14619
14620 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
14621
14622         [BZ #18647]
14623         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14624         and |x| close to 1, use absolute value of x when computing log.
14625         * math/auto-libm-test-in: Add more tests of pow.
14626         * math/auto-libm-test-out: Regenerated.
14627
14628 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14629
14630         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14631         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14632         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14633
14634 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14635
14636         [BZ #18525]
14637         * locales/km_KH: Remove timezone definition.
14638         * locales/lo_LA: Likewise.
14639         * locales/my_MM: Likewise.
14640         * locales/nan_TW@latin: Likewise.
14641         * locales/th_TH: Likewise.
14642         * locales/uk_UA: Likewise.
14643
14644 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14645
14646         [BZ #18265]
14647         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14648         (wcsncat): Likewise.
14649         (wcscmp): Likewise.
14650         (wcsncmp): Likewise.
14651
14652 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14653
14654         * test-skeleton.c (usage): New function.
14655         (main): Call usage when opt is '?'.
14656
14657 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14658
14659         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14660         before first use.
14661
14662 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14663
14664         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14665         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14666         in there too.
14667
14668 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14669
14670         * version.h (RELEASE): Set to "development".
14671         (VERSION): Set to "2.22.90"
14672
14673         * version.h (RELEASE): Set to "stable".
14674         (VERSION): Set to "2.22"
14675         * include/features.h (__GLIBC_MINOR__): Set to 22.
14676
14677 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14678
14679         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14680         Restructure macro to avoid "value computed is not used" warning.
14681         (atomic_compare_and_exchange_val_acq): Likewise.
14682
14683 2015-08-04  Andreas Schwab  <schwab@suse.de>
14684
14685         [BZ #18635]
14686         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14687         ret.
14688         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14689
14690 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14691
14692         * po/pl.po: Updated translation.
14693         * po/uk.po: Likewise.
14694         * po/fi.po: Likewise.
14695         * po/ko.po: Likewise.
14696         * po/ru.po: Likewise.
14697         * po/vi.po: Likewise.
14698
14699 2015-07-31  Zack Weinberg  <zackw@panix.com>
14700
14701         [BZ #18681]
14702         * regexp.h: Add unconditional #warning stating that this header
14703         will be removed soon.  Revise banner comment to match.
14704         (compile): Consistently use ERROR instead of RETURN to report
14705         errors (partial fix for bz#18681).
14706         * regexp.c: Don't include regexp.h. Remove some unnecessary
14707         declarations.
14708
14709 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14710
14711         * po/libc.pot: Regenerated.
14712
14713 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14714
14715         [BZ #18740]
14716         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14717         float-vlen4-arch-ext-cflags): Removed.
14718         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14719         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14720
14721 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14722
14723         [BZ #14113]
14724         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14725         aligned to __aligned__.
14726         (pthread_cond_t, pthread_rwlock_t): Likewise.
14727
14728 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14729
14730         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14731
14732 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14733
14734         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14735         (struct sigaction): Change sa_flags from a long to an int, and add
14736         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14737
14738 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14739
14740         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14741         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14742         sysdeps/generic/sysdep.h include.
14743         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14744         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14745         sysdeps/hppa/sysdep.h.
14746         (ENTRY, PSEUDO): Undefine before defining.
14747
14748 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14749
14750         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14751         from scratch to use INTERNAL_SYSCALL.
14752
14753 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14754
14755         [BZ #18078]
14756         * scripts/check-localplt.awk: Support alternate relocations.
14757         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14758         sections.
14759         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14760         malloc entries with + REL R_386_GLOB_DAT.
14761         * sysdeps/x86_64/localplt.data: New file.
14762
14763 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14764
14765         [BZ #18731]
14766         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14767         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14768         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14769
14770 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14771
14772         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14773
14774 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14775
14776         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14777         directly in terms of __sync_fetch_and_add and delete (int) cast.
14778
14779 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14780
14781         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14782         the -D_ASM_IA64_CURRENT_H flag.
14783
14784 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14785
14786         [BZ #18641]
14787         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14788
14789 2015-07-27  Andreas Schwab  <schwab@suse.de>
14790
14791         * conform/conformtest.pl (checknamespace): Filter out string
14792         literals while tokenizing.
14793
14794 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14795
14796         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14797         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14798         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14799
14800 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14801
14802         * nptl/tst-join7mod.c: Add #include <string.h>.
14803
14804 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14805
14806         * sysdeps/nios2/libm-test-ulps: Update.
14807
14808 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14809
14810         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14811         Fix order of arguments to the rt_sigprocmask syscall.
14812         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14813         Likewise.
14814
14815 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14816
14817         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14818
14819 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14820
14821         [BZ #18457]
14822         * nptl/Makefile (tests): New test case tst-join7.
14823         (modules-names): New test case module tst-join7mod.
14824         * nptl/tst-join7.c: New file.
14825         * nptl/tst-join7mod.c: New file.
14826         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14827         all translation units in libc.so, libpthread.so and rtld.
14828
14829 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14830
14831         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14832
14833 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14834
14835         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14836         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14837         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14838         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14839         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14840         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14841         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14842         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14843         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14844         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14845         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14846         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14847         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14848         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14849         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14850         implementation.
14851
14852 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14853
14854         [BZ #17711]
14855         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14856         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14857         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14858         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14859         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14860         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14861
14862 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14863
14864         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14865         instead of just saying load lock in the comments.
14866
14867 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14868
14869         * sysdeps/unix/Subdirs: Moved ...
14870         * sysdeps/posix/Subdirs: ... here.
14871         * login/pty.h (struct termios, struct winsize): Add forward decls.
14872         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14873         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14874         * sysdeps/arm/nacl/libc.abilist: Updated.
14875         * sysdeps/nacl/libutil.abilist: New file.
14876
14877         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14878         (SIGWINCH): New macro.
14879
14880         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14881         * sysdeps/arm/nacl/libc.abilist: Add it.
14882
14883 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14884
14885         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14886
14887 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14888
14889         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14890         Swap __glibc_reserved0 and sa_flags order.
14891
14892 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14893
14894         [BZ #18657]
14895         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14896         are pending TLS destructor calls.
14897         * include/link.h (struct link_map): Add concurrency note for
14898         L_TLS_DTOR_COUNT.
14899         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14900         Don't touch the link map flag.  Atomically increment
14901         l_tls_dtor_count.
14902         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14903         Avoid taking the load lock and don't touch the link map flag.
14904         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14905         * stdlib/Makefile (tests): Use it.
14906         * stdlib/tst-tls-atexit.c (do_test): dlopen
14907         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14908         to allow tst-tls-atexit-nodelete test case to use it.
14909
14910 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14911
14912         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14913         to bits/types.h.
14914         (msgqnum_t): New typedef.
14915         (msglen_t): Likewise.
14916         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14917         and msg_qbytes type to msglen_t.
14918
14919 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14920
14921         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14922         pad0 to __glibc_reserved0.
14923         (struct stat64): Likewise.
14924
14925 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14926
14927         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14928         Change sa_flags from a long to an int and add __glibc_reserved0 before
14929         it for padding.
14930
14931 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14932
14933         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14934         anonymous by deleting "siginfo" name.
14935
14936 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14937
14938         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14939         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14940         rather than __nacl_irt_filename.
14941         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14942
14943         * NEWS: New item for arm-nacl port.
14944         * sysdeps/arm/nacl/libc.abilist: New file.
14945         * sysdeps/nacl/ld.abilist: New file.
14946         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14947         * sysdeps/nacl/libanl.abilist: New file.
14948         * sysdeps/nacl/libcrypt.abilist: New file.
14949         * sysdeps/nacl/libdl.abilist: New file.
14950         * sysdeps/nacl/libm.abilist: New file.
14951         * sysdeps/nacl/libpthread.abilist: New file.
14952         * sysdeps/nacl/libresolv.abilist: New file.
14953         * sysdeps/nacl/librt.abilist: New file.
14954
14955 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14956
14957         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14958         __startcontext to initialize the new context.
14959         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14960         up CFI directive to forbid further backtracing.
14961
14962 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14963
14964         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14965         reference.
14966         * charmaps/ANSI_X3.4-1968: Likewise.
14967         * charmaps/BS_4730: Likewise.
14968         * charmaps/BS_VIEWDATA: Likewise.
14969         * charmaps/CP1250: Likewise.
14970         * charmaps/CP1251: Likewise.
14971         * charmaps/CP1252: Likewise.
14972         * charmaps/CP1253: Likewise.
14973         * charmaps/CP1254: Likewise.
14974         * charmaps/CP1255: Likewise.
14975         * charmaps/CP1256: Likewise.
14976         * charmaps/CSN_369103: Likewise.
14977         * charmaps/EBCDIC-DK-NO: Likewise.
14978         * charmaps/GB_1988-80: Likewise.
14979         * charmaps/GREEK-CCITT: Likewise.
14980         * charmaps/GREEK7: Likewise.
14981         * charmaps/INIS-8: Likewise.
14982         * charmaps/ISIRI-3342: Likewise.
14983         * charmaps/ISO_2033-1983: Likewise.
14984         * charmaps/ISO_5427-EXT: Likewise.
14985         * locales/POSIX: Likewise.
14986         * locales/ar_SA: Likewise.
14987         * locales/be_BY: Likewise.
14988         * locales/be_BY@latin: Likewise.
14989         * locales/ca_ES: Likewise.
14990         * locales/cs_CZ: Likewise.
14991         * locales/da_DK: Likewise.
14992         * locales/de_BE: Likewise.
14993         * locales/de_CH: Likewise.
14994         * locales/de_LU: Likewise.
14995         * locales/en_AU: Likewise.
14996         * locales/en_BW: Likewise.
14997         * locales/en_CA: Likewise.
14998         * locales/en_DK: Likewise.
14999         * locales/en_GB: Likewise.
15000         * locales/en_IE: Likewise.
15001         * locales/en_NZ: Likewise.
15002         * locales/en_ZA: Likewise.
15003         * locales/en_ZW: Likewise.
15004         * locales/es_AR: Likewise.
15005         * locales/es_BO: Likewise.
15006         * locales/es_CL: Likewise.
15007         * locales/es_CO: Likewise.
15008         * locales/es_DO: Likewise.
15009         * locales/es_EC: Likewise.
15010         * locales/es_ES: Likewise.
15011         * locales/es_HN: Likewise.
15012         * locales/es_MX: Likewise.
15013         * locales/es_PA: Likewise.
15014         * locales/es_PE: Likewise.
15015         * locales/es_PY: Likewise.
15016         * locales/es_SV: Likewise.
15017         * locales/es_US: Likewise.
15018         * locales/es_UY: Likewise.
15019         * locales/es_VE: Likewise.
15020         * locales/et_EE: Likewise.
15021         * locales/fa_IR: Likewise.
15022         * locales/fo_FO: Likewise.
15023         * locales/fr_CA: Likewise.
15024         * locales/fr_CH: Likewise.
15025         * locales/gv_GB: Likewise.
15026         * locales/he_IL: Likewise.
15027         * locales/hr_HR: Likewise.
15028         * locales/id_ID: Likewise.
15029         * locales/is_IS: Likewise.
15030         * locales/it_CH: Likewise.
15031         * locales/iw_IL: Likewise.
15032         * locales/kl_GL: Likewise.
15033         * locales/ko_KR: Likewise.
15034         * locales/kw_GB: Likewise.
15035         * locales/lg_UG: Likewise.
15036         * locales/lt_LT: Likewise.
15037         * locales/lv_LV: Likewise.
15038         * locales/mi_NZ: Likewise.
15039         * locales/nhn_MX: Likewise.
15040         * locales/nl_BE: Likewise.
15041         * locales/pl_PL: Likewise.
15042         * locales/sk_SK: Likewise.
15043         * locales/sl_SI: Likewise.
15044         * locales/sv_FI: Likewise.
15045         * locales/tl_PH: Likewise.
15046         * locales/tr_TR: Likewise.
15047         * locales/vi_VN: Likewise.
15048
15049 2015-07-21  Khem Raj  <raj.khem@gmail.com>
15050
15051         [BZ #17475]
15052         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
15053         of tu_IN and bh_IN.
15054
15055 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
15056
15057         [BZ #18694]
15058         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
15059         bits/wordsize.h.
15060         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
15061
15062 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15063
15064         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
15065         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
15066         (spawn_thread): New function.
15067         (load): Rename to reg_dtor_and_close.  Move dlopen to...
15068         (do_test): ... here.  Use IS_LOADED to test for its
15069         availability.
15070
15071 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
15072
15073         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
15074
15075 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
15076
15077         [BZ #18696]
15078         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
15079         si_addr_bnd.
15080         (si_lower): New.
15081         (si_upper): Likewise.
15082
15083 2015-07-16  David S. Miller  <davem@davemloft.net>
15084
15085         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
15086
15087 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15088
15089         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
15090         buffer.
15091         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
15092         fail output information.
15093
15094 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
15095
15096         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
15097         and strstr-ppc64..
15098         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
15099         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
15100         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
15101         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
15102         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
15103
15104 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15105
15106         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15107         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15108         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15109         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15110
15111 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15112
15113         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
15114         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
15115         rtld_hidden_proto.
15116         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
15117
15118 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15119
15120         * tst-nodelete-opened.c (do_test): Add comment to clarify how
15121         the test can fail.
15122
15123         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
15124
15125         [BZ #18676]
15126         * elf/tst-nodelete-opened.c: New test case.
15127         * elf/tst-nodelete-opened-lib.c: New test case module.
15128         * elf/Makefile (tests, modules-names): Use them.
15129         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
15130         early.
15131
15132 2015-07-15  David S. Miller  <davem@davemloft.net>
15133
15134         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
15135         futex-intenal.h
15136         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
15137         * sysdeps/sparc/sparc64/Makefile: Likewise.
15138         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15139         Remove space from macro define.
15140         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
15141
15142 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
15143
15144         [BZ #17475]
15145         * locale/iso-639.def: Update Bhili and Tulu language codes as
15146         per iso639-3.
15147
15148 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
15149
15150         * elf/tst-leaks1.c (main): Converted to ...
15151         (do_test): ... this.
15152         (TEST_FUNCTION): New macro.
15153         Include test-skeleton.c.
15154         * localedata/tst-langinfo.c (main): Converted to ...
15155         (do_test): ... this.
15156         (TEST_FUNCTION): New macro.
15157         Include test-skeleton.c.
15158         * math/test-fpucw.c (main): Converted to ...
15159         (do_test): ... this.
15160         (TEST_FUNCTION): New macro.
15161         Include test-skeleton.c.
15162         * math/test-tgmath.c (main): Converted to ...
15163         (do_test): ... this.
15164         (TEST_FUNCTION): New macro.
15165         Include test-skeleton.c.
15166         * math/test-tgmath2.c (main): Converted to ...
15167         (do_test): ... this.
15168         (TEST_FUNCTION): New macro.
15169         Include test-skeleton.c.
15170         * setjmp/tst-setjmp.c (main): Converted to ...
15171         (do_test): ... this.
15172         (TEST_FUNCTION): New macro.
15173         Include test-skeleton.c.
15174         * stdio-common/tst-sscanf.c (main): Converted to ...
15175         (do_test): ... this.
15176         (TEST_FUNCTION): New macro.
15177         Include test-skeleton.c.
15178         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
15179         (do_test): ... this.
15180         (TEST_FUNCTION): New macro.
15181         Include test-skeleton.c.
15182
15183         * elf/tst-audit9.c (main): Converted to ...
15184         (do_test): ... this.
15185         (TEST_FUNCTION): New macro.
15186         Include test-skeleton.c.
15187
15188 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
15189
15190         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
15191
15192 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15193
15194         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
15195         New variable.
15196
15197 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15198
15199         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15200
15201 2015-07-14  Roland McGrath  <roland@hack.frob.com>
15202
15203         * sysdeps/generic/dl-fileid.h: New file.
15204         * sysdeps/posix/dl-fileid.h: New file.
15205         * sysdeps/nacl/dl-fileid.h: New file.
15206         * include/link.h: Include <dl-fileid.h>.
15207         (struct link_map): Replace l_dev and l_ino with l_file_id.
15208         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
15209         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
15210         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
15211
15212 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15213
15214         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
15215
15216 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15217
15218         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
15219         Add iff $CXX is set.
15220         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
15221         Likewise.
15222         (tst-nodelete-zmodiff): Likewise.
15223         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
15224
15225 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15226
15227         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
15228
15229 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15230
15231         * sysdeps/aarch64/fpu/math_private.h
15232         (define math_opt_barrier): Add AArch64 version.
15233         (math_force_eval): Likewise.
15234
15235 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15236
15237         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
15238
15239 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
15240
15241         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
15242         %ld with %jd and cast to intmax_t.
15243         (do_test_length_zero): Likewise.
15244
15245 2015-07-10  Roland McGrath  <roland@hack.frob.com>
15246
15247         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
15248
15249 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
15250
15251         * sysdeps/tile/libm-test-ulps: Regenerated.
15252
15253         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
15254         Comment out the whole function, not just its body.
15255
15256 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15257
15258         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
15259         locks.
15260
15261         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
15262
15263 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15264
15265         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
15266         (sem_assume_only_signals_cause_futex_EINTR): Remove.
15267
15268 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15269
15270         * sysdeps/nptl/futex-internal.h: New file.
15271         * sysdeps/nacl/futex-internal.h: New file.
15272         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
15273         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
15274         error checking.
15275         (setxid_unmark_thread): Likewise.
15276         (__nptl_setxid): Likewise.
15277         (__wait_lookup_done): Likewise.
15278         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
15279         * nptl/nptl-init.c (sighandler_setxid): Likewise.
15280         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
15281         * nptl/pthread_once.c (clear_once_control): Likewise.
15282         (__pthread_once_slow): Likewise.
15283         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15284         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
15285         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
15286         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15287         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
15288         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
15289         Likewise.
15290         (__pthread_rwlock_rdlock): Likewise.
15291         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
15292         Likewise.
15293         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
15294         Likewise.
15295         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
15296         Likewise.
15297         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
15298         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
15299         Likewise.
15300         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
15301         __ASSUME_PRIVATE_FUTEX check.
15302         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
15303         Check that shared futexes are supported.
15304         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
15305         wrappers with error checking.
15306         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
15307         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
15308         * nptl/pthread_barrierattr_setpshared.c
15309         (pthread_barrierattr_setpshared): Check that shared futexes are
15310         supported.
15311         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
15312         Likewise.
15313         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
15314         Likewise.
15315         * nptl/sem_init.c (futex_private_if_supported): Remove.
15316         (__new_sem_init): Adapt and check that shared futexes are supported.
15317         * nptl/sem_open.c (sem_open): Likewise.
15318         * nptl/sem_post.c (futex_wake): Remove.
15319         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
15320         (do_futex_wait): Use futex wrappers with error checking.
15321         * nptl/sem_wait.c: Include lowlevellock.h.
15322         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
15323         Use futex_supports_pshared.
15324         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
15325         Use futex wrappers with error checking.
15326         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
15327         Likewise.
15328         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
15329         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
15330         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
15331         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
15332         (futex_wake): Likewise.
15333         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
15334         (do_futex_wait): Use futex wrappers with error checking.
15335         (__new_sem_wait_slow): Update EINTR handling.
15336         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
15337
15338 2015-07-09  Martin Sebor  <msebor@redhat.com>
15339
15340         [BZ #18435]
15341         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15342         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
15343         * nptl/Makefile (test-xfail-tst-once5): Define.
15344
15345 2015-07-09  Roland McGrath  <roland@hack.frob.com>
15346
15347         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
15348         * elf/dl-minimal.c: For readability, reorder some definitions and
15349         introduce more page breaks.  Include <stdio.h>.
15350         (__libc_fatal): New function.
15351
15352         * include/unistd.h: Add rtld_hidden_proto for _exit.
15353         * posix/_exit.c: Add rtld_hidden_def.
15354         * sysdeps/mach/hurd/_exit.c: Likewise.
15355         * sysdeps/nacl/_exit.c: Likewise.
15356         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
15357         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
15358
15359 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15360
15361         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
15362         bndmov encoding with zero displacement.
15363
15364 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
15365             H.J. Lu  <hongjiu.lu@intel.com>
15366
15367         [BZ #18134]
15368         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
15369         * sysdeps/i386/configure: Regenerated.
15370         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
15371         (_dl_runtime_profile): Save and restore Intel MPX return bound
15372         registers when calling _dl_call_pltexit.  Add
15373         PRESERVE_BND_REGS_PREFIX before return.
15374         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
15375         (LRV_BND1_OFFSET): Likewise.
15376         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
15377         lrv_bnd1.
15378         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
15379         typo in bndmov encoding.
15380         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
15381         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
15382         branch instructions to preserve bounds.
15383
15384 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15385
15386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
15387         [GLIBC_2.22]: Add fmemopen.
15388
15389 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15390
15391         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
15392         returns an error, also try to use host port from __mach_host_self for
15393         the __vm_wire call.
15394         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
15395
15396 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15397
15398         [BZ #18400]
15399         [BZ #18648]
15400         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
15401         Fix pr_uid and pr_gid members.
15402         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
15403         definition to elf_greg_t.
15404
15405 2015-07-08  Roland McGrath  <roland@hack.frob.com>
15406
15407         [BZ #18383]
15408         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
15409         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
15410         * sysdeps/arm/configure: Regenerated.
15411         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
15412         (test-xfail-tst-tlsalign-static): Variable removed.
15413
15414         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
15415         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
15416         rather than explicit 'ln -s'.
15417
15418         * resolv/rpc/netdb.h: New file.
15419         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
15420
15421 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15422
15423         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
15424         length buffers.
15425         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
15426         test-skeleton.c.
15427
15428         [BZ #6544]
15429         [BZ #11216]
15430         [BZ #12836]
15431         [BZ #13151]
15432         [BZ #13152]
15433         [BZ #14292]
15434         * include/stdio.h (fmemopen): Remove hidden prototype.
15435         (__fmemopen): Add new hidden prototype.
15436         * libio/Makefile: Add oldfmemopen object.
15437         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
15438         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
15439         compliance.
15440         * libio/oldfmemopen.c: New file: old fmemopen implementation for
15441         symbol compatibility.
15442         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
15443         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
15444         fmemopen.
15445         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
15446         on append and read mode.
15447         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
15448         fmemopen.
15449         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
15450         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
15451         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
15452         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
15453         Likewise.
15454         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
15455         [GLIBC_2.22]: Likewise.
15456         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
15457         Likewise.
15458         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
15459         Likewise.
15460         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
15461         [GLIBC_2.22]: Likewise.
15462         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
15463         [GLIBC_2.22]: Likewise.
15464         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
15465         [GLIBC_2.22]: Likewise.
15466         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
15467         [GLIBC_2.22]: Likewise.
15468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
15469         [GLIBC_2.22]: Likewise.
15470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
15471         [GLIBC_2.22]: Likewise.
15472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
15473         [GLIBC_2.22]: Likewise.
15474         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
15475         Likewise.
15476         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
15477         Likewise.
15478         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
15479         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
15480         [GLIBC_2.22]: Likewise.
15481         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
15482         [GLIBC_2.22]: Likewise.
15483         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
15484         [GLIBC_2.22]: Likewise.
15485         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
15486         [GLIBC_2.22]: Likewise.
15487         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
15488         Likewise.
15489         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
15490         Likewise.
15491         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
15492         Likewise.
15493         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
15494         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
15495
15496 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15497
15498         [BZ #18643]
15499         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
15500         IPV6_PATHMTU, and IPV6_DONTFRAG.
15501
15502 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
15503
15504         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
15505         and _IO_UNBUFFERED.
15506         * libio/oldfileops.c: Likewise.
15507         * libio/wfileops.c: Likewise.
15508
15509 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15510
15511         * nscd/selinux.c: Delete selinux/flask.h include.
15512
15513 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15514
15515         [BZ #18641]
15516         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
15517         (putpwent): Likewise.
15518         (getpwnam): Likewise.
15519         (getpwent_r): Likewise.
15520         (getpwuid_r): Likewise.
15521         (getpwnam_r): Likewise.
15522         (fgetpwent_r): Likewise.
15523
15524 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15525
15526         [BZ #18557]
15527         * inet/rcmd.c (__validuser2_sa): Check user first to
15528         short-circuit host check.
15529
15530 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
15531             Mikhail Ilin  <m.ilin@samsung.com>
15532
15533         [BZ #17833]
15534         * elf/Makefile (tests): Add tst-nodelete.
15535         (modules-names): Add tst-nodelete-uniquemod.
15536         (tst-nodelete-uniquemod.so-no-z-defs): New.
15537         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
15538         (tst-nodelete-zmod.so-no-z-defs): Likewise.
15539         ($(objpfx)tst-nodelete): Likewise.
15540         ($(objpfx)tst-nodelete.out): Likewise.
15541         (LDFLAGS-tst-nodelete): Likewise.
15542         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
15543         * elf/dl-close.c (_dl_close_worker): Add a parameter to
15544         implement forced object deletion.
15545         (_dl_close): Pass false to _dl_close_worker.
15546         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
15547         * elf/tst-nodelete.cc: New file.
15548         * elf/tst-nodeletelib.cc: Likewise.
15549         * elf/tst-znodeletelib.cc: Likewise.
15550         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
15551
15552 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15553
15554         [BZ #18508]
15555         * stdlib/Makefile ($(objpfx)tst-makecontext3):
15556         Depend on $(libdl).
15557         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
15558         is not called infinitely times.
15559         (backtrace_helper): New function.
15560         (trace_arg): New struct.
15561         (st1): Enlarge stack size.
15562         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15563         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
15564         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15565         Likewise.
15566
15567 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15568
15569         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15570
15571 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15572
15573         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
15574         Include sys/types.h instead of bits/types.h.
15575         Remove inclusion of bits/wordsize.h.
15576
15577 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15578
15579         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
15580         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
15581         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
15582         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
15583         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
15584         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
15585
15586 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15587
15588         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
15589         link-defines.sym.
15590         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
15591         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
15592         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
15593         and LR_SIZE.
15594         * sysdeps/i386/link-defines.sym: New file.
15595
15596 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15597
15598         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
15599         (modules-names): Add tst-auditmod3a tst-auditmod3b.
15600         ($(objpfx)tst-audit3): New rule.
15601         ($(objpfx)tst-audit3.out): Likewise.
15602         * sysdeps/i386/tst-audit3.c: New file.
15603         * sysdeps/i386/tst-audit3.h: Likewise.
15604         * sysdeps/i386/tst-auditmod3a.c: Likewise.
15605         * sysdeps/i386/tst-auditmod3b.c: Likewise.
15606
15607 2015-07-07  Torvald Riegel  <triegel@redhat.com>
15608
15609         [BZ #18633]
15610         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
15611         pointer in C code.
15612         (__strcat_c): Likewise.
15613         (__strcat_g): Likewise.
15614
15615 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
15616
15617         [BZ #18592]
15618         * misc/sbrk.c: Set errno to ENOMEM on overflow.
15619
15620 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15621
15622         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15623         New function.  (__ieee754_sqrtf): New function.
15624         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15625         New function.
15626         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15627         New function.
15628
15629 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15630
15631         * sysdeps/ieee754/support.c: Remove unused file.
15632
15633 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15634
15635         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15636         registers instead of d ones so the layout is kernel abi compatible.
15637         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15638         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15639         Likewise.
15640
15641 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15642
15643         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15644
15645 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15646
15647         [BZ #18619]
15648         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15649         and return argument in case of subnormal argument.
15650
15651 2015-07-01  Martin Sebor  <msebor@redhat.com>
15652
15653         [BZ #18435]
15654         * nptl/Makefile: Add tst-once5.cc.
15655         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15656         Remove macro redefinitions.
15657         * nptl/tst-once5.cc: New test.
15658
15659 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15660
15661         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15662
15663         * sysdeps/arm/libm-test-ulps: Regenerated.
15664
15665         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15666         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15667
15668 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15669
15670         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15671         lll_lock_wait_private and lll_futex_wake probes.
15672
15673         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15674         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15675         Likewise.
15676         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15677         atomic_spin_nop.
15678         * sysdeps/x86_64/bits/atomic.h: Likewise.
15679         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15680         to atomic_spin_nop and move ...
15681         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15682         ... here and ...
15683         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15684         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15685         atomic_spin_nop instead of BUSY_WAIT_NOP.
15686         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15687         Likewise.
15688         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15689         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15690         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15691         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15692         instead of atomic_delay.
15693
15694 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15695
15696         [BZ #18613]
15697         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15698         X_ADJ not X when adjusting exponent.
15699         (__ieee754_gamma_r): Do intermediate computations in
15700         round-to-nearest then adjust overflowing and underflowing results
15701         as needed.
15702         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15703         of X_ADJ not X when adjusting exponent.
15704         (__ieee754_gammaf_r): Do intermediate computations in
15705         round-to-nearest then adjust overflowing and underflowing results
15706         as needed.
15707         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15708         log of X_ADJ not X when adjusting exponent.
15709         (__ieee754_gammal_r): Do intermediate computations in
15710         round-to-nearest then adjust overflowing and underflowing results
15711         as needed.  Use 1.0L not 1.0f as numerator of division.
15712         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15713         log of X_ADJ not X when adjusting exponent.
15714         (__ieee754_gammal_r): Do intermediate computations in
15715         round-to-nearest then adjust overflowing and underflowing results
15716         as needed.  Use 1.0L not 1.0f as numerator of division.
15717         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15718         of X_ADJ not X when adjusting exponent.
15719         (__ieee754_gammal_r): Do intermediate computations in
15720         round-to-nearest then adjust overflowing and underflowing results
15721         as needed.  Use 1.0L not 1.0f as numerator of division.
15722         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15723         to auto-libm-test-in.
15724         (tgamma_test): Use ALL_RM_TEST.
15725         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15726         tests of tgamma with spurious-overflow.
15727         * math/auto-libm-test-out: Regenerated.
15728         * math/gen-libm-have-vector-test.sh: Do not check for START.
15729         * sysdeps/i386/fpu/libm-test-ulps: Update.
15730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15731
15732         [BZ #18612]
15733         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15734         arguments, just return 0.5 times the argument, with underflow
15735         forced as needed.
15736         * math/auto-libm-test-in: Add more tests of j1.
15737         * math/auto-libm-test-out: Regenerated.
15738
15739         [BZ #16559]
15740         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15741         (__ieee754_j1): Force underflow exception for small results.
15742         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15743         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15744         (__ieee754_j1f): Force underflow exception for small results.
15745         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15746         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15747         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15748         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15749         (__ieee754_j1l): Force underflow exception for small results.
15750         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15751         * math/auto-libm-test-in: Add more tests of j1 and jn.
15752         * math/auto-libm-test-out: Regenerated.
15753
15754         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15755         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15756         (PF_MPLS): Likewise.
15757         (AF_IB): Likewise.
15758         (AF_MPLS): Likewise.
15759         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15760         value and macro.
15761         (MS_RMT_MASK): Include MS_LAZYTIME.
15762
15763 2015-06-26  Mel Gorman  <mgorman@suse.de>
15764
15765         [BZ #18502]
15766         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15767         already minimal.
15768
15769 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15770
15771         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15772         (DT_MIPS_NUM): Update.
15773         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15774         DT_MIPS_RLD_MAP_REL.
15775
15776 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15777
15778         [BZ #16559]
15779         [BZ #18602]
15780         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15781         round-to-nearest internally then recompute results that
15782         underflowed to zero in the original rounding mode.
15783         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15784         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15785         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15786         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15787         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15788         * sysdeps/i386/fpu/libm-test-ulps: Update.
15789         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15790
15791 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15792
15793         * NEWS: Fixed description of link with vector math library.
15794
15795 2015-06-25  Andreas Schwab  <schwab@suse.de>
15796
15797         [BZ #18549]
15798         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15799         * libio/test-fmemopen.c (do_test): Add test for it.
15800
15801 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15802
15803         [BZ #17841]
15804         * Makeconfig (no-pie-ldflag): New.
15805         (+link): Set to $(+link-pie) if default to PIE.
15806         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15807         * config.make.in (build-pie-default): New.
15808         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15809         is default.  AC_SUBST.
15810         * configure: Regenerated.
15811         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15812
15813 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15814
15815         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15816         to 'unsigned int'.
15817
15818         * resolv/gai_misc.h (struct waitlist): Change type of field
15819         counterp to 'volatile unsigned int *'.
15820         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15821         FUTEXADDR and OLDVAL.
15822         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15823         Give local variable TOTAL type 'volatile unsigned int'.
15824         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15825         * resolv/gai_suspend.c (gai_suspend):
15826         Give local variable CNTR type 'unsigned int'.
15827
15828         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15829         counterp to 'volatile unsigned int *'.
15830         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15831         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15832         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15833         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15834         Give local variable TOTAL type 'volatile unsigned int'.
15835         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15836
15837 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15838
15839         [BZ #18383]
15840         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15841         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15842         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15843         comment for i386/x86-64.
15844         (test-xfail-tst-tlsalign-extern-static): Removed.
15845
15846 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15847
15848         * math/test-double.h: New file.
15849         * math/test-float.h: Likewise.
15850         * math/test-ldouble.h: Likewise.
15851         * math/test-math-inline.h: Likewise.
15852         * math/test-math-no-inline.h: Likewise.
15853         * math/test-math-scalar.h: Likewise.
15854         * math/test-math-vector.h: Likewise.
15855         * math/test-vec-loop.h: Remove file.  Contents moved into
15856         test-math-vector.h.
15857         * math/libm-test.inc (MATHCONST): Do not document macro.
15858         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15859         and test-math-scalar.h.
15860         (FUNC): Remove macro.
15861         (FUNC_TEST): Likewise.
15862         (FLOAT): Likewise.
15863         (MATHCONST): Likewise.
15864         (PRINTF_EXPR): Likewise.
15865         (PRINTF_XEXPR): Likewise.
15866         (PRINTF_NEXPR): Likewise.
15867         (TEST_DOUBLE): Likewise.
15868         (TEST_MATHVEC): Likewise.
15869         (__NO_MATH_INLINES): Likewise.
15870         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15871         and test-math-scalar.h.
15872         (FUNC): Remove macro.
15873         (FUNC_TEST): Likewise.
15874         (FLOAT): Likewise.
15875         (MATHCONST): Likewise.
15876         (PRINTF_EXPR): Likewise.
15877         (PRINTF_XEXPR): Likewise.
15878         (PRINTF_NEXPR): Likewise.
15879         (TEST_FLOAT): Likewise.
15880         (TEST_MATHVEC): Likewise.
15881         (__NO_MATH_INLINES): Likewise.
15882         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15883         and test-math-scalar.h.
15884         (FUNC): Remove macro.
15885         (FUNC_TEST): Likewise.
15886         (FLOAT): Likewise.
15887         (MATHCONST): Likewise.
15888         (PRINTF_EXPR): Likewise.
15889         (PRINTF_XEXPR): Likewise.
15890         (PRINTF_NEXPR): Likewise.
15891         (TEST_DOUBLE): Likewise.
15892         (TEST_MATHVEC): Likewise.
15893         (TEST_INLINE): Likewise.
15894         (__NO_MATH_INLINES): Likewise.
15895         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15896         test-math-scalar.h.
15897         (FUNC): Remove macro.
15898         (FUNC_TEST): Likewise.
15899         (FLOAT): Likewise.
15900         (MATHCONST): Likewise.
15901         (PRINTF_EXPR): Likewise.
15902         (PRINTF_XEXPR): Likewise.
15903         (PRINTF_NEXPR): Likewise.
15904         (TEST_FLOAT): Likewise.
15905         (TEST_MATHVEC): Likewise.
15906         (TEST_INLINE): Likewise.
15907         (__NO_MATH_INLINES): Likewise.
15908         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15909         and test-math-scalar.h.
15910         (FUNC): Remove macro.
15911         (FUNC_TEST): Likewise.
15912         (FLOAT): Likewise.
15913         (MATHCONST): Likewise.
15914         (PRINTF_EXPR): Likewise.
15915         (PRINTF_XEXPR): Likewise.
15916         (PRINTF_NEXPR): Likewise.
15917         (TEST_LDOUBLE): Likewise.
15918         (TEST_MATHVEC): Likewise.
15919         (TEST_INLINE): Likewise.
15920         (__NO_MATH_INLINES): Likewise.
15921         * math/test-ldouble.c: Include test-ldouble.h,
15922         test-math-no-inline.h and test-math-scalar.h.
15923         (FUNC): Remove macro.
15924         (FUNC_TEST): Likewise.
15925         (FLOAT): Likewise.
15926         (MATHCONST): Likewise.
15927         (PRINTF_EXPR): Likewise.
15928         (PRINTF_XEXPR): Likewise.
15929         (PRINTF_NEXPR): Likewise.
15930         (TEST_LDOUBLE): Likewise.
15931         (TEST_MATHVEC): Likewise.
15932         (__NO_MATH_INLINES): Likewise.
15933         * math/test-double-vlen2.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-vlen4.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-double-vlen8.h: Include test-double.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_DOUBLE): 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-vlen4.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-vlen8.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         * math/test-float-vlen16.h: Include test-float.h,
16039         test-math-no-inline.h and test-math-vector.h.
16040         (FLOAT): Remove macro.
16041         (FUNC): Likewise.
16042         (MATHCONST): Likewise.
16043         (PRINTF_EXPR): Likewise.
16044         (PRINTF_XEXPR): Likewise.
16045         (PRINTF_NEXPR): Likewise.
16046         (TEST_FLOAT): Likewise.
16047         (TEST_MATHVEC): Likewise.
16048         (__NO_MATH_INLINES): Likewise.
16049         (CNCT): Likewise.
16050         (CONCAT): Likewise.
16051         (WRAPPER_NAME): Likewise.
16052         (WRAPPER_DECL): Likewise.
16053         (WRAPPER_DECL_ff): Likewise.
16054         (WRAPPER_DECL_fFF): Likewise.
16055         (VECTOR_WRAPPER): Likewise.
16056         (VECTOR_WRAPPER_ff): Likewise.
16057         (VECTOR_WRAPPER_fFF): Likewise.
16058         (VEC_LEN): New macro.
16059         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
16060         test-vec-loop.h.
16061         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16062         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16063         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16064         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16065         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16066         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16067         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16068
16069 2015-06-24  Roland McGrath  <roland@hack.frob.com>
16070
16071         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
16072         (__getlogin_r): ... this.
16073
16074 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16075
16076         [BZ #18594]
16077         * math/s_ccosh.c (__ccosh): Compare with least normal value
16078         instead of comparing class with FP_SUBNORMAL.
16079         * math/s_ccoshf.c (__ccoshf): Likewise.
16080         * math/s_ccoshl.c (__ccoshl): Likewise.
16081         * math/s_cexp.c (__cexp): Likewise.
16082         * math/s_cexpf.c (__cexpf): Likewise.
16083         * math/s_cexpl.c (__cexpl): Likewise.
16084         * math/s_csin.c (__csin): Likewise.
16085         * math/s_csinf.c (__csinf): Likewise.
16086         * math/s_csinh.c (__csinh): Likewise.
16087         * math/s_csinhf.c (__csinhf): Likewise.
16088         * math/s_csinhl.c (__csinhl): Likewise.
16089         * math/s_csinl.c (__csinl): Likewise.
16090         * math/s_ctan.c (__ctan): Likewise.
16091         * math/s_ctanf.c (__ctanf): Likewise.
16092         * math/s_ctanh.c (__ctanh): Likewise.
16093         * math/s_ctanhf.c (__ctanhf): Likewise.
16094         * math/s_ctanhl.c (__ctanhl): Likewise.
16095         * math/s_ctanl.c (__ctanl): Likewise.
16096         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
16097         csin, csinh, ctan and ctanh.
16098         * math/auto-libm-test-out: Regenerated.
16099         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
16100         * sysdeps/i386/fpu/libm-test-ulps: Update.
16101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16102
16103 2015-06-24  Roland McGrath  <roland@hack.frob.com>
16104
16105         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
16106         return value is wrong, print the expected value too.
16107
16108 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16109
16110         [BZ #18585]
16111         * elf/readlib.c (is_gdb_python_file): New.
16112         (process_file): Don't issue errors on filenames with -gdb.py
16113         suffix.
16114
16115 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16116
16117         * math/auto-libm-test-in: Add more tests of csin and csinh.
16118         * math/auto-libm-test-out: Regenerated.
16119         * math/libm-test.inc (csin_test_data): Remove tests moved to
16120         auto-libm-test-in.
16121         (csinh_test_data): Likewise.
16122
16123         [BZ #18593]
16124         * math/s_csin.c (__csin): Negate before rather than after possibly
16125         overflowing multiplication.
16126         * math/s_csinf.c (__csinf): Likewise.
16127         * math/s_csinh.c (__csinh): Likewise.
16128         * math/s_csinhf.c (__csinhf): Likewise.
16129         * math/s_csinhl.c (__csinhl): Likewise.
16130         * math/s_csinl.c (__csinl): Likewise.
16131         * math/auto-libm-test-in: Add some tests of csin and csinh.
16132         * math/auto-libm-test-out: Regenerated.
16133         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
16134         (csinh_test_data): Likewise.
16135         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16136
16137         [BZ #18586]
16138         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
16139         underflow exception for small results.
16140
16141 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
16142
16143         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16144         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
16145         variable and included header.
16146         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
16147         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
16148         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
16149         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
16150         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
16151         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
16152         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
16153         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
16154         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
16155         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
16156         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
16157         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
16158         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
16159         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
16160         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
16161         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
16162
16163 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16164
16165         [BZ #16526]
16166         [BZ #16538]
16167         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
16168         (__sin): Force underflow exception for arguments with small
16169         absolute value.
16170         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
16171         (__kernel_sinf): Force underflow exception for arguments with
16172         small absolute value.
16173         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
16174         (__kernel_sincosl): Force underflow exception for arguments with
16175         small absolute value.
16176         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
16177         (__kernel_sinl): Force underflow exception for arguments with
16178         small absolute value.
16179         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
16180         (__kernel_sincosl): Force underflow exception for arguments with
16181         small absolute value.
16182         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
16183         (__kernel_sinl): Force underflow exception for arguments with
16184         small absolute value.
16185         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
16186         (__kernel_sinl): Force underflow exception for arguments with
16187         small absolute value.
16188         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
16189         (__kernel_sinf): Force underflow exception for arguments with
16190         small absolute value.
16191         * math/auto-libm-test-in: Add more tests of sin and sincos.
16192         * math/auto-libm-test-out: Regenerated.
16193
16194         [BZ #18245]
16195         [BZ #18583]
16196         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
16197         (__kernel_standard_l): Use feholdexcept and fesetenv around
16198         conversion to double instead of special-casing overflow and
16199         underflow.
16200         * math/libm-test.inc (fmod_test_data): Add more tests.
16201         (remainder_test_data): Likewise.
16202         (sqrt_test_data): Likewise.
16203
16204 2015-06-23  Torvald Riegel  <triegel@redhat.com>
16205
16206         [BZ #17403]
16207         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
16208         atomic_read_barrier, atomic_write_barrier): Define.
16209         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
16210         atomic_read_barrier, atomic_write_barrier): Define.
16211
16212 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16213
16214         * math/Makefile [$(PERL) != no]
16215         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
16216         dependency on libm-test.stmp below the inclusion of Rules.
16217
16218 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
16219
16220         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16221         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
16222         and included header.
16223         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
16224         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
16225         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
16226         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
16227         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
16228         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
16229         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
16230         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
16231         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
16232         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
16233         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
16234         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
16235         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
16236         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
16237         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
16238         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
16239         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
16240         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
16241         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
16242
16243 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16244
16245         [BZ #18371]
16246         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
16247         intermediate but not final result might underflow.
16248         * math/s_csqrtf.c (__csqrtf): Likewise.
16249         * math/s_csqrtl.c (__csqrtl): Likewise.
16250         * math/auto-libm-test-in: Add more tests of csqrt.
16251         * math/auto-libm-test-out: Regenerated.
16252         * sysdeps/i386/fpu/libm-test-ulps: Update.
16253
16254         [BZ #18219]
16255         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
16256         threshold on absolute value of exponent for which scaling is used.
16257         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
16258         * math/auto-libm-test-in: Add more tests of exp2.
16259         * math/auto-libm-test-out: Regenerated.
16260
16261 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
16262
16263         [BZ #17977]
16264         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
16265         when initializing interface list, based on the bug analysis
16266         and the patch proposed by Eric Newton.
16267         * resolv/tst-res_hconf_reorder.c: New test.
16268         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
16269         tst-res_hconf_reorder.
16270         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
16271         and $(shared-thread-library).
16272         (tst-res_hconf_reorder-ENV): New variable.
16273
16274         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
16275         in comment.
16276
16277 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
16278
16279         [BZ #16353]
16280         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
16281         (__expm1): Force underflow exception for arguments with small
16282         absolute value.
16283         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
16284         (__expm1f): Force underflow exception for arguments with small
16285         absolute value.
16286         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
16287         (__expm1): Force underflow exception for arguments with small
16288         absolute value.
16289         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
16290         (__expm1f): Force underflow exception for arguments with small
16291         absolute value.
16292         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
16293         Check for small arguments before calling __expm1.
16294         * math/auto-libm-test-in: Do not mark underflow exceptions as
16295         possibly missing for bug 16353.
16296         * math/auto-libm-test-out: Regenerated.
16297
16298 2015-06-22  Andreas Schwab  <schwab@suse.de>
16299
16300         [BZ #18513]
16301         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
16302         PTR queries.
16303
16304 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
16305
16306         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
16307
16308         * string/strcoll_l.c: Remove unused struct element idxnow.
16309
16310 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
16311
16312         [BZ #18569]
16313         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
16314         underflow and return argument in case of subnormal argument.
16315         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
16316         Likewise.
16317         * math/auto-libm-test-in: Add more tests of expm1.
16318         * math/auto-libm-test-out: Regenerated.
16319
16320         [BZ #16361]
16321         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16322         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16323         tiny results.
16324         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16325         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16326         tiny results.
16327         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
16328         mark underflow exceptions as possibly missing for bug 16361.
16329         * math/auto-libm-test-out: Regenerated.
16330
16331 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
16332
16333         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
16334         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
16335         Remove variable.
16336         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
16337         (test-xfail-XOPEN2K8/utmpx.h/conform).
16338
16339         * conform/conformtest.pl ($xerrors): New variable.
16340         (note_error): New function.
16341         (compiletest): New argument $xfail.  Use not_error.
16342         (runtest): Likewise.
16343         (top level): Handle xfail- lines.  Update calls to compiletest and
16344         runtest.  Handle xfail- and optional- in headers listed with
16345         allow-header.
16346         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
16347         (O_EXEC): Likewise.
16348         (O_SEARCH): Likewise.
16349         * conform/data/stropts.h-data (ioctl): Likewise.
16350         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
16351         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
16352         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
16353         (msghdr.msg_controllen): Likewise.
16354         (cmsghdr.cmsg_len): Likewise.
16355         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
16356         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
16357         variable.
16358         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
16359         (test-xfail-XPG4/stropts.h/conform): Likewise.
16360         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
16361         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
16362         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
16363         (test-xfail-UNIX98/stropts.h/conform): Likewise.
16364         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
16365         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
16366         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
16367         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
16368         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
16369         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
16370         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
16371         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
16372         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
16373         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
16374         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
16375         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
16376         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
16377         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
16378         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
16379
16380 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
16381
16382         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
16383         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
16384         definitions for proper unfolding of __MATHDECL_VEC.
16385
16386 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16387
16388         * benchtests/bench-strcoll.c:
16389         Include string.h.
16390         (main): Remove unused variable res.
16391
16392 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16393
16394         * timezone/Makefile (%/UTC %/Universal):
16395         Generate test-result files for UTC and Universal.
16396
16397 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16398
16399         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16400
16401 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
16402
16403         [BZ #16350]
16404         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
16405         for arguments with small absolute value.
16406         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
16407         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
16408         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
16409         (__asinh): Force underflow exception for arguments with small
16410         absolute value.
16411         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
16412         (__asinhf): Force underflow exception for arguments with small
16413         absolute value.
16414         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
16415         (__asinhl): Force underflow exception for arguments with small
16416         absolute value.
16417         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
16418         (__asinhl): Force underflow exception for arguments with small
16419         absolute value.
16420         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
16421         (__asinhl): Force underflow exception for arguments with small
16422         absolute value.
16423         * math/auto-libm-test-in: Do not mark underflow exceptions as
16424         possibly missing for bug 16350.
16425         * math/auto-libm-test-out: Regenerated.
16426
16427         * include/bits/ipc.h: Remove file.
16428         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
16429         variable.
16430         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
16431         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
16432         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
16433         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
16434         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
16435         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
16436         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
16437         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
16438         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
16439
16440         * math/auto-libm-test-in: Remove spurious underflow allowance for
16441         tests of cexp.
16442         * math/auto-libm-test-out: Regenerated.
16443
16444         [BZ #18558]
16445         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
16446         unconditional definition.
16447         (MCAST_BLOCK_SOURCE): Likewise.
16448         (MCAST_UNBLOCK_SOURCE): Likewise.
16449         (MCAST_LEAVE_GROUP): Likewise.
16450         (MCAST_JOIN_SOURCE_GROUP): Likewise.
16451         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
16452         (MCAST_MSFILTER): Likewise.
16453         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
16454         Remove variable.
16455         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
16456         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
16457         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
16458         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
16459         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
16460
16461 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
16462
16463         * NEWS: Mention addition of x86_64 vector sincosf.
16464         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
16465         * math/test-float-vlen4.h: Likewise.
16466         * math/test-float-vlen8.h: Likewise.
16467         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16468         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
16469         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16470         * sysdeps/x86_64/fpu/Versions: New versions added.
16471         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16472         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16473         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16474         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
16475         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
16476         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
16477         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
16478         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
16479         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
16480         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
16481         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
16482         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
16483         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
16484         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
16485         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
16486         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
16487         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
16488         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16489         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16490         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16491         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16492         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16493         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16494         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16495
16496         * NEWS: Mention addition of x86_64 vector sincos.
16497         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
16498         * math/math.h (__MATHDECL_VEC): New macro.
16499         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
16500         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
16501         declaration under condition.
16502         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
16503         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
16504         TEST_VEC_LOOP change.
16505         * math/test-double-vlen4.h: Likewise.
16506         * math/test-double-vlen8.h: Likewise.
16507         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
16508         * math/test-float-vlen4.h: Likewise.
16509         * math/test-float-vlen8.h: Likewise.
16510         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16511         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
16512         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16513         * sysdeps/x86_64/fpu/Versions: New versions added.
16514         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16515         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16516         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16517         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
16518         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
16519         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
16520         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
16521         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
16522         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
16523         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
16524         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
16525         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
16526         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
16527         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
16528         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
16529         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
16530         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
16531         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16532         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16533         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16534         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16535         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16536         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16537         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16538
16539         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16540         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16541         redirections for powf.
16542         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16543         * sysdeps/x86_64/fpu/Versions: New versions added.
16544         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16545         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16546         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16547         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
16548         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
16549         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
16550         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
16551         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
16552         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
16553         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
16554         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
16555         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
16556         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
16557         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
16558         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
16559         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
16560         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
16561         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16562         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16563         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16564         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16565         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16566         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16567         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16568         * math/test-float-vlen16.h: Fixed 2 argument macro.
16569         * math/test-float-vlen4.h: Likewise.
16570         * math/test-float-vlen8.h: Likewise.
16571         * NEWS: Mention addition of x86_64 vector powf.
16572
16573 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
16574
16575         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16576         and redefine.
16577         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16578         and redefine.
16579         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
16580         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16581         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16582
16583         [BZ #18553]
16584         * resource/getpriority.c (getpriority): Rename to __getpriority
16585         and define as weak alias of __getpriority.
16586         * resource/setpriority.c (setpriority): Rename to __setpriority
16587         and define as weak alias of __setpriority.
16588         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
16589         __getpriority and define as weak alias of __getpriority.
16590         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
16591         __setpriority and define as weak alias of __setpriority.
16592         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
16593         strong name.
16594         (setpriority): Use __setpriority as strong name.
16595         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
16596         __getpriority and define as weak alias of __getpriority.
16597         * include/sys/resource.h (__getpriority): Declare.  Use
16598         libc_hidden_proto.
16599         (__setpriority): Likewise.
16600         (getpriority): Don't use libc_hidden_proto.
16601         (setpriority): Likewise.
16602         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
16603         getpriority.  Call __setpriority instead of setpriority.
16604         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
16605         Remove variable.
16606
16607         [BZ #18547]
16608         * misc/getttyent.c (getttynam): Rename to __getttynam and define
16609         as weak alias of __getttynam.  Use prototype function definition.
16610         Call __setttyent, __getttyent and __endttyent instead of
16611         setttyent, getttyent and endttyent.
16612         (getttyent): Rename to __getttyent and define as weak alias of
16613         __getttyent.  Call __setttyent instead of setttyent.  Call
16614         __fgets_unlocked instead of fgets_unlocked.
16615         (setttyent): Rename to __setttyent and define as weak alias of
16616         __setttyent.
16617         (endttyent): Rename to __endttyent and define as weak alias of
16618         __endttyent.
16619         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
16620         (__setttyent): Likewise.
16621         (__endttyent): Likewise.
16622         (getttyent): Don't use libc_hidden_proto.
16623         (setttyent): Likewise.
16624         (endttyent): Likewise.
16625         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16626         __endttyent instead of setttyent, getttyent and endttyent.
16627         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16628         Remove variable.
16629
16630         [BZ #18546]
16631         * socket/recv.c (__recv): Use libc_hidden_def.
16632         * socket/socket.c (__socket): Likewise.
16633         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16634         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16635         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16636         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16637         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16638         libc_hidden_def.
16639         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16640         libc_hidden_weak.
16641         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16642         Use libc_hidden_proto.
16643         (__recv): Likewise.
16644         * socket/Versions (libc): Export __recv and __socket at version
16645         GLIBC_PRIVATE.
16646         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16647         instead of recv.
16648         (init_mq_netlink): Call __socket instead of socket.
16649         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16650         Remove variable.
16651
16652         [BZ #18545]
16653         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16654         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16655         hidden_weak.
16656         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16657         define as alias of __mq_timedsend.  Use hidden_weak.
16658         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16659         __mq_timedsend as strong name.
16660         (mq_timedreceive): Use __mq_timedreceive as strong name.
16661         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16662         (__mq_timedreceive): Likewise.
16663         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16664         __mq_timedreceive instead of mq_timedreceive.
16665         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16666         instead of mq_timedsend.
16667         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16668         Remove variable.
16669
16670         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16671         hidden_def and hidden_weak instead of libc_hidden_def and
16672         libc_hidden_weak.
16673         (top level): Refer to hidden_def in comment.
16674         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16675         macro.  Use it instead of libc_hidden_def.
16676         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16677         specify __GI_* name explicitly.
16678         (mq_timedreceive): Likewise.
16679         (mq_setattr): Likewise.
16680
16681         [BZ #18544]
16682         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16683         __pthread_barrier_init and define as weak alias of
16684         __pthread_barrier_init.
16685         * sysdeps/sparc/nptl/pthread_barrier_init.c
16686         (pthread_barrier_init): Likewise.
16687         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16688         __pthread_barrier_wait and define as weak alias of
16689         __pthread_barrier_wait.
16690         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16691         (pthread_barrier_wait): Likewise.
16692         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16693         (pthread_barrier_wait): Likewise.
16694         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16695         (pthread_barrier_wait): Likewise.
16696         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16697         (pthread_barrier_wait): Likewise.
16698         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16699         __pthread_barrier_wait at version GLIBC_PRIVATE.
16700         * include/pthread.h (__pthread_barrier_init): Declare.
16701         (__pthread_barrier_wait): Likewise.
16702         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16703         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16704         (helper_thread): Likewise.
16705         (init_mq_netlink): Call __pthread_barrier_init instead of
16706         pthread_barrier_init.
16707
16708         [BZ #18542]
16709         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16710         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16711         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16712         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16713         vswscanf.
16714         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16715         Remove variable.
16716
16717         [BZ #18540]
16718         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16719         strong alias of _IO_fflush.  Use libc_hidden_def.
16720         * libio/iofflush_u.c (fflush_unlocked): Rename to
16721         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16722         Use libc_hidden_weak.
16723         * include/stdio.h (__fflush_unlocked): Declare.  Use
16724         libc_hidden_proto.
16725         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16726         fflush_unlocked.
16727         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16728         Remove variable.
16729
16730         [BZ #18539]
16731         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16732         define as weak alias of __addseverity.
16733         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16734         Remove variable.
16735         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16736         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16737         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16738
16739         [BZ #18536]
16740         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16741         (__tfind): Likewise.
16742         (__tdelete): Likewise.
16743         (__twalk): Likewise.
16744         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16745         __twalk to GLIBC_PRIVATE.
16746         * include/search.h (__tsearch): Use libc_hidden_proto.
16747         (__tfind): Likewise.
16748         (__tdelete): Likewise.
16749         (__twalk): Likewise.
16750         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16751         Call __tdelete instead of tdelete.
16752         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16753         tfind.  Call __tsearch instead of tsearch.
16754         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16755         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16756         Remove variable.
16757         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16758
16759         [BZ #18534]
16760         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16761         (dprintf): Define as a weak alias of __dprintf, not a strong
16762         alias.
16763         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16764         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16765         dprintf.
16766         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16767         Remove variable.
16768         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16769         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16770
16771         [BZ #18533]
16772         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16773         not a strong alias.
16774         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16775         Remove variable.
16776
16777         [BZ #18532]
16778         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16779         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16780         (in6addr_loopback): Rename to __in6addr_loopback and define as
16781         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16782         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16783         libc_hidden_proto.
16784         (__in6addr_any): Likewise.
16785         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16786         in6addr_any.
16787         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16788         variable.
16789         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16790
16791 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16792
16793         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16794         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16795         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16796         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16797         redirections for pow.
16798         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16799         * sysdeps/x86_64/fpu/Versions: New versions added.
16800         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16801         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16802         build of SSE, AVX2 and AVX512 IFUNC versions.
16803         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16804         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16805         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16806         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16807         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16808         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16809         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16810         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16811         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16812         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16813         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16814         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16815         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16816         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16817         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16818         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16819         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16820         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16821         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16822         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16823         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16824         * NEWS: Mention addition of x86_64 vector pow.
16825
16826         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16827         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16828         redirections for expf.
16829         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16830         * sysdeps/x86_64/fpu/Versions: New versions added.
16831         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16832         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16833         build of SSE, AVX2 and AVX512 IFUNC versions.
16834         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16835         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16836         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16837         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16838         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16839         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16840         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16841         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16842         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16843         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16844         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16845         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16846         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16847         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16848         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16849         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16850         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16851         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16852         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16853         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16854         * NEWS: Mention addition of x86_64 vector expf.
16855
16856         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16857         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16858         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16859         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16860         redirections for exp.
16861         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16862         * sysdeps/x86_64/fpu/Versions: New versions added.
16863         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16864         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16865         build of SSE, AVX2 and AVX512 IFUNC versions.
16866         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16867         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16868         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16869         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16870         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16871         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16872         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16873         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16874         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16875         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16876         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16877         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16878         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16879         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16880         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16881         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16882         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16883         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16884         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16885         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16886         * NEWS: Mention addition of x86_64 vector exp.
16887
16888         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16889         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16890         redirections for logf.
16891         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16892         * sysdeps/x86_64/fpu/Versions: New versions added.
16893         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16894         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16895         build of SSE, AVX2 and AVX512 IFUNC versions.
16896         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16897         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16898         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16899         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16900         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16901         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16902         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16903         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16904         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16905         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16906         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16907         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16908         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16909         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16910         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16911         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16912         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16913         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16914         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16915         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16916         * NEWS: Mention addition of x86_64 vector logf.
16917
16918         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16919         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16920         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16921         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16922         redirections for log.
16923         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16924         * sysdeps/x86_64/fpu/Versions: New versions added.
16925         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16926         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16927         build of SSE, AVX2 and AVX512 IFUNC versions.
16928         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16929         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16930         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16931         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16932         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16933         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16934         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16935         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16936         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16937         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16938         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16939         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16940         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16941         test.
16942         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16943         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16944         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16945         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16946         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16947         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16948         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16949         * NEWS: Mention addition of x86_64 vector log.
16950
16951 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16952
16953         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16954         cfi_adjust_cfa_offset argument.
16955         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16956         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16957
16958         [BZ #18034]
16959         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16960         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16961         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16962         ordering using ldar.
16963         (_dl_tlsdesc_dynamic): Likewise.
16964         (_dl_tlsdesc_return_lazy): Likewise.
16965         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16966         relaxed atomics instead of volatile and synchronize with release store.
16967         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16968         volatile.
16969         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16970
16971 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16972
16973         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16974         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16975         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16976         * sysdeps/x86_64/fpu/Versions: New versions added.
16977         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16978         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16979         build of SSE, AVX2 and AVX512 IFUNC versions.
16980         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16981         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16982         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16983         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16984         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16985         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16986         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16987         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16988         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16989         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16990         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16991         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16992         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16993         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16994         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16995         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16996         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16997         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16998         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16999         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
17000         * NEWS: Mention addition of x86_64 vector sinf.
17001
17002 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
17003
17004         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
17005         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
17006         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
17007         Remove variable.
17008         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
17009         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
17010
17011 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
17012
17013         [BZ #18530]
17014         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
17015         strong alias of _IO_fputs.  Use libc_hidden_def.
17016         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
17017         and define as weak alias of __fputs_unlocked.  Use
17018         libc_hidden_weak.
17019         * include/stdio.h (__fputs_unlocked): Declare.  Use
17020         libc_hidden_proto.
17021         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
17022         fputs_unlocked.
17023
17024         [BZ #18529]
17025         * resolv/netdb.h [__USE_POSIX]: Change condition to
17026         [__USE_XOPEN2K].
17027         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
17028         not expect.
17029         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
17030         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
17031         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
17032         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
17033         [XPG4 || UNIX98] (AI_ALL): Likewise.
17034         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
17035         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
17036         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
17037         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
17038         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
17039         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
17040         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
17041         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
17042         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
17043         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
17044         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
17045         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
17046         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
17047         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
17048         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
17049         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
17050         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
17051         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
17052         [XPG4 || UNIX98] (gai_strerror): Likewise.
17053         [XPG4 || UNIX98] (getaddrinfo): Likewise.
17054         [XPG4 || UNIX98] (getnameinfo): Likewise.
17055
17056         [BZ #18528]
17057         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
17058         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
17059         __USE_XOPEN2K8].
17060         (getgrent): Likewise.
17061         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
17062         expect.
17063         [XPG3 || POSIX2008] (endgrent): Likewise.
17064         [XPG3] (setgrent): Likewise.
17065         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
17066         variable.
17067         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
17068
17069         [BZ #18527]
17070         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
17071         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
17072         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
17073         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
17074         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
17075         * include/unistd.h (__getlogin_r): Declare.  Use
17076         libc_hidden_proto.
17077         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
17078         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
17079         variable.
17080         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
17081         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
17082         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
17083
17084 2015-06-12  Martin Sebor  <msebor@redhat.com>
17085
17086         [BZ #18512]
17087         * Makerules (check-install-supported): New target.
17088         (install): Add check-install-supported as a dependency.
17089         * manual/install.texi (Installing the C Library): Document
17090         that overriding prefix and exec_prefix is not supported.
17091         Mention DESTDIR.
17092         * INSTALL: Regenerate from the above.
17093
17094 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
17095
17096         [BZ #18519]
17097         * posix/Versions (libc): Export __libc_pread at version
17098         GLIBC_PRIVATE.
17099         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
17100         instead of pread.
17101         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
17102         variable.
17103
17104         [BZ #18522]
17105         * misc/efgcvt_r.c
17106         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
17107         (cvt_symbol): Use weak_alias instead of strong_alias.
17108         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
17109         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
17110         Remove variable.
17111         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
17112         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
17113
17114         [BZ #18520]
17115         * inet/herrno.c (h_errno): Rename to __h_errno.
17116         (__libc_h_errno): Define as alias of __h_errno not h_errno.
17117         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
17118         to __h_errno instead of h_errno.
17119         * nptl/herrno.c (h_errno): Rename to __h_errno.
17120         (__h_errno_location): Refer to __h_errno not h_errno.
17121         * resolv/Versions (h_errno): Rename to __h_errno.
17122         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
17123         Remove variable.
17124         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
17125
17126 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
17127
17128         * configure.ac: More strict check for AVX512 assembler support.
17129         * configure: Regenerated.
17130
17131         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
17132         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
17133         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17134         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
17135         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17136         * sysdeps/x86_64/fpu/Versions: New versions added.
17137         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17138         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17139         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17140         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
17141         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
17142         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
17143         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
17144         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
17145         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
17146         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
17147         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
17148         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
17149         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
17150         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
17151         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
17152         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
17153         test.
17154         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
17155         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
17156         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
17157         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
17158         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17159         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
17160         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
17161         * NEWS: Mention addition of x86_64 vector sin.
17162
17163 2015-06-11  Florian Weimer  <fweimer@redhat.com>
17164
17165         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
17166         comment.
17167
17168 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
17169
17170         [BZ #18479]
17171         * nptl/pt-interp.c: New file.
17172         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
17173         Add pt-interp.
17174         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
17175         $(common-objpfx)runtime-linker.h.
17176
17177 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
17178
17179         * Makeconfig (+interp): Remove unused variable.
17180         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
17181         only.  Depend on $(common-objpfx)runtime-linker.h instead of
17182         $(elf-objpfx)runtime-linker.h.
17183         ($(elf-objpfx)runtime-linker.h): Rename to
17184         $(common-objpfx)runtime-linker.h and move ...
17185         * Makerules [$(build-shared) = yes]: ... here.
17186         * elf/interp.c: Include <runtime-linker.h> instead of
17187         <elf/runtime-linker.h>.
17188
17189 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17190
17191         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
17192         (__gettimeofday_syscall): Remove vsyscall fallback.
17193         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
17194         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
17195         Add syscall fallback function.
17196         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
17197         if vDSO is not present.
17198         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
17199         fallback function.
17200         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
17201         present.
17202         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
17203         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17204
17205 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
17206
17207         [BZ #18497]
17208         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
17209         of wcscmp.
17210         (wcscmp): Define as weak alias of WCSCMP.
17211         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
17212         wcscoll.
17213         (USE_HIDDEN_DEF): Define.
17214         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
17215         __wcscoll.  Don't use libc_hidden_weak.
17216         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
17217         wcscmp.
17218         * sysdeps/i386/i686/multiarch/wcscmp-c.c
17219         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
17220         __GI_wcscmp.
17221         (weak_alias): Undefine and redefine.
17222         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
17223         __wcscmp and define as weak alias of __wcscmp.
17224         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
17225         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
17226         (__wcscoll): Likewise.
17227         (wcscmp): Don't use libc_hidden_proto.
17228         (wcscoll): Likewise.
17229         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
17230         wcscoll.
17231         * posix/regexec.c (check_node_accept_bytes): Likewise.
17232         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
17233         variable.
17234         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
17235         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
17236
17237         [BZ #18507]
17238         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
17239         __fstatvfs and define as weak alias of __fstatvfs.  Use
17240         libc_hidden_weak.
17241         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
17242         and define as weak alias of __statvfs.  Use libc_hidden_weak.
17243         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
17244         Define as alias of __fstatvfs, not fstatvfs.
17245         (fstatvfs64): Likewise.
17246         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
17247         Define as alias of __statvfs, not statvfs.
17248         (statvfs64): Likewise.
17249         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
17250         Remove variable.
17251
17252 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17253
17254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17255         (HAVE_GETCPU_VSYSCALL): Define.
17256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17257         (HAVE_GETCPU_VSYSCALL): Likewise.
17258         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
17259         * sysdeps/unix/sysv/linux/sched_getcpu.c
17260         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
17261         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
17262         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
17263         prototype.
17264         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17265         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
17266         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
17267         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
17268         Define.
17269         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
17270         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
17271         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
17272         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
17273
17274 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
17275
17276         * sysdeps/x86_64/fpu/Makefile: New file.
17277         * sysdeps/x86_64/fpu/Versions: New file.
17278         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
17279         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
17280         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
17281         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
17282         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
17283         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
17284         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
17285         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
17286         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
17287         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
17288         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
17289         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
17290         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
17291         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17292         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17293         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
17294         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
17295         * sysdeps/x86_64/configure.ac: Options for libmvec build.
17296         * sysdeps/x86_64/configure: Regenerated.
17297         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
17298         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
17299         * manual/install.texi (Configuring and compiling): Document
17300         --disable-mathvec.
17301         * INSTALL: Regenerated.
17302         * NEWS: Mention addition of libmvec and x86_64 vector cos.
17303
17304         * math/Makefile: Added rules for vector tests.
17305         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
17306         declaration under condition.
17307         * math/test-double-vlen2.h: New file.
17308         * math/test-double-vlen4.h: New file.
17309         * math/test-double-vlen8.h: New file.
17310         * math/test-vec-loop.h: Added initialization macro.
17311         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
17312         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
17313         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
17314         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
17315         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
17316         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
17317         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
17318         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
17319         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
17320         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
17321         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
17322
17323         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17324         * sysdeps/x86_64/fpu/Versions: New versions added.
17325         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
17326         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
17327         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
17328         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
17329         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
17330         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
17331         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
17332         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
17333         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
17334         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
17335         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
17336         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
17337         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
17338         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17339         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17340         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17341         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
17342         * NEWS: Mention addition of x86_64 vector cosf.
17343
17344         * math/Makefile: Added CFLAGS for new tests.
17345         * math/test-float-vlen16.h: New file.
17346         * math/test-float-vlen4.h: New file.
17347         * math/test-float-vlen8.h: New file.
17348         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
17349         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
17350         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17351         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
17352         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
17353         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
17354         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
17355         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
17356         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
17357         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
17358         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
17359
17360 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
17361
17362         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
17363         * locale/programs/ld-ctype.c: Likewise.
17364
17365 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
17366
17367         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
17368         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
17369         bit_ZMM16_31_state): New macro.
17370         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17371         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
17372
17373 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
17374
17375         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
17376
17377 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
17378
17379         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
17380
17381 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
17382
17383         [BZ #18498]
17384         * libio/memstream.c (open_memstream): Rename to __open_memstream
17385         and define as weak alias of __open_memstream.
17386         * include/stdio.h (__open_memstream): Declare.  Use
17387         libc_hidden_proto.
17388         (open_memstream): Don't use libc_hidden_proto.
17389         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
17390         open_memstream.
17391         * posix/getopt.c (_getopt_internal_r): Likewise.
17392         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
17393         variable.
17394         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
17395         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
17396         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
17397
17398         [BZ #18496]
17399         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
17400         instead of wcrtomb.
17401
17402         [BZ #18483]
17403         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
17404         [__USE_XOPEN2K8].  Remove redundant #endif.
17405         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
17406         Remove redundant #if.
17407         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
17408         Remove variable.
17409         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
17410         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
17411
17412         [BZ #18495]
17413         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
17414         (__iswlower): Likewise.
17415         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
17416         (__iswlower): Likewise.
17417         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
17418         instead of towlower.
17419         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
17420         instead of iswlower.  Call __towupper instead of towupper.
17421         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
17422         instead of iswalnum.
17423
17424 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17425
17426         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
17427         errors to stderr.
17428
17429 2015-06-05  Florian Weimer  <fweimer@redhat.com>
17430
17431         [BZ #15661]
17432         [BZ #17322]
17433         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
17434         Check for overflow properly.  Check for O_APPEND.  Ignore large
17435         file system block sizes.  Add comments about problems.
17436         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
17437         * manual/filesys.texi (Storage Allocation): New node.
17438
17439 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17440
17441         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
17442         cancellable syscalls.
17443         (SYS_ify): Add guard to no redefine it.
17444         (INLINE_SYSCALL): Likewise.
17445         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
17446         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
17447         SYSCALL_CANCEL instead.
17448         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
17449         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
17450         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
17451         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
17452         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
17453         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
17454         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
17455         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
17456         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
17457         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
17458         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
17459         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
17460         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
17461         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
17462         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
17463         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
17464         Likewise.
17465         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
17466         (__libc_pread64): Likewise.
17467         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
17468         (__libc_preadv): Likewise.
17469         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
17470         (__libc_readv64): Likewise.
17471         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
17472         (__libc_pwrite): Likewise.
17473         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
17474         (__libc_pwrite64): Likewise.
17475         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
17476         (__libc_pwritev): Likewise.
17477         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
17478         (__libc_pwritev64): Likewise.
17479         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
17480         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
17481         (sync_file_range): Likewise.
17482         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
17483         Likewise.
17484         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
17485         Likewise.
17486         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
17487         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
17488         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
17489         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
17490         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
17491         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
17492         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
17493         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
17494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
17495         Likewise.
17496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
17497         (__libc_read64): Likewise.
17498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
17499         Likewise.
17500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
17501         Likewise.
17502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
17503         Likewise.
17504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
17505         Likewise.
17506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
17507         (__libc_pread64): Likewise.
17508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
17509         Likewise.
17510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
17511         (__libc_pwrite64): Likewise.
17512         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
17513         (sync_file_range): Likewise.
17514         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
17515         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
17516         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
17517         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
17518         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
17519         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
17520         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
17521         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
17522         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
17523         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
17524         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
17525         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
17526         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
17527         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
17528         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
17529         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
17530         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
17531         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17532         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
17533         Likewise.
17534         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
17535         Likewise.
17536         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
17537         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
17538         Likewise.
17539         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
17540         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
17541         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
17542         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
17543         Likewise.
17544         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
17545         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
17546         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
17547         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
17548         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
17549
17550 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
17551
17552         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
17553         Include dl-vdso.
17554         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
17555         Use VDSO routines for gettimeofday, clock_gettime if
17556         available.
17557         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
17558         Declare VDSO symbols.
17559         * sysdeps/unix/sysv/linux/arm/sysdep.h:
17560         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
17561         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17562         * sysdeps/unix/sysv/linux/arm/Versions: Add
17563         __vdso_clock_gettime.
17564
17565 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17566
17567         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
17568         be an inline implementation regardless of library is built within.
17569         (open_not_cancel_2): Likewise.
17570         (__read_nocancel): Likewise.
17571         (__write_nocancel): Likewise.
17572         (openat_not_cancel): Likewise.
17573         (openat_not_cancel_3): Likewise.
17574         (openat64_not_cancel): Likewise.
17575         (openat64_not_cancel_3): Likewise.
17576         (__close_nocancel): Likewise.
17577         (pause_not_cancel): Likewise.
17578         (nanosleep_not_cancel): Likewise.
17579         (sigsuspend_not_cancel): Likewise.
17580
17581 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17582
17583         [BZ #14958]
17584         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
17585         wake-up.
17586         (__pthread_rwlock_rdlock_slow): Likewise.
17587         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
17588         Likewise.
17589         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
17590         Likewise.
17591         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
17592         * nptl/tst-rwlock16.c: New file.
17593         * nptl/Makefile (tests): Add new test.
17594
17595 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17596
17597         [BZ #18324]
17598         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
17599         missing wake-up of readers.
17600         * nptl/tst-rwlock15.c: New file.
17601         * nptl/Makefile (tests): Add new test.
17602
17603 2015-06-03  Roland McGrath  <roland@hack.frob.com>
17604
17605         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
17606         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
17607         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
17608         and __nacl_supply_interface_rtld.
17609         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
17610         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
17611         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
17612         Add __nacl_supply_interface_rtld.
17613         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
17614
17615 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17616
17617         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
17618         isfinite.
17619         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17620         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
17621
17622 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17623
17624         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17625         __signbit* with standard C99 macros.
17626         * math/e_exp10l.c: Likewise.
17627         * math/e_exp2l.c: Likewise.
17628         * math/e_scalb.c: Likewise.
17629         * math/e_scalbf.c: Likewise.
17630         * math/e_scalbl.c: Likewise.
17631         * math/s_ldexp.c: Likewise.
17632         * math/s_ldexpf.c: Likewise.
17633         * math/s_ldexpl.c: Likewise.
17634         * math/w_atan2.c: Likewise.
17635         * math/w_atan2f.c: Likewise.
17636         * math/w_atan2l.c: Likewise.
17637         * math/w_cosh.c: Likewise.
17638         * math/w_coshf.c: Likewise.
17639         * math/w_coshl.c: Likewise.
17640         * math/w_exp10.c: Likewise.
17641         * math/w_exp10f.c: Likewise.
17642         * math/w_exp10l.c: Likewise.
17643         * math/w_exp2.c: Likewise.
17644         * math/w_exp2f.c: Likewise.
17645         * math/w_exp2l.c: Likewise.
17646         * math/w_fmod.c: Likewise.
17647         * math/w_fmodf.c: Likewise.
17648         * math/w_fmodl.c: Likewise.
17649         * math/w_hypot.c: Likewise.
17650         * math/w_hypotf.c: Likewise.
17651         * math/w_hypotl.c: Likewise.
17652         * math/w_jnl.c: Likewise.
17653         * math/w_lgamma.c: Likewise.
17654         * math/w_lgamma_r.c: Likewise.
17655         * math/w_lgammaf.c: Likewise.
17656         * math/w_lgammaf_r.c: Likewise.
17657         * math/w_lgammal.c: Likewise.
17658         * math/w_lgammal_r.c: Likewise.
17659         * math/w_pow.c: Likewise.
17660         * math/w_powf.c: Likewise.
17661         * math/w_powl.c: Likewise.
17662         * math/w_remainder.c: Likewise.
17663         * math/w_remainderf.c: Likewise.
17664         * math/w_remainderl.c: Likewise.
17665         * math/w_scalb.c: Likewise.
17666         * math/w_scalbf.c: Likewise.
17667         * math/w_scalbl.c: Likewise.
17668         * math/w_scalbln.c: Likewise.
17669         * math/w_scalblnf.c: Likewise.
17670         * math/w_scalblnl.c: Likewise.
17671         * math/w_sinh.c: Likewise.
17672         * math/w_sinhf.c: Likewise.
17673         * math/w_sinhl.c: Likewise.
17674         * math/w_tgamma.c: Likewise.
17675         * math/w_tgammaf.c: Likewise.
17676         * math/w_tgammal.c: Likewise.
17677         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17678         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17679         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17680         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17681         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17682         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17683         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17684         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17685         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17686         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17687         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17688         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17689         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17690         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17691         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17692         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17693         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17694         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17695         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17696         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17697         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17698         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17699         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17700         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17701         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17702         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17703         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17704         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17705         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17706         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17707         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17708         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17709         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17710         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17711         * stdio-common/printf_fp.c: Likewise.
17712         * stdio-common/printf_fphex.c: Likewise.
17713         * stdio-common/printf_size.c: Likewise.
17714
17715 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17716
17717         [BZ #18470]
17718         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17719         strnlen.
17720         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17721         Remove variable.
17722         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17723         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17724         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17725         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17726         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17727         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17728         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17729         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17730         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17731         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17732
17733         [BZ #18468]
17734         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17735         weak alias of __wmemchr.  Use libc_hidden_weak.
17736         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17737         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17738         instead of wmemchr.
17739
17740 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17741
17742         [BZ #18383]
17743         * elf/tst-tlsalign-extern.c: New file.
17744         * elf/tst-tlsalign-extern-static.c: New file.
17745         * elf/tst-tlsalign-vars.c: New file.
17746         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17747         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17748         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17749         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17750         (test-xfail-tst-tlsalign-extern-static): New variable.
17751
17752 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17753
17754         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17755         Use variable name _sc_err instead of err.
17756         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17757         instead of ret.
17758         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17759         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17760         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17761         (INLINE_SYSCALL): Likewise.
17762
17763         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17764         * include/string.h (__strnlen): Use libc_hidden_proto.
17765         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17766         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17767         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17768         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17769         (libc_hidden_def): Undefine and redefine.
17770         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17771         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17772         __GI_strnlen.
17773         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17774         libc_hidden_def.
17775         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17776
17777         [BZ #18469]
17778         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17779         weak alias of __towlower.  Use libc_hidden_weak.
17780         (towupper): Rename to __towupper and define as weak alias of
17781         __towupper.  Use libc_hidden_weak.
17782         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17783         (__towupper): Likewise.
17784         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17785         __towlower instead of towlower.
17786
17787 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17788
17789         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17790         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17791
17792 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17793
17794         * sysdeps/aarch64/libm-test-ulps: Update.
17795
17796 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17797
17798         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17799         Define.
17800         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17801         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17802         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17803         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17804         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17805         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17806         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17807
17808 2015-06-01  Martin Sebor  <msebor@redhat.com>
17809
17810         [BZ #18116]
17811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17812         (__setcontext): Use extended four-operand version of mtsf whenever
17813         possible.
17814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17815         (__novec_swapcontext): Likewise.
17816
17817 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17818
17819         * benchtests/scripts/compare_bench.py: New file.
17820         * benchtests/scripts/import_bench.py (mean): New function.
17821         (split_list): Likewise.
17822         (do_for_all_timings): Likewise.
17823         (compress_timings): Likewise.
17824
17825         * benchtests/scripts/import_bench.py: New file.
17826         * benchtests/scripts/validate_benchout.py: Import import_bench
17827         instead of jsonschema.
17828         (validate_bench): Remove function.
17829         (main): Use import_bench.
17830
17831 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17832
17833         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17834         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17835
17836 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17837
17838         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17839
17840 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17841
17842         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17843         set THREAD_SELF->tid to a magic value and futex-wake it.
17844         Pass its address to the thread_exit system call.
17845         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17846         bit is clear.
17847         * sysdeps/nacl/lowlevellock.h: New file.
17848         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17849
17850         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17851         Add TIMEOUT to current time, don't subtract it.
17852
17853 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17854
17855         [BZ #2981]
17856         [BZ #18422]
17857         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17858         ($(objpfx)tst-audit2.out): Also depend on
17859         $(objpfx)tst-auditmod9b.so.
17860         * elf/tst-audit2.c: Include <dlfcn.h>.
17861         (calloc_called): New.
17862         (calloc): Allow to be called more than once.
17863         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17864
17865 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17866
17867         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17868         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17869
17870 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17871
17872         * stdlib/monetary.h: Fix comment.
17873
17874 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17875
17876         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17877         Avoid using variables in #defines that might cause shadowing.
17878         (INTERNAL_VSYSCALL_CALL): Likewise.
17879
17880 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17881
17882         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17883
17884         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17885         * nptl/lll_timedlock_wait.c: ... to this new file.
17886         * nptl/Makefile (libpthread-routines): Add it.
17887         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17888         * nptl/lll_timedwait_tid.c: ... to this new file.
17889         * nptl/Makefile (libpthread-routines): Add it.
17890         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17891         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17892         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17893         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17894         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17895         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17896         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17897         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17898         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17899         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17900
17901 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17902
17903         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17904         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17905         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17906         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17907         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17908         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17909         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17910         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17911         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17912         * sysdeps/unix/sysv/linux/tile/sysdep.h
17913         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17914         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17915         using vDSO syscall macro.
17916
17917 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17918
17919         [BZ #17293]
17920         * uk_UA: Fix sorting order for Ukrainian locale
17921
17922 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17923
17924         * stdlib/monetary.h: Fix comment.
17925
17926 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17927
17928         [BZ #18234]
17929         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17930         st_mtim and st_ctim members.
17931         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17932         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17933         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17934         (struct stat64): Likewise.
17935         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17936         (struct stat64): Likewise.
17937         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17938         (struct stat64): Likewise.
17939
17940 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17941
17942         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17943         Define and include sysdep-vdso.h.
17944         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17945         Likewise.
17946         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17947         Likewise.
17948         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17949         Define with VDSO_SYMBOL and use PTR_MANGLE.
17950         (__vdso_clock_gettime): Likewise.
17951         (__vdso_clock_getres): Likewise.
17952         (_libc_vdso_platform_setup): Likewise.
17953         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17954         Likewise.
17955         (_libc_vdso_platform_setup): Likewise.
17956         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17957         Likewise.
17958         (__vdso_clock_gettime): Likewise.
17959         (__vdso_clock_getres): Likewise.
17960         (__vdso_get_tbfreq): Likewise.
17961         (__vdso_getcpu): Likewise.
17962         (__vdso_time): Likewise.
17963         (__vdso_sigtramp_rt64): Likewise.
17964         (__vdso_signtramp32): Likewise.
17965         (__vdso_sigtramp_rt32): Likewise.
17966         (_libc_vdso_platform_setup): Likewise.
17967         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17968         Likewise.
17969         (__vdso_clock_gettime): Likewise.
17970         (__vdso_clock_getres): Likewise.
17971         (_libc_vdso_platform_setup): Likewise.
17972         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17973         Likewise.
17974         (__vdso_clock_gettime): Likewise.
17975         (_libc_vdso_platform_setup): Likewise.
17976         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17977         Likewise.
17978         (__vdso_getcpu): Likewise.
17979         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17980         Use VDSO_SYMBOL macro to define.
17981         (__vdso_clock_gettime): Likewise.
17982         (__vdso_clock_getres): Likewise.
17983         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17984         Likewise.
17985         (__vdso_clock_gettime): Likewise.
17986         (__vdso_clock_getres): Likewise.
17987         (__vdso_get_tbfreq): Likewise.
17988         (__vdso_getcpu): Likewise.
17989         (__vdso_time): Likewise.
17990         (__vdso_sigtramp_rt64): Likewise.
17991         (__vdso_signtramp32): Likewise.
17992         (__vdso_sigtramp_rt32): Likewise.
17993         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17994         Likewise.
17995         (__vdso_clock_gettime): Likewise.
17996         (__vdso_clock_getres): Likewise.
17997         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17998         Likewise.
17999         (__vdso_clock_gettime): Likewise.
18000         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
18001         Likewise.
18002         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
18003         macro.
18004         (INTERNAL_VSYSCALL): Likewise.
18005         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
18006         Remove macro.
18007         (INTERNAL_VSYSCALL): Likewise.
18008         (INTERNAL_VSYSCALL_NCS): Likewise.
18009         (INTERNAL_VSYSCALL_CALL): New macro.
18010         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
18011         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
18012         Likewise.
18013         (INTERNAL_VSYSCALL): Likewise.
18014         (INTERNAL_VSYSCALL_NCS): Likewise.
18015         (INTERNAL_VSYSCALL_CALL): New macro.
18016         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
18017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
18018         (INLINE_VSYSCALL): Remove macro.
18019         (INTERNAL_VSYSCALL): Remove macro.
18020         (INTERNAL_VSYSCALL_NCS): Remove macro.
18021         (INTERNAL_VSYSCALL_CALL): New macro.
18022         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
18023         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
18024         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
18025         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
18026         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
18027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
18028         (INLINE_VSYSCALL): Remove macro.
18029         (INTERNAL_VSYSCALL): Likewise.
18030         (INTERNAL_VSYSCALL_NCS): Likewise.
18031         (INTERNAL_VSYSCALL_CALL): New macro.
18032         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
18033         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
18034         PTR_DEMANGLE on vDSO pointer.
18035         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
18036         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
18037         macro.
18038         (INTERNAL_SYSCALL): Likewise.
18039         (INTERNAL_VSYSCALL_NCS): Remove macro.
18040         (INTERNAL_VSYSCALL_CALL): New macro.
18041         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
18042         Remove macro.
18043         (INTERNAL_VSYSCALL): Likewise.
18044         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
18045         sysdep-vdso.h instead of libc-vdso.h.
18046         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
18047         definition.
18048         (INLINE_VSYSCALL): Likewise.
18049         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
18050         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
18051         definition.
18052         (INLINE_VSYSCALL): Likewise.
18053         (INTERNAL_VSYSCALL): Likewise.
18054         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
18055         * sysdeps/unix/sysv/linux/timespec_get.c
18056         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
18057         (timespec_get): Use ANSI prototype.
18058         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
18059         and definition for Linux.
18060
18061 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
18062
18063         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
18064         * include/libc-symbols.h: libmvec_hidden_* macro series added.
18065
18066 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18067
18068         [BZ #2981]
18069         [BZ #18410]
18070         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
18071         for missing DT_PLTRELSZ.
18072
18073 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18074
18075         Remove obsolete aliases that broke 'locale -a'
18076         [BZ #18412]
18077         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
18078         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
18079         breaking some applications that use 'locale -a' output.
18080         Change the encoding of this file from Latin-1 to ASCII to avoid
18081         other potential problems with people grepping this file.
18082
18083 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18084
18085         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
18086         -fasynchronous-unwind-tables.
18087         (CFLAGS-sendto.c): Likewise.
18088         (CFLAGS-sendmsg.c): Likewise.
18089         (CFLAGS-connect.c): Likewise.
18090         (CFLAGS-recvmsg.c): Likewise.
18091         (CFLAGS-recvfrom.c): Likewise.
18092         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
18093         (SOCKETCALL): New macro: non-cancellable socketcall.
18094         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
18095         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
18096         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
18097         * sysdeps/unix/sysv/linux/accept.c: New file.
18098         * sysdeps/unix/sysv/linux/bind.c: Likewise.
18099         * sysdeps/unix/sysv/linux/connect.c: Likewise.
18100         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
18101         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
18102         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
18103         * sysdeps/unix/sysv/linux/listen.c: Likewise.
18104         * sysdeps/unix/sysv/linux/recv.c: Likewise.
18105         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
18106         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
18107         * sysdeps/unix/sysv/linux/send.c: Likewise.
18108         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
18109         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
18110         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
18111         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
18112         * sysdeps/unix/sysv/linux/socket.c: Likewise.
18113         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
18114         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
18115         prototype.
18116         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
18117         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18118         instead of __internal_xxx function.
18119         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
18120         prototype.
18121         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
18122         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18123         instead of __internal_xxx function.
18124         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
18125         prototype.
18126         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
18127         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18128         instead of __internal_xxx function.
18129         * sysdeps/unix/sysv/linux/accept.S: Remove file.
18130         * sysdeps/unix/sysv/linux/bind.S: Likewise.
18131         * sysdeps/unix/sysv/linux/connect.S: Likewise.
18132         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
18133         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
18134         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
18135         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
18136         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
18137         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
18138         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
18139         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
18140         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
18141         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
18142         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
18143         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
18144         * sysdeps/unix/sysv/linux/listen.S: Likewise.
18145         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
18146         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
18147         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
18148         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
18149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
18150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
18151         * sysdeps/unix/sysv/linux/recv.S: Likewise.
18152         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
18153         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
18154         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
18155         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
18156         * sysdeps/unix/sysv/linux/send.S: Likewise.
18157         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
18158         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
18159         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
18160         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
18161         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
18162         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
18163         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
18164         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
18165         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
18166         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
18167         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
18168         socketcall is implemented in GLIBC.
18169
18170 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18171
18172         * soft-fp/fmadf4.c: Include <libc-internal.h>.
18173         (__fma): Ignore uninitialized warnings around packing.
18174         * soft-fp/fmasf4.c: Include <libc-internal.h>.
18175         (__fmaf): Ignore uninitialized warnings around packing.
18176         * soft-fp/fmatf4.c: Include <libc-internal.h>.
18177         (__fmal): Ignore uninitialized warnings around packing.
18178
18179         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
18180         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18181         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
18182         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18183
18184         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
18185         switch statement into default case.
18186         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
18187
18188         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
18189         a conditional in forcing "inexact".
18190         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
18191         Likewise.
18192
18193 2015-05-22  Roland McGrath  <roland@hack.frob.com>
18194
18195         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
18196         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
18197         for each INTERNAL_SYSCALL use.
18198
18199 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18200
18201         [BZ #438]
18202         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
18203         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
18204         variable.
18205
18206         [BZ #18444]
18207         * string/basename.c (basename): Rename to __basename and define as
18208         weak alias of __basename.  Use libc_hidden_weak.
18209         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
18210         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
18211         __basename instead of basename.
18212         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
18213         Remove variable.
18214         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
18215
18216 2015-05-18  Florian Weimer  <fweimer@redhat.com>
18217
18218         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
18219         (_IO_JUMPS_FILE_plus): New.
18220         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
18221         _IO_CAST_FIELD_ACCESS.
18222         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
18223         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
18224         * libio/freopen.c (freopen): Likewise.
18225         * libio/freopen64.c (freopen64): Likewise.
18226         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
18227         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
18228         * libio/iofwide.c (_IO_fwide): Likewise.
18229         * libio/memstream.c (open_memstream): Likewise.
18230         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18231         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
18232         * libio/oldiopopen.c (_IO_old_popen): Likewise.
18233
18234 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
18235
18236         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
18237         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
18238         NADJ.
18239         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
18240         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
18241         NADJ.
18242         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
18243         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
18244         NADJ.
18245
18246         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
18247         (p == 4) case.
18248
18249         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
18250         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
18251         Remove variable.
18252         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
18253         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
18254         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
18255
18256 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18257
18258         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
18259         Adjust jump table label generation macros.
18260
18261 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18262
18263         * stdio-common/vfprintf.c (vfprintf): Move local variables
18264         args_malloced, specs, specs_malloced, and the code after
18265         do_positional to the printf_positional function.
18266         (printf_positional): New function.
18267
18268 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18269
18270         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
18271         function.
18272         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
18273         STEP4_TABLE, process_arg): Move macro definitions
18274         out of the vfprintf function.  (Cosmetic change only.)
18275
18276 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
18277
18278         * benchtests/Makefile (stdio-common-bench): Define.
18279         (benchset): Add stdio-common-bench.
18280         * sprintf-inputs: New file.
18281         * sprintf-source.c: New file.
18282
18283 2015-05-21  Andreas Schwab  <schwab@suse.de>
18284
18285         [BZ #13028]
18286         [BZ #17053]
18287         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
18288         of struct __res_state.
18289         * resolv/res_send.c (__libc_res_nsend): Likewise.
18290         (get_nsaddr): New function.
18291         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
18292         statp directly.
18293
18294 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
18295
18296         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
18297         -D_POSIX_C_SOURCE=199506L.
18298
18299         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
18300
18301         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
18302         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
18303         Do not mention otherwise.
18304         [POSIX] (_XOPEN_VERSION): Do not expect.
18305         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
18306         [POSIX] (_POSIX2_C_BIND): Likewise.
18307         [POSIX] (_POSIX2_VERSION): Likewise.
18308         [POSIX] (_XOPEN_XPG2): Likewise.
18309         [POSIX] (_XOPEN_XPG3): Likewise.
18310         [POSIX] (_XOPEN_XPG4): Likewise.
18311         [POSIX] (_XOPEN_UNIX): Likewise.
18312         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
18313         [POSIX] (_POSIX_BARRIERS): Likewise.
18314         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
18315         [POSIX] (_POSIX_CPUTIME): Likewise.
18316         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
18317         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
18318         [POSIX] (_POSIX_SHELL): Likewise.
18319         [POSIX] (_POSIX_SPAWN): Likewise.
18320         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
18321         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
18322         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
18323         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
18324         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
18325         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
18326         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
18327         [POSIX] (_XBS5_LP64_OFF64): Likewise.
18328         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
18329         [POSIX] (_POSIX_TIMEOUTS): Likewise.
18330         [POSIX] (_POSIX2_PBS): Likewise.
18331         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
18332         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
18333         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
18334         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
18335         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
18336         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
18337         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
18338         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
18339         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
18340         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
18341         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
18342         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
18343         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
18344         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
18345         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
18346         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
18347         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
18348         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
18349         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
18350         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
18351         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
18352         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
18353         [POSIX] (_SC_2_C_BIND): Likewise.
18354         [POSIX] (_SC_2_C_VERSION): Likewise.
18355         [POSIX] (_SC_2_PBS): Likewise.
18356         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
18357         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
18358         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
18359         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
18360         [POSIX] (_SC_2_PBS_TRACK): Likewise.
18361         [POSIX] (_SC_ATEXIT_MAX): Likewise.
18362         [POSIX] (_SC_BARRIERS): Likewise.
18363         [POSIX] (_SC_BASE): Likewise.
18364         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
18365         [POSIX] (_SC_DEVICE_IO): Likewise.
18366         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
18367         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
18368         [POSIX] (_SC_FD_MGMT): Likewise.
18369         [POSIX] (_SC_FIFO): Likewise.
18370         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
18371         [POSIX] (_SC_FILE_LOCKING): Likewise.
18372         [POSIX] (_SC_FILE_SYSTEM): Likewise.
18373         [POSIX] (_SC_IOV_MAX): Likewise.
18374         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
18375         [POSIX] (_SC_NETWORKING): Likewise.
18376         [POSIX] (_SC_PAGE_SIZE): Likewise.
18377         [POSIX] (_SC_PASS_MAX): Likewise.
18378         [POSIX] (_SC_PIPE): Likewise.
18379         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
18380         [POSIX] (_SC_REGEXP): Likewise.
18381         [POSIX] (_SC_SHELL): Likewise.
18382         [POSIX] (_SC_SIGNALS): Likewise.
18383         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
18384         [POSIX] (_SC_SPIN_LOCKS): Likewise.
18385         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
18386         [POSIX] (_SC_USER_GROUPS): Likewise.
18387         [POSIX] (_SC_USER_GROUPS_R): Likewise.
18388         [POSIX] (_SC_STREAMS): Likewise.
18389         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
18390         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
18391         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
18392         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
18393         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
18394         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
18395         [POSIX] (_PC_FILESIZEBITS): Likewise.
18396         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
18397         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
18398         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
18399         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
18400         [POSIX] (uid_t): Likewise.
18401         [POSIX] (gid_t): Likewise.
18402         [POSIX] (off_t): Likewise.
18403         [POSIX] (pid_t): Likewise.
18404         [POSIX] (cuserid): Allow.
18405         (_SC_2_CHAR_TERM): Require constant.
18406         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
18407         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
18408         variable.
18409
18410 2015-05-20  Roland McGrath  <roland@hack.frob.com>
18411
18412         * sysdeps/nacl/pthread-pids.h: New file.
18413         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
18414         (create_thread): Use __nacl_get_tid to initialize PD->tid.
18415
18416         * nptl/pthread-pids.h: New file.
18417         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
18418         * nptl/nptl-init.c: Include <pthread-pids.h>.
18419         (__pthread_initialize_minimal_internal):
18420         Call __pthread_initialize_pids instead of set_tid_address syscall.
18421
18422         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
18423         * sysdeps/posix/usleep.c: ... here.
18424
18425 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18426
18427         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
18428         call_pselect6 object.
18429         [$(subdir) = io]: Remove call_sync_file_range object.
18430         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
18431         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
18432         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
18433         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
18434
18435 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
18436
18437         * math/s_cproj.c: Add include "math_private.h".
18438         * math/s_cprojf.c: Likewise.
18439         * math/s_cprojl.c: Likewise.
18440
18441 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
18442
18443         [BZ #18244]
18444         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
18445         high mantissa bit when testing whether P is a NaN.
18446         * math/libm-test.inc (remainder_test_data): Add more tests.
18447         (remquo_test_data): Likewise.
18448
18449         [BZ #18049]
18450         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
18451         below -32, return the argument, with underflow if subnormal.
18452         * math/auto-libm-test-in: Add more tests of atanh.
18453         * math/auto-libm-test-out: Regenerated.
18454
18455 2015-05-19  Roland McGrath  <roland@hack.frob.com>
18456
18457         [BZ #18434]
18458         * nptl/tst-sem15.c: New file.
18459         * nptl/Makefile (tests): Add it.
18460         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
18461         s/<</>>/ to fix typo in EOVERFLOW check.
18462         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
18463
18464 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18465
18466         * manual/strings.texi (envz_remove): Fix typo in safety
18467         annotations.
18468
18469 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18470             Steve Ellcey  <sellcey@imgtec.com>
18471
18472         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
18473         in order to avoid strict alias warnings.
18474         (iruserok_af): Ditto for ra.
18475
18476 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
18477
18478         [BZ #17581]
18479         * malloc/hooks.c
18480         (magicbyte): Convert to a function and avoid returning 0x01.
18481         (mem2mem_check): Avoid using a length byte equal to the magic byte.
18482         (mem2chunk_check): Fix unsigned comparisons to zero.
18483         Hoist defs of sz and magic.
18484
18485 2015-05-19  Richard Henderson  <rth@redhat.com>
18486
18487         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
18488
18489         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18490
18491 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18492
18493         [BZ #16159]
18494         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
18495         * malloc/arena.c (arena_lock): Check if arena is corrupt.
18496         (reused_arena): Find a non-corrupt arena.
18497         (heap_trim): Pass arena to unlink.
18498         * malloc/hooks.c (malloc_check_get_size): Pass arena to
18499         malloc_printerr.
18500         (top_check): Likewise.
18501         (free_check): Likewise.
18502         (realloc_check): Likewise.
18503         * malloc/malloc.c (malloc_printerr): Add arena argument.
18504         (unlink): Likewise.
18505         (munmap_chunk): Adjust.
18506         (ARENA_CORRUPTION_BIT): New macro.
18507         (arena_is_corrupt): Likewise.
18508         (set_arena_corrupt): Likewise.
18509         (sysmalloc): Use mmap if there are no usable arenas.
18510         (_int_malloc): Likewise.
18511         (__libc_malloc): Don't fail if arena_get returns NULL.
18512         (_mid_memalign): Likewise.
18513         (__libc_calloc): Likewise.
18514         (__libc_realloc): Adjust for additional argument to
18515         malloc_printerr.
18516         (_int_free): Likewise.
18517         (malloc_consolidate): Likewise.
18518         (_int_realloc): Likewise.
18519         (_int_memalign): Don't touch corrupt arenas.
18520         * malloc/tst-malloc-backtrace.c: New test case.
18521
18522         * Makefile (summarize-tests): Fix return value on success.
18523
18524         * manual/string.texi (Envz Functions): Add envz_remove.
18525
18526 2015-05-18  Roland McGrath  <roland@hack.frob.com>
18527
18528         * sysdeps/posix/opendir.c: Include <stdbool.h>.
18529         (invalid_name): New function, broken out of ...
18530         (__opendirat): ... here.  Call it.
18531         (need_isdir_precheck): New function, broken out of ...
18532         (__opendirat): ... here.  Call it.
18533         Use __fxstatat64, not __xstatat64.
18534         (opendir_oflags): New function, broken out of ...
18535         (__opendirat): ... here.  Call it.
18536         (opendir_tail): New function, broken out of ...
18537         (__opendirat): ... here.  Call it.
18538         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
18539         opendir_tail, rather than punting to __opendirat.
18540         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
18541
18542 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18543
18544         * .gitignore: Ignore generated *.pyc.
18545
18546 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
18547
18548         * include/stdio.h: Define __need_wint_t.
18549         * test-skeleton.c: Avoid `for' loop initial declaration.
18550         * nptl/tst-initializers1.c: Use test-skeleton.c.
18551
18552 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18553
18554         [BZ #18418]
18555         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
18556
18557 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18558
18559         [BZ #16352]
18560         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
18561         (__ieee754_atanh): Force underflow exception for results with
18562         small absolute value.
18563         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
18564         (__ieee754_atanhf): Force underflow exception for results with
18565         small absolute value.
18566         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
18567         (__ieee754_atanh): Force underflow exception for results with
18568         small absolute value.
18569         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
18570         (__ieee754_atanhf): Force underflow exception for results with
18571         small absolute value.
18572         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
18573         (__ieee754_atanhl): Force underflow exception for results with
18574         small absolute value.
18575         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
18576         (__ieee754_atanhl): Force underflow exception for results with
18577         small absolute value.
18578         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
18579         (__ieee754_atanhl): Force underflow exception for results with
18580         small absolute value.
18581         * math/auto-libm-test-in: Do not allow missing underflow
18582         exceptions from atanh.
18583         * math/auto-libm-test-out: Regenerated.
18584
18585         [BZ #18221]
18586         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
18587         2**-28 as threshold for returning x or +/- 1/x.
18588         * math/auto-libm-test-in: Add more tests of tan.
18589         * math/auto-libm-test-out: Regenerated.
18590
18591         [BZ #18220]
18592         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
18593         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
18594         * math/auto-libm-test-in: Add another test of lgamma.
18595         * math/auto-libm-test-out: Regenerated.
18596
18597 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
18598
18599         * stdio-common/printf_fp.c (___printf_fp): Use abs.
18600         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
18601         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
18602         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
18603         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
18604         (ADD2A): Use fabs.  (SUB2A): Use fabs.
18605         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
18606         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
18607         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
18608         (log1): Use fabs.  (my_log2): Use fabs.
18609         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
18610         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
18611         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
18612         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
18613         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
18614         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
18615         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
18616         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
18617         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
18618         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
18619         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
18620
18621 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18622
18623         [BZ #18217]
18624         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18625         as threshold for returning 1 - x.
18626         * math/auto-libm-test-in: Add more tests of erfc.
18627         * math/auto-libm-test-out: Regenerated.
18628
18629 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18630
18631         [BZ #18196]
18632         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18633         threshold for large arguments.
18634         * math/auto-libm-test-in: Add another test of atan.
18635         * math/auto-libm-test-out: Regenerated.
18636
18637         [BZ #16339]
18638         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18639         (__log1p): Force underflow exception for results with small
18640         absolute value.
18641         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18642         (__log1pf): Force underflow exception for results with small
18643         absolute value.
18644         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18645         (__log1p): Force underflow exception for results with small
18646         absolute value.
18647         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18648         (__log1pf): Force underflow exception for results with small
18649         absolute value.
18650         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18651         (__log1pl): Force underflow exception for results with small
18652         absolute value.
18653         * math/auto-libm-test-in: Do not allow missing underflow
18654         exceptions from log1p.
18655         * math/auto-libm-test-out: Regenerated.
18656
18657 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18658             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18659
18660         [BZ #16704]
18661         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18662
18663 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18664
18665         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18666         (libmvec): New variable.
18667         * configure.ac: Added option for mathvec build.
18668         * configure: Regenerated.
18669         * mathvec/Depend: New file.
18670         * mathvec/Makefile: New file.
18671         * shlib-versions: Added libmvec.
18672         * math/Makefile: Added rule for libm.so installation.
18673
18674         * bits/math-vector.h: New file.
18675         * bits/libm-simd-decl-stubs.h: New header.
18676         * math/Makefile (headers): Added new header
18677         libm-simd-decl-stubs.h.
18678         * math/math.h (__MATHCALL_VEC): New macro.
18679
18680         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18681         for conditions in testing functions.
18682         * math/Makefile: Added call of libm-have-vector-test.sh.
18683         * math/libm-test.inc (HAVE_VECTOR): New macros.
18684
18685         * math/libm-test.inc: START refactored.
18686         * math/test-double.c (TEST_MATHVEC): Add define.
18687         * math/test-float.c: Likewise.
18688         * math/test-idouble.c: Likewise.
18689         * math/test-ifloat.c: Likewise.
18690         * math/test-ildoubl.c: Likewise.
18691         * math/test-ldouble.c: Likewise.
18692         * sysdeps/generic/math-tests-arch.h
18693         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18694         architecture check.
18695
18696         * math/test-double.c (FUNC_TEST): New macro.
18697         * math/test-float.c: Likewise.
18698         * math/test-idouble.c: Likewise.
18699         * math/test-ifloat.c: Likewise.
18700         * math/test-ildoubl.c: Likewise.
18701         * math/test-ldouble.c: Likewise.
18702         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18703
18704 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18705
18706         * sysdeps/nacl/fdopendir.c: New file.
18707
18708         * dirent/scandir-tail.c: New file.
18709         * dirent/scandir64-tail.c: New file.
18710         * dirent/Makefile (routines): Add them.
18711         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18712         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18713         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18714         [!SCANDIR] (SCANDIR_TAIL): New macro.
18715         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18716         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18717         (SCANDIRAT): Macro removed.
18718         (SCANDIR_TAIL): New macro.
18719         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18720         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18721         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18722         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18723         (READDIR): Macro removed.
18724         (SCANDIR_TAIL): New macro.
18725         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18726         (SCANDIR_TAIL): New macro.
18727
18728         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18729         * dirent/scandir-cancel.c: ... to this new file.
18730         * dirent/Makefile (routines): Add it.
18731         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18732         * sysdeps/unix/sysv/linux/i386/scandir64.c
18733         (SKIP_SCANDIR_CANCEL): Macro removed.
18734         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18735
18736         * dirent/tst-scandir.c: New file.
18737         * dirent/tst-scandir64.c: New file.
18738         * dirent/Makefile (tests): Add them.
18739
18740 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18741
18742         [BZ #18409]
18743         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18744
18745 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18746
18747         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18748         list.
18749
18750 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18751
18752         * benchtests/bench-strcoll.c: New benchmark.
18753         * benchtests/Makefile: Generate locales and run benchmark.
18754         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18755         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18756         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18757         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18758         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18759         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18760         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18761         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18762         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18763         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18764         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18765         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18766         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18767         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18768         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18769         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18770         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18771         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18772         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18773         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18774         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18775         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18776         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18777         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18778
18779 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18780
18781         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18782         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18783
18784 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18785
18786         * posix/uname-values.h: New file.
18787         * posix/uname.c: Include that instead of <config-name.h>.
18788         * sysdeps/nacl/uname-values.h: New file.
18789         * sysdeps/arm/nacl/uname-values.h: New file.
18790
18791 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18792
18793         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18794         splitting into fields.
18795
18796 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18797
18798         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18799         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18800         * locale/localeinfo.h: Add enum collation_encoding_type.
18801         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18802         * programs/ld-collate.c (collate_output): Add encoding type info.
18803         * string/strcoll_l.c (STRDIFF): New function.
18804         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18805         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18806
18807 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18808
18809         [BZ #18397]
18810         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18811         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18812         <fpu_control.h> instead of <math/fpu_control.c>.
18813         * sysdeps/mips/mips32/fpu/Makefile: New file.
18814
18815 2015-05-11  Andreas Schwab  <schwab@suse.de>
18816
18817         [BZ #18007]
18818         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18819         nss_endgrent.
18820         (_nss_compat_endgrent): Call nss_endgrent.
18821         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18822         nss_endpwent.
18823         (_nss_compat_endpwent): Call nss_endpwent.
18824         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18825         needent, call nss_setspent only if non-zero.
18826         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18827         (internal_endspent): Don't call nss_endspent.
18828         (_nss_compat_endspent): Call nss_endspent.
18829         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18830         Remove.  All uses removed.
18831         (internal_setent): Remove parameter stayopen, add parameter
18832         stream.  Use it instead of global variable.
18833         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18834         (internal_endent, internal_getent): Add parameter stream.  Use it
18835         instead of global variable.
18836         (CONCAT(_nss_files_end,ENTNAME))
18837         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18838         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18839         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18840         uses removed.
18841         (internal_setent, internal_endent): Add parameter stream.  Use it
18842         instead of global variable.
18843         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18844         stream.
18845         (get_next_alias): Add parameter stream.
18846         (_nss_files_getaliasent_r): Pass global stream.
18847         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18848         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18849         (_nss_files_gethostbyname4_r): Pass local stream to
18850         internal_setent, internal_getent and internal_endent.  Remove
18851         locking.
18852
18853 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18854
18855         * tst-strfmon1.c (tests): Update expected currency symbol.
18856
18857 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18858
18859         * sysdeps/nacl/gethostname.c: New file.
18860
18861 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18862
18863         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18864         and sinh.
18865         * math/auto-libm-test-out: Regenerated.
18866         * sysdeps/i386/fpu/libm-test-ulps: Update.
18867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18868
18869 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18870
18871         [BZ #18125]
18872         * stdlib/tst-setcontext3.c: New file.
18873         * stdlib/tst-setcontext3.sh: New file.
18874         * stdlib/Makefile (tests): Add tst-setcontext3.
18875         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18876         to verify test program created output file.
18877         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18878         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18879         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18880         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18881
18882 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18883
18884         [BZ #18383]
18885         * elf/tst-tlsalign.c: New file.
18886         * elf/tst-tlsalign-static.c: New file.
18887         * elf/tst-tlsalign-lib.c: New file.
18888         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18889         (tests-static): Add tst-tlsalign-static.
18890         (modules-names): Add tst-tlsalign-lib.
18891         (test-xfail-tst-tlsalign): New variable.
18892         (test-xfail-tst-tlsalign-static): New variable.
18893
18894         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18895         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18896
18897 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18898
18899         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18900         csqrt, erfc, sin and sincos.
18901         * math/auto-libm-test-out: Regenerated.
18902         * sysdeps/i386/fpu/libm-test-ulps: Update.
18903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18904
18905 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18906
18907         * sysdeps/aarch64/libm-test-ulps: Update.
18908
18909 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18910
18911         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18912         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18913         * math/auto-libm-test-out: Regenerated.
18914         * sysdeps/i386/fpu/libm-test-ulps: Update.
18915         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18916
18917 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18918
18919         [BZ #18265]
18920         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18921         (wcsncpy): Likewise.
18922
18923 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18924
18925         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18926         Assume __ASSUME_FALLOCATE is always true.
18927         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18928         (__posix_fallocate64_l64): Likweise.
18929         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18930         (posix_fallocate): Likewise.
18931         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18932         (__posix_fallocate64_l64): Likewise.
18933         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18934         [!__ASSUME_FALLOCATE]: Add comment.
18935
18936 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18937
18938         * sysdeps/unix/sysv/linux/i386/Makefile
18939         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18940         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18941         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18942         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18943         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18944         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18945         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18946
18947 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18948
18949         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18950         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18951         tgamma.
18952         * math/auto-libm-test-out: Regenerated.
18953         * sysdeps/i386/fpu/libm-test-ulps: Update.
18954         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18955
18956 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18957
18958         * math/auto-libm-test-in: Add more tests of tgamma.
18959         * math/auto-libm-test-out: Regenerated.
18960         * sysdeps/i386/fpu/libm-test-ulps: Update.
18961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18962
18963         * math/auto-libm-test-in: Add more tests of tanh.
18964         * math/auto-libm-test-out: Regenerated.
18965         * sysdeps/i386/fpu/libm-test-ulps: Update.
18966         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18967
18968         * math/auto-libm-test-in: Add more tests of tan.
18969         * math/auto-libm-test-out: Regenerated.
18970         * sysdeps/i386/fpu/libm-test-ulps: Update.
18971         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18972
18973         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18974         * math/auto-libm-test-out: Regenerated.
18975         * sysdeps/i386/fpu/libm-test-ulps: Update.
18976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18977
18978         * math/auto-libm-test-in: Add another test of pow.
18979         * math/auto-libm-test-out: Regenerated.
18980         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18981
18982         * math/auto-libm-test-in: Add more tests of lgamma.
18983         * math/auto-libm-test-out: Regenerated.
18984         * sysdeps/i386/fpu/libm-test-ulps: Update.
18985         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18986
18987         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18988         log1p.
18989         * math/auto-libm-test-out: Regenerated.
18990         * sysdeps/i386/fpu/libm-test-ulps: Update.
18991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18992
18993 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18994
18995         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18996         Elf64_Chdr structs and ELFCOMPRESS constants.
18997
18998 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18999
19000         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
19001         expm1.
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         * math/auto-libm-test-in: Add more tests of erf and erfc.
19007         * math/auto-libm-test-out: Regenerated.
19008         * sysdeps/i386/fpu/libm-test-ulps: Update.
19009         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19010
19011 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19012
19013         * config.h.in (HAVE_AARCH64_BE): Add.
19014
19015 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
19016
19017         * math/auto-libm-test-in: Add more tests of csqrt.
19018         * math/auto-libm-test-out: Regenerated.
19019         * sysdeps/i386/fpu/libm-test-ulps: Update.
19020         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19021
19022         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19023         * math/auto-libm-test-out: Regenerated.
19024         * sysdeps/i386/fpu/libm-test-ulps: Update.
19025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19026
19027         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
19028
19029 2015-04-29  Roland McGrath  <roland@hack.frob.com>
19030
19031         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
19032         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
19033
19034         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
19035         (euidaccess, eaccess): Define as weak aliases.
19036
19037         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
19038         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
19039         but __suseconds_t is often 'long int' so some sources assume that
19040         type is being used (e.g. they use %ld to print tv_usec).
19041
19042 2015-04-29  Florian Weimer  <fweimer@redhat.com>
19043
19044         [BZ #18007]
19045         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
19046         (CVE-2014-8121)
19047         * nss/tst-nss-getpwent.c: New file.
19048         * nss/Makefile (tests): Add new test.
19049
19050 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
19051
19052         [BZ #18346]
19053         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
19054         exponents less than 48 as cases where high part of mantissa needs
19055         examining to determine whether argument is integral.
19056         * math/libm-test.inc (round_test_data): Add more tests.
19057
19058 2015-04-28  Mark Wielaard  <mjw@redhat.com>
19059
19060         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
19061
19062 2015-04-27  David S. Miller  <davem@davemloft.net>
19063
19064         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
19065         __tls_get_addr.
19066         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
19067
19068 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
19069
19070         [BZ#18333]
19071         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
19072
19073 2015-04-27  Florian Weimer  <fweimer@redhat.com>
19074
19075         [BZ#18333]
19076         * time/tzset.c (parse_tzname): Return error on memory allocation
19077         failure.
19078         * test-skeleton.c (struct temp_name_list): Change type of name
19079         member to non-const.
19080         (add_temp_file): Create a copy of the file name.
19081         (delete_temp_files): Deallocate memory.
19082         (create_temp_file): Add comment.
19083
19084 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19085
19086         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
19087         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
19088
19089 2015-04-24  Roland McGrath  <roland@hack.frob.com>
19090
19091         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
19092         * sysdeps/arm/configure: Regenerated.
19093
19094 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19095
19096         [BZ #17715]
19097         * time/tzfile.c (__tzfile_read): Check for large values of
19098         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
19099         * time/tzset.c (__tzstring_len): New function, based on the old
19100         __tzstring function.
19101         (__tzstring): Call __tzstring_len.
19102         (parse_tzname): New helper function extracted from
19103         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
19104         the input string.
19105         (parse_offset): New helper function extracted from
19106         __tzset_parse_tz.  Replace switch with fallthrough with
19107         initialization before sscanf.
19108         (parse_rule): Likewise.
19109         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
19110         new-style function definition.
19111         * timezone/Makefile (tests): Add tst-tzset.
19112         (tst-tzset.out): Dependencies on time zone files.
19113         (tst-tzset-ENV): Set TZDIR.
19114         (testdata/XT%): Copy crafted time zone files.
19115         * timezone/README: Mention crafted time zone files.
19116         * timezone/testdata/XT1, timezone/testdata/XT2,
19117         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
19118         files.
19119         * timezone/tst-tzset.c: New test.
19120
19121 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19122
19123         * Makeconfig (+gccwarn): Remove -Winline.
19124
19125 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19126
19127         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
19128
19129 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19130
19131         * NEWS: Mention sysconf() cache information support for s390.
19132         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
19133
19134 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
19135
19136         * math/k_casinh.c (__kernel_casinh): Use __copysign.
19137         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
19138         (__nearbyint): Likewise.
19139         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
19140         (copysignl): Likewise.
19141
19142 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
19143
19144         [BZ #18287]
19145         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
19146         based on padding.  (CVE-2015-1781)
19147
19148 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19149
19150         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
19151         libc-vdso.h.
19152         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
19153         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
19154         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
19155         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
19156         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
19157         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
19158         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
19159         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
19160         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
19161         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
19162         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
19163         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
19164         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
19165         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
19166         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
19167         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
19168         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
19169         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
19170         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
19171         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
19172         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
19173         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
19174         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
19175
19176 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
19177
19178         * stdlib/setenv.c (__add_to_environ):
19179         Dump core quickly if setenv (..., NULL, ...) is called.
19180         This time, do it the right way, and pacify GCC with a pragma.
19181
19182 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19183
19184         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
19185         IMAP->l_prev cannot be null, and #if out the code for the contrary
19186         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
19187         believe that NS (&_dl_ns[NSID]) could point outside the array.
19188
19189         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
19190         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
19191         before using NSID as an index.
19192
19193 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
19194
19195         [BZ #17825]
19196         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
19197         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
19198         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
19199
19200 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19201
19202         Add preliminary port to Google Native Client on ARM.
19203         * abi-tags (.*-.*-nacl.*): New entry.
19204         * sysdeps/arm/nacl: New directory.
19205         * sysdeps/nacl: New directory.
19206
19207 2015-04-16  David S. Miller  <davem@davemloft.net>
19208
19209         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
19210         lowlevellock-futex.h
19211
19212 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
19213
19214         * sysdeps/tile/configure.ac: New file.
19215         * sysdeps/tile/configure: Regenerated.
19216
19217 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19218
19219         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
19220         conditionals for weak_alias and libc_hidden_weak.
19221         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
19222         libc_hidden_weak and weak_alias.
19223         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
19224         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
19225         and weak_alias for static one.
19226
19227 2015-04-15  David S. Miller  <davem@davemloft.net>
19228
19229         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
19230
19231 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19232
19233         [BZ #18206]
19234         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
19235           Use signed comparision instead of substraction to avoid
19236           overflow bug.
19237         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
19238           Take the sign of ret.
19239         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
19240           Do not expect precise return values. Only the sign matters.
19241         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
19242         * wcsmbs/test-wcsncmp.c: New File.
19243         * string/test-strncmp.c: Add wcsncmp support.
19244
19245 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19246
19247         [BZ #6792]
19248         * math/w_log1p.c: New file.
19249         * math/w_log1pf.c: Likewise.
19250         * math/w_log1pl.c: Likewise.
19251         * math/Makefile (libm-calls): Add w_log1p.
19252         * math/s_log1pl.c (log1pl): Remove weak_alias.
19253         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
19254         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
19255         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
19256         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
19257         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
19258         [NO_LONG_DOUBLE] (log1pl): Likewise.
19259         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
19260         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
19261         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
19262         (log1p): Remove long_double_symbol.
19263         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
19264         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
19265         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
19266         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
19267         remove weak_alias for corresponding log1p function.
19268         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
19269         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
19270         * sysdeps/ia64/fpu/w_log1p.c: New file.
19271         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
19272         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
19273         * math/libm-test.inc (log1p_test_data): Add errno expectations.
19274
19275 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
19276
19277         [BZ #18247]
19278         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
19279         decimal exponent by 1.
19280         * stdlib/tst-strtod-round-data: Add more tests.
19281         * stdlib/tst-strtod-round.c (tests): Regenerated.
19282
19283 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
19284
19285         * math/auto-libm-test-in: Add more tests of clog and clog10.
19286         * math/auto-libm-test-out: Regenerated.
19287         * sysdeps/i386/fpu/libm-test-ulps: Update.
19288         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19289
19290 2015-04-09  Roland McGrath  <roland@hack.frob.com>
19291
19292         * Makeconfig (module-cppflags): Exclude all .v.i files.
19293         (skip-module-cppflags): Variable removed.
19294
19295         * configure.ac (libc_config_ok): Initialize before reading
19296         preconfigure scripts, not after.
19297         * configure: Regenerated.
19298
19299         * test-skeleton.c (TIMEOUT): Move #define to top level.
19300         (main): Grok environment variable TEST_DIRECT.  If set, print
19301         test expectation details into that file and then behave as if
19302         given --direct.
19303
19304 2015-04-09  Florian Weimer  <fweimer@redhat.com>
19305
19306         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
19307         warning on 32-bit.
19308
19309 2015-04-08  David S. Miller  <davem@davemloft.net>
19310
19311         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19312
19313 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19314
19315         * math/auto-libm-test-in: Add more tests of atanh.
19316         * math/auto-libm-test-out: Regenerated.
19317         * sysdeps/i386/fpu/libm-test-ulps: Update.
19318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19319
19320         * math/auto-libm-test-in: Add more tests of atan.
19321         * math/auto-libm-test-out: Regenerated.
19322         * sysdeps/i386/fpu/libm-test-ulps: Update.
19323         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19324
19325 2015-04-08  Florian Weimer  <fweimer@redhat.com>
19326
19327         * elf/pldd.c (main): Rewrite to use struct
19328         scratch_buffer instead of extend_alloca.
19329         * elf/pldd-xx.c (find_maps): Likewise.
19330         * grp/initgroups.c: Include <scratch_buffer.h> instead of
19331         <alloca.h>.
19332         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
19333         scratch_buffer instead of extend_alloca.
19334         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
19335         grp/compat-initgroups.c.
19336         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
19337         Rewrite to use struct scratch_buffer instead of extend_alloca.
19338         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
19339         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
19340
19341 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19342
19343         * math/auto-libm-test-in: Add more tests of cbrt.
19344         * math/auto-libm-test-out: Regenerated.
19345         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19346
19347         * math/auto-libm-test-in: Add more tests of cabs.
19348         * math/auto-libm-test-out: Regenerated.
19349         * sysdeps/i386/fpu/libm-test-ulps: Update.
19350         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19351
19352         [BZ #18210]
19353         [BZ #18211]
19354         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
19355         (__ieee754_atan2): Set FE_TONEAREST mode for internal
19356         computations.
19357         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
19358         clog10.
19359         * math/auto-libm-test-out: Regenerated.
19360         * sysdeps/i386/fpu/libm-test-ulps: Update.
19361         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19362
19363         [BZ #18197]
19364         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
19365         (atan): Set FE_TONEAREST mode for internal computations.
19366         * math/auto-libm-test-in: Add more tests of atan.
19367         * math/auto-libm-test-out: Regenerated.
19368
19369 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
19370
19371         [BZ #17930]
19372         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
19373
19374 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19375
19376         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
19377
19378 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19379
19380         * include/scratch_buffer.h: New file.
19381         * malloc/scratch_buffer_grow.c: Likewise.
19382         * malloc/scratch_buffer_grow_preserve.c: Likewise.
19383         * malloc/scratch_buffer_set_array_size.c: Likewise.
19384         * malloc/tst-scratch_buffer.c: Likewise.
19385         * malloc/Makefile (routines): Add scratch_buffer_grow.
19386         (tests): Add test case.
19387         * malloc/Versions (GLIBC_PRIVATE): Export
19388         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
19389         __libc_scratch_buffer_set_array_size.
19390
19391 2015-04-06  Richard Henderson  <rth@redhat.com>
19392
19393         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
19394         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19395
19396         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
19397         unsigned int before printing.
19398
19399 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19400
19401         [BZ #17596]
19402         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
19403         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
19404
19405 2015-04-02  Florian Weimer  <fweimer@redhat.com>
19406
19407         * include/libc-internal.h (libc_max_align_t): Define.
19408
19409 2015-04-02  Andreas Schwab  <schwab@suse.de>
19410
19411         [BZ #16850]
19412         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
19413
19414 2015-04-02  Mel Gorman  <mgorman@suse.de>
19415
19416         [BZ #17195]
19417         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
19418         as well as the main arena.
19419
19420 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19421
19422         [BZ #18185]
19423         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
19424         sharing L2 cache to 2 for Silvermont/Knights Landing.
19425
19426 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19427
19428         [BZ #17711]
19429         * config.make.in (have-protected-data): New.
19430         * configure.ac: Check linker support for protected data symbol.
19431         * configure: Regenerated.
19432         * elf/Makefile (modules-names): Add tst-protected1moda and
19433         tst-protected1modb if $(have-protected-data) is yes.
19434         (tests): Add tst-protected1a and tst-protected1b if
19435         $(have-protected-data) is yes.
19436         ($(objpfx)tst-protected1a): New.
19437         ($(objpfx)tst-protected1b): Likewise.
19438         (tst-protected1modb.so-no-z-defs): Likewise.
19439         * elf/tst-protected1a.c: New file.
19440         * elf/tst-protected1b.c: Likewise.
19441         * elf/tst-protected1mod.h: Likewise.
19442         * elf/tst-protected1moda.c: Likewise.
19443         * elf/tst-protected1modb.c: Likewise.
19444
19445 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19446
19447         [BZ #17711]
19448         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
19449         indicates it is called from do_lookup_x on relocation against
19450         protected data, skip the data definion in the executable from
19451         copy reloc.
19452         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
19453         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
19454         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
19455         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
19456         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
19457         otherwise to 0.
19458         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19459         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
19460         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
19461         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19462         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
19463         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
19464
19465 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
19466
19467         * sysdeps/nptl/pthread.h: Remove duplicate definition of
19468         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
19469
19470 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
19471
19472         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
19473         THREAD_SETMEM_NC.
19474         * sysdeps/x86_64/nptl/tls.h: Ditto.
19475
19476 2015-03-27  Roland McGrath  <roland@hack.frob.com>
19477
19478         * dlfcn/tststatic.c (main): Converted to ...
19479         (do_test): ... this.
19480         (TEST_FUNCTION): New macro.
19481         Include test-skeleton.c.
19482
19483 2015-03-26  Alan Modra  <amodra@gmail.com>
19484
19485         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
19486         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
19487         zero for undefined weak.
19488         (elf_machine_plt_conflict): Similarly.
19489
19490 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19491
19492         * math/auto-libm-test-in: Add more tests of acosh, asinh and
19493         atanh.
19494         * math/auto-libm-test-out: Regenerated.
19495         * sysdeps/i386/fpu/libm-test-ulps: Update.
19496         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19497
19498         * math/auto-libm-test-in: Add another test of asin.
19499         * math/auto-libm-test-out: Regenerated.
19500         * sysdeps/i386/fpu/libm-test-ulps: Update.
19501         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19502
19503         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
19504         Remove macro.
19505         (LLL_EBX_REG): Likewise.
19506         (LLL_ENTER_KERNEL): Likewise.
19507
19508         * math/auto-libm-test-in: Add more tests of asin.
19509         * math/auto-libm-test-out: Regenerated.
19510         * sysdeps/i386/fpu/libm-test-ulps: Update.
19511         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19512
19513         [BZ #18138]
19514         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
19515         libc_do_syscall_args): New structure.
19516         (INTERNAL_SYSCALL_MAIN_0): New macro.
19517         (INTERNAL_SYSCALL_MAIN_1): Likewise.
19518         (INTERNAL_SYSCALL_MAIN_2): Likewise.
19519         (INTERNAL_SYSCALL_MAIN_3): Likewise.
19520         (INTERNAL_SYSCALL_MAIN_4): Likewise.
19521         (INTERNAL_SYSCALL_MAIN_5): Likewise.
19522         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
19523         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
19524         Replace conditional definitions by conditional definitions of ....
19525         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
19526         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
19527         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
19528         (libpthread-sysdep_routines): Add libc-do-syscall.
19529         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
19530         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
19531         to __NR_futex not 240.
19532
19533 2015-03-25  Alan Modra  <amodra@gmail.com>
19534
19535         * NEWS: Advertise TLS optimization.
19536         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
19537         (DT_PPC_NUM): Increment.
19538         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
19539         (CHECK_STATIC_TLS): Use here.
19540         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
19541         TLS descriptors.
19542         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
19543         * sysdeps/powerpc/dl-tls.c: New file.
19544         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
19545         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
19546         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
19547         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
19548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
19549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
19550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
19551
19552 2015-03-25  Alan Modra  <amodra@gmail.com>
19553
19554         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
19555         for overlapping .opd entries" to "support...".
19556         * sysdeps/powerpc/powerpc64/configure: Regenerate
19557
19558 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19559
19560         * math/auto-libm-test-in: Add more tests of acos.
19561         * math/auto-libm-test-out: Regenerated.
19562         * sysdeps/i386/fpu/libm-test-ulps: Update.
19563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19564
19565         * math/auto-libm-test-in: Add more tests of expm1.
19566         * math/auto-libm-test-out: Regenerated.
19567         * sysdeps/i386/fpu/libm-test-ulps: Update.
19568         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19569
19570 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
19571
19572         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19573         * math/auto-libm-test-out: Regenerated.
19574         * sysdeps/i386/fpu/libm-test-ulps: Update.
19575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19576
19577         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19578         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19579
19580         * math/auto-libm-test-in: Add more tests of log2.
19581         * math/auto-libm-test-out: Regenerated.
19582         * sysdeps/i386/fpu/libm-test-ulps: Update.
19583         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19584
19585 2015-03-23  Roland McGrath  <roland@hack.frob.com>
19586
19587         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
19588         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
19589         _IO_IS_APPENDING bit in READ_WRITE instead.
19590
19591 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19592
19593         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19594         (__determine_cpumask_size): Replace extend_alloca with a
19595         variable-length array.  Do not treat res == 0 as an error.
19596
19597 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19598
19599         [BZ #18100]
19600         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
19601         and integer overflow.
19602         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
19603         (main): Add integer overflow tests.
19604         * manual/pattern.texi (Calling Wordexp): Document additional use
19605         for WRDE_SYNTAX.
19606
19607 2015-03-23  Alan Modra  <amodra@gmail.com>
19608
19609         * config.h.in: Remove HAVE_ASM_PPC_REL16.
19610         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
19611         and false branch of conditional.
19612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
19613         Likewise.
19614
19615 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
19616
19617         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
19618         libc-modules.h
19619         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
19620         unused declaration of _hurd_intr_rpc_msg_in_trap.
19621         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19622         defined instead of whether it is non-zero.
19623         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19624         input constraint instead of both input and output constraint.  Use ecx
19625         clobber instead of %ecx.
19626         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19627         mutex_unlock): Use a statement expression instead of an expression list.
19628         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19629         type to vm_size_t instead of vm_address_t.
19630         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19631         defined instead of whether it is non-zero.
19632         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19633         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19634         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19635         comparisons with mapaddr.
19636         * nscd/nscd-client.h: Include <time.h>.
19637         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19638         9th parameter to __vm_region instead of int.
19639         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19640         * scripts/check-local-headers.sh (exclude): Add device/,
19641         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19642         cthreads.h.
19643
19644 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19645
19646         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19647         to account for alignment padding.
19648         * sysdeps/arm/memmove.S: Likewise.
19649
19650 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19651
19652         * sysdeps/unix/sysv/linux/generic/README: New file.
19653
19654 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19655
19656         [BZ #18138]
19657         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19658         (futex_abstimed_wait)
19659         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19660         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19661         of lll_futex_timed_wait.
19662
19663 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19664
19665         [BZ #17542]
19666         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19667
19668 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19669
19670         [BZ #17090]
19671         [BZ #17620]
19672         [BZ #17621]
19673         [BZ #17628]
19674         * NEWS: Update.
19675         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19676         entries with Static TLS too.  Skip entries past the end of the
19677         allocated DTV, from Alan Modra.
19678         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19679         Static TLS DTV entry set up from...
19680         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19681         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19682         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19683         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19684         for Static TLS.
19685         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19686         that the slot we find is associated with the given map before
19687         using its generation count.
19688         * nptl_db/db_info.c: Include ldsodefs.h.
19689         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19690         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19691         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19692         (link_map::l_tls_offset): New struct field.
19693         (dtv_t::counter): Likewise.
19694         (rtld_global): New struct.
19695         (_rtld_global): New rtld variable.
19696         (dl_tls_dtv_slotinfo_list): New rtld global field.
19697         (dtv_slotinfo_list): New struct.
19698         (dtv_slotinfo): Likewise.
19699         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19700         (td_lookup): Rename to...
19701         (td_mod_lookup): ... this.  Use new mod parameter instead of
19702         LIBPTHREAD_SO.
19703         * nptl_db/td_thr_tlsbase.c: Include link.h.
19704         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19705         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19706         addresses even if the DTV is out of date or missing them.
19707         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19708         index zero-length arrays.
19709         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19710         (td_lookup): Make it a macro implemented in terms of...
19711         (td_mod_lookup): ... this declaration.
19712         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19713         (DB_MAIN_VARIABLE): Likewise.
19714
19715 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19716
19717         [BZ #18134]
19718         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19719
19720 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19721
19722         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19723
19724 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19725
19726         [BZ #18128]
19727         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19728         (atomic_add, atomic_increment_and_test)
19729         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19730
19731 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19732
19733         * stdlib/setenv.c (__add_to_environ):
19734         Dump core quickly if setenv (..., NULL, ...) is called.
19735
19736 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19737
19738         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19739         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19740         all the necessary asm magic in one place.
19741         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19742         using those.
19743
19744 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19745
19746         [BZ #14906]
19747         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19748         traced file mtime. Use consistent log message.
19749         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19750         (register_traced_file): Call install_watches. Always set mtime.
19751         (invalidate_cache): Iterate over all trace files. Call install_watches.
19752         (inotify_check_files): Don't inline. Handle watching parent
19753         directories and configuration file movement in and out.
19754         (handle_inotify_events): New function.
19755         (main_loop_poll): Call handle_inotify_events.
19756         (main_loop_epoll): Likewise.
19757         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19758         (struct traced_file): Use array of inotify fds. Add parent directory,
19759         and basename.
19760         (struct database_dyn): Remove unused file_mtime.
19761         (init_traced_file): New inline function.
19762         (define_traced_file): New macro.
19763         * nss/nss_db/db-init.c: Use define_traced_file.
19764         (_nss_db_init): Use init_traced_file.
19765         * nss/nss_files/files-init.c: Use define_traced_file.
19766         (_nss_files_init): Use init_traced_file.
19767
19768 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19769
19770         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19771         [_LIBC]: Do not include <stdlib.h>.
19772         [!_LIBC] (abort): Remove declaration.
19773         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19774         _FP_STATIC_ASSERT instead of conditionally calling abort.
19775         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19776         (_FP_EXTEND_CNAN): Likewise.
19777         (FP_TRUNC): Likewise.
19778         (__FP_CLZ): Likewise.
19779         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19780
19781 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19782
19783         * manual/string.texi (XPG basename): Fix prototype.
19784
19785 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19786
19787         [BZ #18080]
19788         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19789         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19790         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19791         (__setcontext): Likewise.
19792         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19793         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19794         Call rt_sigprocmask syscall one time to set new signal mask
19795         and retrieve the current signal mask instead of two calls.
19796         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19797         (__swapcontext): Likewise.
19798         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19799         * stdlib/tst-setcontext2.c: New file.
19800
19801 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19802
19803         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19804
19805 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19806
19807         [BZ #18093]
19808         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19809         the wrong size.
19810
19811 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19812
19813         [BZ #18043]
19814         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19815
19816 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19817
19818         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19819         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19820         Remove define.
19821         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19822         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19823         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19824         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19825         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19826         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19827         define.
19828         * nptl_db/td_symbol_list.c (td_lookup): Remove
19829         HAVE_ASM_GLOBAL_DOT_NAME code.
19830         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19831         HAVE_ASM_GLOBAL_DOT_NAME check.
19832         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19833         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19834         (DOT_LABEL): Remove define.
19835         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19836         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19837         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19838         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19839         (__TLS_GET_ADDR): Likewise.
19840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19841         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19842
19843 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19844
19845         [BZ #18111]
19846         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19847         (_FPU_SETCW): Initialize cw from fpsr before storing.
19848         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19849         (fesetexceptflag): Rewrite using fpu_control.h.
19850         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19851
19852 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19853
19854         [BZ #18110]
19855         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19856         asms.
19857         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19858
19859 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19860
19861         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19862         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19863         abort.
19864         (_FP_FMA): Likewise.
19865         (_FP_DIV): Likewise.
19866
19867 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19868
19869         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19870         with 0 in that case.
19871         * Makefile (summarize-tests): New canned sequence, factored out of
19872         commands for targets tests and xtests.  Display summary lines that
19873         don't start with PASS: or XFAIL: rather than ones that do start with
19874         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19875         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19876         do start with ERROR: or FAIL:.
19877         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19878         (except for [$(build-shared) = yes]).
19879         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19880         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19881         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19882         * nptl/Makefile: Revert 2015-03-04 changes.
19883         [$(CXX) empty] (tests-unsupported): New variable.
19884         * debug/Makefile: Likewise.
19885
19886         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19887         gnulib file.  Replace __attribute with __attribute__ throughout.
19888
19889 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19890
19891         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19892
19893 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19894
19895         [BZ #18104]
19896         * math/auto-libm-test-in: Add another test of pow.
19897         * math/auto-libm-test-out: Regenerated.
19898
19899 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19900
19901         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19902         $(config-cflags-nofma).
19903
19904 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19905
19906         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19907         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19908         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19909         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19910         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19911         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19912         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19913         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19914         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19915         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19916         Add comment on closing #endif.
19917
19918 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19919
19920         * posix/wordexp.c (CHAR_IN_SET): New macro.
19921         (parse_param): Use it.
19922
19923 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19924
19925         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19926
19927 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19928
19929         [BZ #18043]
19930         * posix/wordexp.c (parse_param): Fix buffer overflow.
19931         * posix/wordexp-test.c (test_case): Add test case.
19932
19933 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19934
19935         [BZ #18042]
19936         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19937         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19938
19939 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19940
19941         [BZ #18043]
19942         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19943         (do_bz18043): Delete.
19944         (at_page_end): New.
19945         (testit): Refactor to have words at the edge of unreadable page.
19946
19947 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19948
19949         [BZ #16734]
19950         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19951         Cleanup read-only streams as well.
19952         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19953
19954 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19955
19956         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19957         <bits/libc-lockP.h>
19958
19959 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19960
19961         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19962         on [__KERNEL__].
19963         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19964         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19965         * soft-fp/op-common.h (_FP_DECL): Likewise.
19966
19967 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19968
19969         * elf/ifuncdep2.c (global): Replace
19970         __attribute__((visibility("protected"))) with
19971         asm (".protected global").
19972         * elf/ifuncmod1.c (global): Likewise.
19973         * elf/ifuncmod5.c (global): Likewise.
19974
19975 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19976
19977         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19978         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19979
19980 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19981
19982         * manual/install.texi (Configuring and compiling):
19983         Document test-wrapper-env-only.
19984         * INSTALL: Regenerated.
19985
19986 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19987
19988         [BZ #18043]
19989         * posix/wordexp.c (parse_param): Fix buffer overflow.
19990         * posix/wordexp-test.c (do_bz18043): Add test case.
19991
19992 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19993
19994         * time/tst-strptime2.c (do_test): Ensure failing tests are
19995         reported correctly.
19996         * time/tst-strptime3.c (do_test): Likewise.
19997
19998 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19999
20000         Fix aio_error thread-safety.
20001         * sysdeps/pthread/aio_error.c: New file
20002         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
20003         synchronization.
20004
20005 2015-03-06  Florian Weimer  <fweimer@redhat.com>
20006
20007         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
20008         (group_number, vfprintf): Use it.
20009         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
20010         (JUMP, REF): Use it.
20011         (WORK_BUFFER_SIZE): New enum constant.
20012         (process_arg, vfprintf): Use it.
20013
20014 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
20015
20016         * manual/errno.texi (Error Messages): Complete example function
20017         by adding missing #define.
20018         (program_invocation_name): Add statement indicating GNU
20019         extension and reference which header file declares the variable.
20020         (program_invocation_short_name): Likewise.
20021
20022 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
20023
20024         * manual/errno.texi (Error Messages): Delete strerror ISO C89
20025         compatibility note.
20026
20027 2015-03-05  Roland McGrath  <roland@hack.frob.com>
20028
20029         * Makeconfig (test-wrapper-env-only): New variable.
20030         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
20031         then use that with $(test-wrapper-env-only) rather than using
20032         $(test-wrapper-env) $(run-program-env) $($*-ENV).
20033
20034 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20035
20036         [BZ #18082]
20037         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
20038         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
20039         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
20040         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
20041         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
20042         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
20043         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
20044         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
20045         Likewise.
20046         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
20047         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
20048         Likewise.
20049         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
20050         Likewise.
20051         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
20052         Likewise.
20053         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
20054         Likewise.
20055         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
20056         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
20057         Likewise.
20058         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
20059         Likewise.
20060         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
20061         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
20062
20063 2015-03-04  Roland McGrath  <roland@hack.frob.com>
20064
20065         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
20066         (ETH_ALEN): New macro.
20067         (struct ether_addr): Use it for length of ether_addr_octet.
20068
20069         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
20070         (setdb): Don't call __nss_configure_lookup for "rpc".
20071         (do_test): Don't call test_rpc.
20072         (output_rpcent, test_rpc): Functions moved ...
20073         * sunrpc/test-rpcent.c: ... to this new file.
20074         * sunrpc/Makefile (tests): Add it.
20075
20076         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
20077         __xpg_sigpause.
20078         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
20079         * nptl/tst-signal6.c: Likewise.
20080         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
20081         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
20082
20083         * configure.ac (libc_cv_cxx_link_ok): New check.
20084         Reset CXX to empty if it fails to link.
20085         * configure: Regenerated.
20086         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
20087         bug-atexit3-lib only if $(CXX) is nonempty.
20088         * nptl/Makefile (tests): Likewise for tst-cancel24.
20089         (tests, tests-static): Likewise for tst-cancel24-static.
20090         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
20091         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
20092         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
20093         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
20094
20095 2015-03-04  Andreas Schwab  <schwab@suse.de>
20096
20097         [BZ #17631]
20098         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
20099         for non-GCC compilers.
20100         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
20101         Likewise.
20102
20103 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20104
20105         [BZ #17776]
20106         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
20107         integer before bitwise and assembly operations.
20108         (feclearexcept): Likewise.
20109         * math/test-fenvinline.c: New file.
20110         * math/Makefile: Add test-fenvinline test.
20111
20112 2015-03-03  Alan Modra  <amodra@gmail.com>
20113
20114         [BZ #16512]
20115         * scripts/localplt.awk: Strip off symbol version.
20116         * NEWS: Mention bug fix.
20117
20118 2015-03-02  Roland McGrath  <roland@hack.frob.com>
20119
20120         * sysdeps/pthread/timer_routines.c
20121         (timer_free_list, thread_free_list, thread_active_list): Make static.
20122
20123 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
20124
20125         [BZ #17779]
20126         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20127         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20128         Undefine.
20129         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20130         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20131         Likewise.
20132         * sysdeps/unix/sysv/linux/sh/kernel-features.h
20133         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20134         Likewise.
20135
20136 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
20137
20138         [BZ #18036]
20139         * posix/fnmatch_loop.c (END): Detect invalid pattern.
20140         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
20141
20142 2015-03-02  Andreas Schwab  <schwab@suse.de>
20143
20144         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
20145         variable name.
20146
20147 2015-03-02  Florian Weimer  <fweimer@redhat.com>
20148
20149         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
20150         Return error status.
20151
20152 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
20153
20154         [BZ #15969]
20155         * locale/findlocale.c (_nl_find_locale): Introduce const
20156         version of loc_name and drop unsafe type casts.
20157
20158 2015-02-27  Roland McGrath  <roland@hack.frob.com>
20159
20160         * dlfcn/tststatic2.c (main): Converted to ...
20161         (do_test): ... this.
20162         (TEST_FUNCTION): New macro.
20163         Include test-skeleton.c.
20164
20165 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20166
20167         [BZ #17711]
20168         * elf/Makefile (tests): Add vismain only if PIE is enabled.
20169         (tests-pie): Add vismain.
20170         (CFLAGS-vismain.c): New.
20171         * elf/vismain.c: Add comments for PIE requirement.
20172
20173 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20174
20175         [BZ #18046]
20176         [BZ #18047]
20177         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
20178         0x1p-56L as threshold for just returning the argument.
20179         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
20180         0x1p-32L as threshold for just returning the argument.
20181         * math/auto-libm-test-in: Add more tests of atanh.
20182         * math/auto-libm-test-out: Regenerated.
20183         * sysdeps/i386/fpu/libm-test-ulps: Update.
20184         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
20185
20186 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20187
20188         * string/bcopy.c (bcopy): Call memmove for performance.
20189
20190 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20191
20192         * string/bzero.c (__bzero): Call memset for performance.
20193
20194 2015-02-27  John David Anglin  <dave.anglin@bell.net>
20195
20196         [BZ #18068]
20197         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
20198         to 00100000.
20199
20200 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20201
20202         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
20203
20204 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20205
20206         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
20207         (__kernel_standard): Use CSTR macro when setting exc.name.
20208         * sysdeps/ieee754/Makefile [$(subdir) = math]
20209         (CFLAGS-k_standard.c): Remove variable.
20210
20211         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
20212         setting p and q from "else if" to "else".
20213         (qzero): Likewise.
20214         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
20215         (qone): Likewise.
20216         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
20217         (qzerof): Likewise.
20218         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
20219         (qonef): Likewise.
20220         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
20221         (qzero): Likewise.
20222         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
20223         (qone): Likewise.
20224
20225         [BZ #18038]
20226         [BZ #18039]
20227         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
20228         return pi/2 for arguments below 0x1p-113L.
20229         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
20230         return pi/2 for arguments below 0x1p-106L.
20231         * math/auto-libm-test-in: Add more tests of acos.
20232         * math/auto-libm-test-out: Regenerated.
20233
20234         [BZ #16351]
20235         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
20236         (MO): New macro.
20237         (__ieee754_asin): Force underflow exception for results with small
20238         absolute value.
20239         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
20240         (MO): New macro.
20241         (__ieee754_asinf): Force underflow exception for results with
20242         small absolute value.
20243         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
20244         (__ieee754_asin): Force underflow exception for results with small
20245         absolute value.
20246         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
20247         (__ieee754_asinf): Force underflow exception for results with
20248         small absolute value.
20249         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
20250         (__ieee754_asinl): Force underflow exception for results with
20251         small absolute value.
20252         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
20253         (__ieee754_asinl): Force underflow exception for results with
20254         small absolute value.
20255         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
20256         (__ieee754_asinl): Force underflow exception for results with
20257         small absolute value.
20258         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
20259         Include <math.h>.
20260         * math/auto-libm-test-in: Do not mark underflow exceptions as
20261         possibly missing for bug 16351.
20262         * math/auto-libm-test-out: Regenerated.
20263
20264         [BZ #18030]
20265         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
20266         of power of 2 down when low part has opposite sign.
20267         * math/libm-test.inc (logb_test_data): Add more tests.
20268
20269 2015-02-26  Andreas Schwab  <schwab@suse.de>
20270
20271         [BZ #18032]
20272         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
20273         over collating symbol inside a bracket expression.  Minor cleanup.
20274         * posix/tst-fnmatch3.c (do_test): Add test case.
20275
20276 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20277
20278         [BZ #18029]
20279         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
20280         Adjust exponent of power of 2 down when low part has opposite
20281         sign.
20282         * math/libm-test.inc (ilogb_test_data): Add more tests.
20283
20284 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
20285
20286         [BZ #15969]
20287         * locale/findlocale.c (_nl_find_locale): Fix constness error in
20288         the previous change.
20289
20290         [BZ #15969]
20291         * locale/findlocale.c (_nl_find_locale): Retry archive search
20292         after alias expansion.
20293
20294 2015-02-25  Roland McGrath  <roland@hack.frob.com>
20295
20296         * iconv/tst-iconv3.c (main): Converted to ...
20297         (do_test): ... this.
20298         (TEST_FUNCTION): New macro.
20299         Include test-skeleton.c.
20300
20301         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
20302         (convert): Make function static.
20303         (test_unalign): Likewise.  Add const to argument pointee types.
20304         (main): Replace with static function do_test.
20305         Print "Succeeded." only if RET is zero.
20306         (TEST_FUNCTION): New macro.
20307         Include test-skeleton.c.
20308
20309         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
20310         returns a null pointer.
20311
20312 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20313
20314         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
20315         to __memcpy_ppc only for static builds.
20316
20317 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
20318
20319         [BZ #18020]
20320         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
20321         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
20322         * math/auto-libm-test-in: Add more tests of asinh.
20323         * math/auto-libm-test-out: Regenerated.
20324         * sysdeps/i386/fpu/libm-test-ulps: Update.
20325         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20326
20327 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
20328
20329         [BZ #15850]
20330         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
20331         and ip6_mtuinfo definitions here.
20332         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
20333         in this define too.  Update comment.
20334
20335 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
20336
20337         * elf/sprof.c (load_shobj): Tweak error message to match others.
20338
20339 2015-02-24  Kevin Easton  <kevin@guarana.org>
20340
20341         [BZ #16145] (partial fix)
20342         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
20343         to reduce lock contention.
20344
20345 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
20346
20347         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
20348         (struct timex): Update time comment.
20349         (ADJ_SETOFFSET): Define.
20350
20351 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20352
20353         [BZ #18019]
20354         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20355         2**56 not 2**28 as threshold for log (2x) formula.
20356         * math/auto-libm-test-in: Add more tests of acosh.
20357         * math/auto-libm-test-out: Regenerated.
20358         * sysdeps/i386/fpu/libm-test-ulps: Update.
20359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20360
20361 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20362
20363         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
20364         parenthesis around the buf assignment.
20365         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
20366
20367 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20368
20369         [BZ #16783]
20370         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
20371         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
20372         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
20373         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20374         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20375         * math/libm-test.inc (scalb_test_data): Add more tests.
20376
20377 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
20378
20379         [BZ #17916]
20380         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
20381         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
20382
20383 2015-02-24  Eric Rannaud  <e@nanocritical.com>
20384
20385         [BZ #17523]
20386         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
20387         * io/bits/fcntl2.h (open): Use it.
20388         (openat): Likewise.
20389         * io/open.c (__libc_open): Likewise.
20390         * io/open64.c (__libc_open64): Likewise.
20391         * io/open64_2.c (__open64_2): Likewise.
20392         * io/open_2.c (__open_2): Likewise.
20393         * io/openat.c (__openat): Likewise.
20394         * io/openat64.c (__openat64): Likewise.
20395         * io/openat64_2.c (__openat64_2): Likewise.
20396         * io/openat_2.c (__openat_2): Likewise.
20397         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
20398         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
20399         * sysdeps/posix/open64.c (__libc_open64): Likewise.
20400         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
20401         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
20402         (__open_nocancel): Likewise.
20403         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
20404         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
20405         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
20406
20407 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20408
20409         [BZ #14841]
20410         * resolv/gethnamaddr.c (getanswer): Skip logging if
20411         RES_USE_DNSSEC is set.
20412         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
20413
20414 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20415
20416         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
20417
20418 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
20419
20420         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
20421         201304L, for Unicode 7.
20422
20423 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
20424
20425         [BZ #17836]
20426         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
20427         shared library.  Add gmon-start.os otherwise.
20428         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
20429         $(objpfx)gmon-start.os if builing shared library.
20430         ($(objpfx)g$(static-start-installed-name)): Likewise.
20431
20432 2015-02-23  Andreas Schwab  <schwab@suse.de>
20433
20434         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
20435
20436 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
20437
20438         [BZ #17269]
20439         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
20440         (enlarge_userbuf): Likewise.
20441
20442 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
20443
20444         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
20445         * math/atest-exp.c (TIMEOUT): Adjust to 200.
20446         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
20447         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
20448
20449 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
20450
20451         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
20452         expression inside statement expression.
20453
20454 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20455
20456         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
20457         <sysdeps/nptl/lowlevellock.h> and remove macros and
20458         functions that are now defined there.
20459         (SYS_futex): Remove.
20460         (lll_compare_and_swap): Remove.
20461         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
20462
20463 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
20464
20465         [BZ #17999]
20466         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
20467         instead of scandirat.
20468         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
20469         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
20470         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
20471         __scandirat.
20472         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
20473         (__scandirat): Declare.  Use libc_hidden_proto.
20474         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
20475         Remove variable.
20476         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
20477
20478 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20479
20480         [BZ #15319]
20481         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
20482         (MO): New macro.
20483         (__ieee754_atan2): For results with small absolute value, force
20484         underflow exception and remove excess range and precision from
20485         return value.
20486         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
20487         (MO): New macro.
20488         (__ieee754_atan2f): For results with small absolute value, force
20489         underflow exception and remove excess range and precision from
20490         return value.
20491         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
20492         (MO): New macro.
20493         (__atan): For results with small absolute value, force underflow
20494         exception and remove excess range and precision from return value.
20495         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
20496         (MO): New macro.
20497         (__atanf): For results with small absolute value, force underflow
20498         exception and remove excess range and precision from return value.
20499         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
20500         <math.h>.
20501         (__ieee754_atan2): Force underflow exception for results with
20502         small absolute value.
20503         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
20504         <math_private.h>.
20505         (atan): Force underflow exception for results with small absolute
20506         value.
20507         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
20508         (__atanf): Force underflow exception for results with small
20509         absolute value.
20510         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
20511         <math.h>.
20512         (__atanl): Force underflow exception for results with small
20513         absolute value.
20514         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
20515         (__atanl): Force underflow exception for results with small
20516         absolute value.
20517         * sysdeps/x86/fpu/bits/mathinline.h
20518         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
20519         (__ieee754_atan2): Only define inline for long double.
20520         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
20521         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
20522         * math/auto-libm-test-in: Do not mark underflow exceptions as
20523         possibly missing for bug 15319.  Add more tests of atan2.
20524         * math/auto-libm-test-out: Regenerated.
20525         * math/libm-test.inc (casin_test_data): Do not mark underflow
20526         exceptions as possibly missing for bug 15319.
20527         (casinh_test_data): Likewise.
20528         * sysdeps/i386/fpu/libm-test-ulps: Update.
20529
20530 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
20531
20532         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
20533         * sysdeps/mips/bits/endian.h: Fix comments.
20534
20535 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20536
20537         [BZ #17996]
20538         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
20539         (hdestroy_r): Likewise.
20540         (hsearch_r): Likewise.
20541         (__hcreate_r): Declare and use libc_hidden_proto.
20542         (__hdestroy_r): Likewise.
20543         (__hsearch_r): Likewise.
20544         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
20545         (hcreate): Call __hcreate_r instead of hcreate_r.
20546         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
20547         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
20548         as weak alias of __hcreate_r.
20549         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
20550         __hdestroy_r.
20551         (hsearch_r): Rename to __hsearch_r and define as weak alias of
20552         __hsearch_r.
20553         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
20554         Remove variable.
20555         (test-xfail-XPG4/search.h/linknamespace): Likewise.
20556         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
20557         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
20558         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
20559
20560 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20561
20562         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
20563         arena_lock into a single arena_get.
20564
20565 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
20566
20567         * dl-reloc.c: Inlucde libc-internal.h.
20568         (_dl_try_allocate_static_tls): Call ALIGN_UP.
20569         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
20570         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
20571         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
20572         (grow_heap): Likewise.
20573         * malloc/malloc.c: Include libc-internal.h.
20574         (do_check_malloc): Call powerof2.
20575         (sysmalloc): Use pagesize. Call ALIGN_UP.
20576         (systrim): Use pagesize.
20577         (mremap_chunk): Use pagesize. Call ALIGN_UP.
20578         (__libc_valloc): Use pagesize.
20579         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
20580
20581 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20582
20583         [BZ #17991]
20584         * include/sys/resource.h (__getrlimit64): Declare.  Use
20585         libc_hidden_proto.
20586         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
20587         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
20588         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
20589         getrlimit64.
20590         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
20591         __getrlimit64.
20592         [!getrlimit64] (getrlimit64): Define as weak alias of
20593         __getrlimit64.  Use libc_hidden_weak.
20594         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
20595         using __getrlimit64 not __new_getrlimit64.
20596         (__GI_getrlimit64): Likewise.
20597         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
20598         Likewise.
20599         (__GI_getrlimit64): Likewise.
20600         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
20601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
20602         (getrlimit): Add __getrlimit64 alias.
20603         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
20604         Likewise.
20605         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
20606         Remove variable.
20607         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
20608         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
20609
20610 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
20611
20612         * libio/fileops.c: Add missing sys/mman.h
20613         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
20614
20615 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20616
20617         * manual/math.texi (Errors in Math Functions): Clarify goals
20618         regarding inexact and underflow exceptions.
20619
20620 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20621
20622         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20623         * sysdeps/mips/memset.S: Ditto.
20624
20625 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20626
20627         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20628
20629 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20630
20631         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20632         (__v1longjmp): Remove versioned symbol.
20633         (__v1siglongjmp): Remove alias and versioned symbol.
20634         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20635         (__v2siglongjmp): Likewise.
20636
20637 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20638
20639         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20640
20641 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20642
20643         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20644
20645 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20646
20647         [BZ #17987]
20648         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20649         zero result does not depend on the sign resulting from
20650         subtraction.
20651         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20652         Likewise.
20653         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20654         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20655         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20656         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20657         * math/libm-test.inc (remquo_test_data): Add more tests.
20658
20659 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20660
20661         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20662         Problem reported by J William Piggott.
20663
20664 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20665
20666         [BZ #17978]
20667         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20668         products 4 * y and 2 * y where those would overflow.
20669         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20670         Likewise.
20671         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20672         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20673         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20674         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20675         * math/libm-test.inc (remquo_test_data): Add more tests.
20676
20677         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20678
20679         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20680         [defined _COMPILING_NEWLIB].
20681         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20682         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20683
20684         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20685         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20686
20687 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20688
20689         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20690         acquired.
20691
20692 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20693
20694         [BZ #17792]
20695         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20696         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20697         HOST_STACK_END_ADDR): Likewise.
20698
20699 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20700
20701         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20702         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20703         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20704
20705 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20706
20707         * sysdeps/generic/c++-types.data: New file.
20708         * sysdeps/generic/ld.abilist: New file.
20709         * sysdeps/generic/libBrokenLocale.abilist: New file.
20710         * sysdeps/generic/libanl.abilist: New file.
20711         * sysdeps/generic/libc.abilist: New file.
20712         * sysdeps/generic/libcrypt.abilist: New file.
20713         * sysdeps/generic/libdl.abilist: New file.
20714         * sysdeps/generic/libm.abilist: New file.
20715         * sysdeps/generic/libpthread.abilist: New file.
20716         * sysdeps/generic/libresolv.abilist: New file.
20717         * sysdeps/generic/librt.abilist: New file.
20718
20719 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20720
20721         [BZ #17569]
20722         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20723         Compute absolute value of x as modified by fmod, not original
20724         value of x.
20725         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20726         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20727         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20728         RUN_TEST_ffI_f1_mod8.
20729         (remquo_test_data): Add more tests.
20730
20731 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20732
20733         * sysdeps/init_array/pt-crti.S: New file.
20734
20735 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20736
20737         [BZ #17967]
20738         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20739         __builtin_fmaf instead of relying on contraction of a * b + c.
20740
20741 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20742
20743         [BZ #17969]
20744         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20745         node.
20746
20747 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20748
20749         [BZ #17964]
20750         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20751         __builtin_fma instead of relying on contraction of a * b + c.
20752
20753 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20754
20755         * Makeconfig (ASFLAGS): Add -Werror=undef.
20756         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20757         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20758         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20759
20760         * Makeconfig (after-link): New variable.
20761         (+link-pie, +link-pie-tests): Use it.
20762         (+link-static, +link-static-tests): Likewise.
20763         (+link, +link-tests): Likewise.
20764         * Makerules (build-module, build-module-asneeded): Likewise.
20765         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20766         Likewise.
20767         * elf/Makefile ($(objpfx)ld.so): Likewise.
20768
20769 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20770
20771         [BZ #17965]
20772         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20773         both struct timeval and struct timespec.
20774
20775 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20776
20777         [BZ #16560]
20778         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20779         and redefine.
20780         (__ieee754_exp2l): Do not multiply small fractional parts by
20781         M_LN2l.
20782         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20783         small argument.
20784         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20785         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20786         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20787         * math/auto-libm-test-in: Add more tests of exp2.
20788         * math/auto-libm-test-out: Regenerated.
20789
20790 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20791
20792         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20793         unaligned path.
20794
20795 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20796
20797         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20798         little endian.
20799
20800 2015-02-12  Andreas Schwab  <schwab@suse.de>
20801
20802         [BZ #15790]
20803         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20804         Filter out elision flags from value returned in kind.
20805         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20806         * nptl/tst-pthread-mutexattr.c: New file.
20807
20808 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20809
20810         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20811         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20812         into gnu-gnu, and update comment to refer to abi-tags.
20813
20814 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20815
20816         [BZ #15467]
20817         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20818         (__sincos): Set errno to EDOM for infinite argument.
20819         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20820         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20821         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20822         (__sincosl): Set errno to EDOM for infinite argument.
20823         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20824         (__sincosl): Set errno to EDOM for infinite argument.
20825         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20826         (__sincosl): Set errno to EDOM for infinite argument.
20827         * math/libm-test.inc (sincos_test_data): Test errno setting.
20828
20829 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20830
20831         * string/strxfrm_l.c: Remove #define STRCMP.
20832         * string/strcoll_l.c: Remove #define STRLEN.
20833         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20834         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20835
20836 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20837
20838         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20839         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20840         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20841         * sysdeps/mips/mips64/Makefile: ... here.
20842         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20843         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20844         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20845         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20846         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20847         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20848         * sysdeps/mips/mips64/n64/Implies: Likewise.
20849
20850 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20851
20852         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20853         <sys/time.h>, <string.h>, and <errno.h>.
20854         (dest_offset, dest_address, value, zero): Remove unused variables.
20855         (ldouble): Remove typedef.
20856         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20857         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20858         1).  Fix code style.
20859         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20860         (check): Function removed.
20861         (CHECK): New macro.
20862         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20863         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20864         Don't call set_sigaction_FP and remove_sigaction_FP here.
20865         (ldouble_test): Just use 'long double' as macro argument, no need for
20866         the 'ldouble' typedef.
20867         (do_test): Set up SIGFPE handler at start, using plain signal rather
20868         than sigaction.  Fix code style.
20869
20870 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20871
20872         [BZ #17949]
20873         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20874         jump label.
20875
20876 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20877
20878         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20879         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20880
20881         * sysdeps/powerpc/configure.ac: Remove file.
20882         * sysdeps/powerpc/configure: Likewise.
20883
20884         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20885         [sysdep_routines]: Remove wordcopy-power6 object.
20886         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20887         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20888         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20889         (__memmove_ppc32): Likewise.
20890         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20891         file.
20892         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20893         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20894         Remove preprocessor.
20895
20896         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20897         [sysdep_routines]: Remove wide chars objects.
20898         [wcsmbs]: New rule for wide char objects.
20899
20900         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20901         Remove wordcopy-power6 obejct.
20902         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20903         Use local call for wordcopy and memcpy symbols.
20904         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20905         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20906         implementation for loader.
20907         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20908
20909         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20910         Remove wordcopy-power7 object.
20911         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20912         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20913         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20914         (_wordcopy_fwd_dest_aligned): Likewise.
20915         (_wordcopy_bwd_aligned): Likewise.
20916         (_wordcopy_bwd_dest_aligned): Likewise.
20917
20918         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20919         Rewrite to call __memmove_ppc instead of include default
20920         implementation.
20921
20922         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20923         Remove wide chars objects.
20924         [wcsmbs]: New rule for wide char objects.
20925
20926 2015-02-09  Andreas Schwab  <schwab@suse.de>
20927
20928         [BZ #17912]
20929         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20930         in terms of __O_DIRECTORY.
20931
20932 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20933
20934         * time/getdate.c: Include <stdbool.h>.
20935         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20936         call PTR_MANGLE.
20937         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20938         PTR_DEMANGLE.
20939
20940 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20941
20942         Add ersatz _Static_assert on older C hosts
20943         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20944         pre-C11 C platform that is not known to support _Static_assert.
20945
20946 2015-02-07  Richard Braun  <rbraun@sceen.net>
20947
20948         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20949         sigstate.
20950         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20951
20952 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20953
20954         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20955         priority against unexistent AIO_PRIO_DELTA_MAX.
20956         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20957         instead of int.
20958         * misc/fchflags.c (fchflags): Likewise.
20959         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20960         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20961         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20962         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20963         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20964         Declare macros.
20965         [__USE_MISC] (chflags, fchflags): Declare functions.
20966         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20967         EINVAL when nfds is greater than FD_SETSIZE.
20968         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20969         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20970         45.
20971         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20972         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20973         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20974         MACH_RCV_TIMED_OUT.
20975         * hurd/hurd/signal.h (_hurd_self_sigstate,
20976         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20977         Explicit casts from void *.
20978         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20979         * abi-tags: Rename gnu-gnu os into gnu.
20980
20981         [BZ #4719]
20982         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20983         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20984         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20985         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20986         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20987         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20988
20989         [BZ #17944]
20990         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20991         duplicates ADDR->sun_path with sockaddr LEN limitation.
20992         * sysdeps/mach/hurd/connect.c: Include <string.h>
20993         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20994         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20995         * sysdeps/mach/hurd/sendto.c: Likewise.
20996         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20997         implementing it by hand.
20998
20999 2015-02-06  Roland McGrath  <roland@hack.frob.com>
21000
21001         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
21002         Use sfi_breg on ldr.
21003         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
21004         Likewise.
21005
21006         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
21007         it's defined.
21008         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
21009         Test SIGSETXID only if it's defined.
21010
21011         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
21012
21013         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
21014         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
21015
21016         * nptl/tst-align2.c: Moved ...
21017         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
21018         * nptl/Makefile (tests): Remove tst-align2.
21019         * sysdeps/unix/sysv/linux/Makefile
21020         [$(subdir) = nptl] (tests): Add tst-align-clone.
21021         * nptl/tst-getpid1.c: Moved ...
21022         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
21023         * nptl/tst-getpid2.c: Moved ...
21024         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
21025         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
21026         * sysdeps/unix/sysv/linux/Makefile
21027         [$(subdir) = nptl] (tests): ... here.
21028         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
21029         * sysdeps/unix/sysv/linux/Makefile
21030         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
21031
21032         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
21033         Drop trailing \n from perror argument.  Use return rather than exit.
21034
21035         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
21036         on [SA_SIGINFO].
21037         * nptl/tst-cancel21.c (do_test): Likewise.
21038         * debug/tst-backtrace6.c: Include <signal.h> first thing.
21039         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
21040         [!SA_SIGINFO]: Make it a stub test.
21041
21042         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
21043         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
21044
21045         * posix/tst-getlogin.c: Move to ...
21046         * login/tst-getlogin.c: ... here.
21047         * posix/Makefile (tests): Move tst-getlogin to ...
21048         * login/Makefile (tests): ... here.
21049
21050         * libio/tst-atime.c (do_test): Move local variables SV and E
21051         inside [ST_NOATIME] conditional.
21052
21053         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
21054
21055         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
21056
21057         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
21058         (wait_code): New function replaces macro.
21059         Call nanosleep rather than syscall.
21060
21061         * nptl/pt-system.c: Rewritten.  Put everything under
21062         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21063         Use IFUNC to redirect when possible.
21064
21065         * nptl/pt-longjmp.c: Rewritten.  Put everything under
21066         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21067         Use IFUNC to redirect when possible.
21068
21069         * nptl/pt-fork.c: Rewritten.  Put everything under
21070         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21071         Use IFUNC to redirect when possible.
21072         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
21073
21074         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
21075         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
21076         unconditionally nowadays.  This included the only reference to
21077         __vdso_clock_gettime that appears outside libc proper.
21078         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
21079         Remove version set (containing only __vdso_clock_gettime).
21080         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
21081         Add attribute_hidden.
21082         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
21083         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
21084         libc_hidden_data_def.
21085         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
21086         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
21087
21088         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
21089         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
21090         setrpcent, and getrpcport to ...
21091         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
21092         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
21093         getrpcbynumber_r, and getrpcent_r to ...
21094         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
21095         * inet/getrpcbyname.c: Moved ...
21096         * sunrpc/getrpcbyname.c: ... here.
21097         * inet/getrpcbyname_r.c: Moved ...
21098         * sunrpc/getrpcbyname_r.c: ... here.
21099         * inet/getrpcbynumber.c: Moved ...
21100         * sunrpc/getrpcbynumber.c: ... here.
21101         * inet/getrpcbynumber_r.c: Moved ...
21102         * sunrpc/getrpcbynumber_r.c: ... here.
21103         * inet/getrpcent.c: Moved ...
21104         * sunrpc/getrpcent.c: ... here.
21105         * inet/getrpcent_r.c: Moved ...
21106         * sunrpc/getrpcent_r.c: ... here.
21107         * inet/Makefile (routines): Move those to ...
21108         * sunrpc/Makefile (routines): ... here.
21109         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
21110         the $(subdirs) list.
21111         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
21112         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
21113         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
21114         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
21115
21116         * elf/Makefile (routines): Include $(all-dl-routines), not just
21117         $(dl-routines).
21118         (rtld-routines): Likewise.  Use = rather than :=.
21119         * sysdeps/aarch64/Makefile [$(subdir) = elf]
21120         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
21121         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
21122         * sysdeps/arm/Makefile: Likewise.
21123         * sysdeps/i386/Makefile: Likewise.
21124         * sysdeps/x86_64/Makefile: Likewise.
21125         * sysdeps/hppa/Makefile [$(subdir) = elf]
21126         (sysdep_routines, sysdep-rtld-routines): Don't add
21127         $(sysdep-dl-routines) to these.
21128         * sysdeps/ia64/Makefile: Likewise.
21129         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
21130         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
21131         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
21132         Don't add dl-static to these; sysdep-dl-routines alone is enough.
21133         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
21134         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
21135         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
21136         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
21137         * sysdeps/powerpc/Makefile [$(subdir) = elf]
21138         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
21139         these; sysdep-dl-routines alone is enough.
21140
21141 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
21142
21143         [BZ #17932]
21144         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
21145         where multiplication results in zero and third argument is finite
21146         and nonzero.
21147         * math/auto-libm-test-in: Add more tests of fma.
21148         * math/auto-libm-test-out: Regenerated.
21149
21150         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
21151         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
21152         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
21153         (_FP_CMP_EQ): Likewise.
21154         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
21155
21156         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
21157         extra argument CHECK_NAN.  Redefine as wrapper around
21158         _FP_EXTEND_CNAN.
21159
21160 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
21161
21162         * version.h (RELEASE): Set to "stable".
21163         (VERSION): Set to "2.21"
21164         * include/features.h (__GLIBC_MINOR__): Set to 21.
21165
21166         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
21167
21168 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21169             Paul Eggert  <eggert@cs.ucla.edu>
21170
21171         [BZ #16618]
21172         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
21173         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
21174         size in bytes. Store needed elements in wpmax. Use needed size
21175         in bytes for extend_alloca.
21176
21177 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
21178
21179         * manual/install.texi: Latest tested versions are GCC 4.9.2,
21180         binutls 2.25, and texinfo 5.2.
21181         * INSTALL: Regenerate.
21182         * sysdeps/nios2/configure: Regenerate.
21183         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
21184         * manual/contrib.texi: Update.
21185         * po/be.po: Update.
21186         * po/bg.po: Update.
21187         * po/ca.po: Update.
21188         * po/cs.po: Update.
21189         * po/da.po: Update.
21190         * po/de.po: Update.
21191         * po/el.po: Update.
21192         * po/eo.po: Update.
21193         * po/es.po: Update.
21194         * po/fi.po: Update.
21195         * po/fr.po: Update.
21196         * po/gl.po: Update.
21197         * po/hr.po: Update.
21198         * po/hu.po: Update.
21199         * po/ia.po: Update.
21200         * po/id.po: Update.
21201         * po/it.po: Update.
21202         * po/ja.po: Update.
21203         * po/ko.po: Update.
21204         * po/lt.po: Update.
21205         * po/nb.po: Update.
21206         * po/nl.po: Update.
21207         * po/pl.po: Update.
21208         * po/pt_BR.po: Update.
21209         * po/ru.po: Update.
21210         * po/rw.po: Update.
21211         * po/sk.po: Update.
21212         * po/sl.po: Update.
21213         * po/sv.po: Update.
21214         * po/tr.po: Update.
21215         * po/uk.po: Update.
21216         * po/vi.po: Update.
21217         * po/zh_CN.po: Update.
21218         * po/zh_TW.po: Update.
21219
21220         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
21221         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
21222         * sysdeps/hppa/dl-irel.h: Remove #warning.
21223         * sysdeps/hppa/entry.h: Provide prototype for
21224         __canonicalize_funcptr_for_compare and cast argument.
21225         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
21226         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
21227         * sysdeps/hppa/sotruss-lib.c: New file.
21228         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
21229         (atomic_compare_and_exchange_val_acq): Use __typeof__.
21230         (atomic_compare_and_exchange_bool_acq): Likewise.
21231         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
21232         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
21233
21234         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
21235         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
21236         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
21237
21238 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
21239
21240         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
21241         called function in non-PIC case.
21242
21243 2015-01-31  David S. Miller  <davem@davemloft.net>
21244
21245         * sysdeps/sparc/sparc32/bits/atomic.h
21246         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
21247         unlock not after it.
21248         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
21249         volatile register usage warnings from the compiler.
21250
21251         * sysdeps/sparc/nptl/sem_init.c: Delete.
21252         * sysdeps/sparc/nptl/sem_post.c: Delete.
21253         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
21254         * sysdeps/sparc/nptl/sem_wait.c: Delete.
21255         * sysdeps/sparc/sparc32/sem_init.c: New file.
21256         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
21257         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
21258         padding explicitly initialized.
21259         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
21260         padding for in-semaphore spinlock.
21261         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
21262         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
21263         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
21264         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
21265         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
21266         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
21267         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
21268         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
21269         version.
21270         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
21271         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
21272
21273 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
21274
21275         [BZ #17801]
21276         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21277         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
21278         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
21279         New.
21280         (index_AVX_Fast_Unaligned_Load): Likewise.
21281         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
21282         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
21283         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
21284         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
21285         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
21286         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
21287         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
21288         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
21289         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
21290
21291 2015-01-29  Andreas Schwab  <schwab@suse.de>
21292
21293         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
21294
21295 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
21296
21297         [BZ #17892]
21298         * nscd/nscd_stat.c (send_stats): Initialize DATA.
21299
21300 2015-01-28  Martin Sebor  <msebor@redhat.com>
21301
21302         * math/README.libm-test: Clarify. Add "How to read the test output."
21303
21304 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
21305
21306         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
21307         Define to 0.
21308
21309 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
21310
21311         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
21312         (__HAVE_64B_ATOMICS): Define to 0.
21313
21314 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21315
21316         [BZ #17885]
21317         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
21318         value to set as new flag.
21319
21320         [BZ #16576]
21321         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
21322         and use _ARCH_PPCSQ instead.
21323         (__ieee754_sqrt): Likewise.
21324         (__ieee754_sqrtf): Likewise.
21325         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
21326         _ARCH_PPCSQ is defined.
21327         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
21328         fsqrt instruction.
21329         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
21330         _ARCH_PPCSQ is defined.
21331         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
21332         fsqrts instruction.
21333         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
21334
21335 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21336
21337         * iconv/loop.c: Suppress array out of bound warning caused by GCC
21338         bug (GCC BZ #64739).
21339
21340 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
21341
21342         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
21343         Mark _retval as used.
21344         (lll_futex_wake_unlock): Likewise.
21345         (lll_futex_timed_wait_requeue_pi): Likewise.
21346
21347         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
21348         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
21349         register variables.
21350
21351         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
21352         libm_hidden_def.
21353
21354         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
21355         (__bswap_64): Mark as __always_inline.
21356
21357 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
21358
21359         [BZ #15378]
21360         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
21361         when none of the search directories exist.
21362
21363 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21364
21365         [BZ #17869]
21366         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
21367         power8 in .machine directive.
21368
21369         [BZ #17868]
21370         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
21371         set dependency from opd value.
21372
21373 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21374
21375         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21376         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
21377         architecture.
21378
21379 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21380
21381         [BZ #17870]
21382         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
21383         with uint64_t.
21384         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
21385         (uint64_t) 1.
21386         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
21387         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
21388         Replace 1UL with (uint64_t) 1.
21389         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
21390         int with uint64_t.
21391
21392 2015-01-23  Roland McGrath  <roland@hack.frob.com>
21393
21394         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
21395         (if_freenameindex): Likewise.
21396
21397         * resource/getrlimit64.c: Add missing libc_hidden_def.
21398
21399 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
21400
21401         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
21402         __label__.
21403         (_FP_FMA): Likewise.
21404         (_FP_TO_INT_ROUND): Likewise.
21405         (_FP_FROM_INT): Likewise.
21406
21407 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21408
21409         [BZ #16418]
21410         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
21411         Make code racy and cancel safe.
21412
21413 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
21414
21415         * sysdeps/arm/unwind-resume.h: Fix copyright year.
21416         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
21417         attribution.
21418
21419         * pwd/tst-getpw.c: Rewrite.
21420
21421         [BZ #17702]
21422         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
21423         (modules-names): Add moddummy1 and moddummy2.
21424         ($(objpfx)tst-rec-dlopen): Define.
21425         * dlfcn/moddummy1.c: New file.
21426         * dlfcn/moddummy2.c: New file.
21427         * dlfcn/tst-rec-dlopen.c: New file.
21428         * elf/dl-cache.c (_dl_load_cache_lookup):
21429         Return char*. Copy result with alloca/strcpy/strdup.
21430         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
21431         returns char*. Free cached. If not saving realname
21432         free cached.
21433         * elf/dl-open.c (dl_open_worker): Do not assert that
21434         _r_debug->r_state is RT_CONSISTENT.
21435         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
21436         returns char*.
21437
21438 2015-01-21  Torvald Riegel  <triegel@redhat.com>
21439             Carlos O'Donell  <carlos@redhat.com>
21440
21441         [BZ #12674]
21442         * nptl/sem_waitcommon.c: New file.
21443         * nptl/sem_wait.c: Include sem_waitcommon.c.
21444         (__sem_wait_cleanup, do_futex_wait): Remove.
21445         (__new_sem_wait): Adapt.
21446         (__new_sem_trywait): New function.
21447         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
21448         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
21449         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
21450         (sem_timedwait): Adapt.
21451         * nptl/sem_post.c (__new_sem_post): Adapt.
21452         (futex_wake): New function.
21453         (__old_sem_post): Add release MO fence.
21454         * nptl/sem_open.c (sem_open): Adapt.
21455         * nptl/sem_init.c (__new_sem_init): Adapt.
21456         (futex_private_if_supported): New function.
21457         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
21458         (__old_sem_getvalue): Add using previous code.
21459         * sysdeps/nptl/internaltypes.h: Adapt.
21460         * nptl/tst-sem13.c (do_test): Adapt.
21461         * nptl/tst-sem11.c (main): Adapt.
21462         * nptl/sem_trywait.c: Remove.
21463         * nptl/DESIGN-sem.txt: Remove.
21464         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
21465         (gen-as-const-headers): Remove structsem.sym.
21466         * nptl/structsem.sym: Remove.
21467         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
21468         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
21469         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
21470         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
21471         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
21472         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
21473         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
21474         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
21475         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
21476         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
21477         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
21478         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
21479         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
21480         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
21481         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
21482         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
21483         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
21484         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
21485         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
21486         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
21487         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
21488         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
21489
21490 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
21491
21492         * INSTALL: Regenerated.
21493
21494         * po/libc.pot: Regenerated.
21495
21496 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
21497             Sandra Loosemore  <sandra@codesourcery.com>
21498             Andrew Jenner  <andrew@codesourcery.com>
21499             Joseph Myers  <joseph@codesourcery.com>
21500             Nathan Sidwell  <nathan@codesourcery.com>
21501
21502         * NEWS: Mention new Nios II port.
21503         * sysdeps/nios2/Implies: New file.
21504         * sysdeps/nios2/Makefile: New file.
21505         * sysdeps/nios2/Subdirs: New file.
21506         * sysdeps/nios2/Versions: New file.
21507         * sysdeps/nios2/__longjmp.S: New file.
21508         * sysdeps/nios2/abort-instr.h: New file.
21509         * sysdeps/nios2/backtrace.c: New file.
21510         * sysdeps/nios2/bits/endian.h: New file.
21511         * sysdeps/nios2/bits/fenv.h: New file.
21512         * sysdeps/nios2/bits/link.h: New file.
21513         * sysdeps/nios2/bits/setjmp.h: New file.
21514         * sysdeps/nios2/bsd-_setjmp.S: New file.
21515         * sysdeps/nios2/bsd-setjmp.S: New file.
21516         * sysdeps/nios2/configure: New generated file.
21517         * sysdeps/nios2/configure.ac: New file.
21518         * sysdeps/nios2/crti.S: New file.
21519         * sysdeps/nios2/crtn.S: New file.
21520         * sysdeps/nios2/dl-init.c: New file.
21521         * sysdeps/nios2/dl-machine.h: New file.
21522         * sysdeps/nios2/dl-sysdep.h: New file.
21523         * sysdeps/nios2/dl-tls.h: New file.
21524         * sysdeps/nios2/dl-trampoline.S: New file.
21525         * sysdeps/nios2/gccframe.h: New file.
21526         * sysdeps/nios2/gmp-mparam.h: New file.
21527         * sysdeps/nios2/jmpbuf-offsets.h: New file.
21528         * sysdeps/nios2/jmpbuf-unwind.h: New file.
21529         * sysdeps/nios2/ldsodefs.h: New file.
21530         * sysdeps/nios2/libc-tls.c: New file.
21531         * sysdeps/nios2/libm-test-ulps: New file.
21532         * sysdeps/nios2/machine-gmon.h: New file.
21533         * sysdeps/nios2/math-tests.h: New file.
21534         * sysdeps/nios2/math_private.h: New file.
21535         * sysdeps/nios2/memusage.h: New file.
21536         * sysdeps/nios2/nptl/Makefile: New file.
21537         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
21538         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
21539         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
21540         * sysdeps/nios2/nptl/pthreaddef.h: New file.
21541         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
21542         * sysdeps/nios2/nptl/tls.h: New file.
21543         * sysdeps/nios2/preconfigure: New file.
21544         * sysdeps/nios2/s_fma.c: New file.
21545         * sysdeps/nios2/s_fmaf.c: New file.
21546         * sysdeps/nios2/setjmp.S: New file.
21547         * sysdeps/nios2/sfp-machine.h: New file.
21548         * sysdeps/nios2/sotruss-lib.c: New file.
21549         * sysdeps/nios2/stackguard-macros.h: New file.
21550         * sysdeps/nios2/stackinfo.h: New file.
21551         * sysdeps/nios2/start.S: New file.
21552         * sysdeps/nios2/sysdep.h: New file.
21553         * sysdeps/nios2/tls-macros.h: New file.
21554         * sysdeps/nios2/tst-audit.h: New file.
21555         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
21556         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
21557         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
21558         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
21559         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
21560         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
21561         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
21562         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
21563         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
21564         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
21565         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
21566         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
21567         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
21568         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
21569         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
21570         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
21571         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
21572         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
21573         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
21574         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
21575         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
21576         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
21577         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
21578         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
21579         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
21580         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
21581         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
21582         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
21583         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
21584         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
21585         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
21586         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
21587         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
21588         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
21589         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
21590         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
21591         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
21592         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
21593         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
21594         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
21595         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
21596         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
21597         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
21598         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
21599
21600 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21601
21602         [BZ #17844]
21603         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
21604         (getutent): Use weak_alias in non SHARED case
21605         and default_symbol_version in SHARED case.
21606         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
21607         (getutent_r, pututline): Likewise.
21608         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
21609         (getutid): Likewise.
21610         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
21611         (getutid_r): Likewise.
21612         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
21613         (getutline): Likewise.
21614         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
21615         (getutline_r): Likewise.
21616         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
21617         (updwtmp): Likewise.
21618
21619 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21620
21621         [BZ #17848]
21622         * sysdeps/s390/s390-32/memcmp.S
21623         (memcmp_g5): Rename to __memcmp_g5.
21624         * sysdeps/s390/s390-32/memcpy.S
21625         (memcpy_g5): Rename to __memcpy_g5.
21626         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21627         (memcpy_mvcle) Rename to __memcpy_mvcle.
21628         * sysdeps/s390/s390-32/memset.S
21629         (memset_g5): Rename to __memset_g5.
21630         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21631         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21632         and use prefixed functions.
21633         * sysdeps/s390/s390-32/multiarch/memcmp.S
21634         (memcmp_z196): Rename to __memcmp_z196.
21635         (memcmp_z10): Rename to __memcmp_z10.
21636         (memcmp): Set alias to __memcmp_g5.
21637         (bcmp): Set alias to __memcmp_g5.
21638         * sysdeps/s390/s390-32/multiarch/memcpy.S
21639         (memcpy_z196): Rename to __memcpy_z196.
21640         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21641         (memcpy_z10): Rename to __memcpy_z10.
21642         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21643         (memcpy): Set alias to __memcpy_g5.
21644         * sysdeps/s390/s390-32/multiarch/memset.S
21645         (memset_z196): Rename to __memset_z196.
21646         Jump to __memset_mvcle instead of memset_mvcle.
21647         (memset_z10): Rename to __memset_z10.
21648         Jump to __memset_mvcle instead of memset_mvcle.
21649         (memset_mvcle) Rename to __memset_mvcle.
21650         (memset): Set alias to __memset_g5.
21651         * sysdeps/s390/s390-64/memcmp.S
21652         (memcmp_z900): Rename to __memcmp_z900.
21653         * sysdeps/s390/s390-64/memcpy.S
21654         (memcpy_z900): Rename to __memcpy_z900.
21655         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21656         (memcpy_mvcle) Rename to __memcpy_mvcle.
21657         * sysdeps/s390/s390-64/memset.S
21658         (memset_z900): Rename to __memset_z900.
21659         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21660         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21661         and use prefixed functions.
21662         * sysdeps/s390/s390-64/multiarch/memcmp.S
21663         (memcmp_z196): Rename to __memcmp_z196.
21664         (memcmp_z10): Rename to __memcmp_z10.
21665         (memcmp): Set alias to __memcmp_z900.
21666         (bcmp): Set alias to __memcmp_z900.
21667         * sysdeps/s390/s390-64/multiarch/memcpy.S
21668         (memcpy_z196): Rename to __memcpy_z196.
21669         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21670         (memcpy_z10): Rename to __memcpy_z10.
21671         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21672         (memcpy): Set alias to __memcpy_z900.
21673         * sysdeps/s390/s390-64/multiarch/memset.S
21674         (memset_z196): Rename to __memset_z196.
21675         Jump to __memset_mvcle instead of memset_mvcle.
21676         (memset_z10): Rename to __memset_z10.
21677         Jump to __memset_mvcle instead of memset_mvcle.
21678         (memset_mvcle) Rename to __memset_mvcle.
21679         (memset): Set alias to __memset_z900.
21680
21681 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21682
21683         [BZ #17748]
21684         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21685         __fesetenv instead of fesetenv.
21686
21687 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21688
21689         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21690         macro.
21691
21692 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21693
21694         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21695         regression on LE.
21696
21697         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21698         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21699         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21700         strncmp-power8 object.
21701         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21702         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21703         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21704         * NEWS: Update.
21705
21706 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21707             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21708
21709         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21710         trailing byte check.
21711
21712 2015-01-13  David S. Miller  <davem@davemloft.net>
21713
21714         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21715
21716 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21717
21718         * login/logout.c (logout): Use memset rather than bzero.
21719         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21720         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21721         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21722         (_gethtbyaddr): Likewise.
21723         * locale/programs/simple-hash.c (bcopy): Macro removed.
21724
21725 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21726
21727         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21728         Add strcmp-power8 object.
21729         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21730         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21731         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21732         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21733         __strcmp_power8 implementation.
21734         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21735         * NEWS: Update.
21736
21737         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21738         Add strncpy-power8 and stpncpy-power8 objects.
21739         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21740         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21741         implementations.
21742         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21743         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21744         __stpncpy_power8 implementation.
21745         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21746         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21747         __strncpy_power8 implementation.
21748         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21749         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21750         * NEWS: Update.
21751
21752         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21753         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21754         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21755
21756         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21757         strncat-power8 object.
21758         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21759         __strcat_power8 implementation.
21760         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21761         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21762         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21763         optimized strcat for power8.
21764
21765         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21766         strcpy-power8 and stpcpy-power8 objects.
21767         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21768         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21769         implementations.
21770         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21771         multiarch stpcpy implementation for POWER8.
21772         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21773         multiarch strcpy implementation for POWER8.
21774         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21775         __strcpy_power8 function.
21776         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21777         stpcpy for POWER8.
21778         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21779         strcpy for POWER8.
21780         * NEWS: Update.
21781
21782 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21783
21784         [BZ #16009]
21785         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21786         weights and rules. Use do_xfrm_cached if data fits in cache,
21787         do_xfrm otherwise.  Moved former main loop to...
21788         * (do_xfrm_cached): New function.
21789         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21790         find_idx, find_position and stack_push.
21791         * (find_idx): New function.
21792         * (find_position): Likewise.
21793         * localedata/sort-test.sh: Added test run for do_xfrm.
21794         * localedata/xfrm-test.c (main): Added command line option
21795         -nocache to run the test with strings that are too large for
21796         the STRXFRM cache.
21797
21798 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21799
21800         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21801         variable to lll_futex_wake call, not the value itself.
21802
21803 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21804
21805         [BZ #17803]
21806         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21807         twom64.  Adjust value to 0x1p-64L.
21808         (__scalblnl): Only return standard underflowing result for K <=
21809         -64 not K <= -63; adjust exponent for underflowing result by 64
21810         not 63.
21811         * math/libm-test.inc (scalbn_test_data): Add more tests.
21812         (scalbln_test_data): Likewise.
21813
21814         [BZ #17834]
21815         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21816         0x1p63L.
21817         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21818         not HX.
21819         * math/libm-test.inc (scalbn_test_data): Add more tests.
21820         (scalbln_test_data): Likewise.
21821
21822 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21823             Stefani Seibold  <stefani@seibold.net>
21824
21825         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21826         (sysdep_routines): Add dl-vdso here, ...
21827         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21828         (sysdep_routines): ... not here.
21829         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21830         fallback when vDSO is not presented.
21831         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21832         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21833         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21834         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21835         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21836         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21837         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21838         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21839         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21840         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21841         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21842         fallback configurable symbol when vDSO is not available.
21843         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21844         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21845         be able to redefine fallback symbol when vDSO is not available.
21846         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21847         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21848
21849 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21850
21851         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21852         (TLS_INIT_TP): Add tm_capable initialization.
21853         (TLS_DEFINE_INIT_TP): Likewise.
21854         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21855         TCB.
21856         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21857         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21858         calculation.
21859         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21860         transactoion is lock elision is built and TCB tm_capable is set.
21861         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21863         (INTERNAL_SYSCALL_NCS): Likewise.
21864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21865         (INTERNAL_SYSCALL_NCS): Likewise.
21866         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21867
21868         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21869         for powerpc.
21870         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21871         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21872         and remove it for 32 bits case.
21873         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21874         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21875         initialization.
21876         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21877         Disable lock elision with rdlocks if elision is not available.
21878
21879         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21880         (sysdep_routines): Add lock elision objects.
21881         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21882         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21883         [pthread_mutex_t] (__elision): Add field.
21884         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21885         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21886         elision definitions for powerpc.
21887         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21888         implementation of lock elision for powerpc.
21889         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21890         implementation of timed lock elision for powerpc.
21891         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21892         implementation of trylock with lock elision for powerpc.
21893         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21894         implementaion of unlock for lock elision for powerpc.
21895         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21896         automatic enable lock elision for mutexes.
21897         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21898         transaction execution definitions for powerpc.
21899         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21900         definitions.
21901         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21902         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21903         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21904         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21905         * NEWS: Update.
21906
21907 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21908
21909         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21910         for #include of <shm-directory.h>.
21911
21912 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21913
21914         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21915         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21916
21917 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21918
21919         [BZ #17791]
21920         * NEWS: Mention bug fix.
21921         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21922         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21923         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21924
21925 2015-01-09  Torvald Riegel <triegel@redhat.com>
21926
21927         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21928
21929 2015-01-09  Torvald Riegel <triegel@redhat.com>
21930
21931         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21932
21933 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21934
21935         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21936         pointer and cast to uintptr_t.
21937
21938 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21939
21940         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21941         removed.
21942         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21943
21944 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21945
21946         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21947         of 0.
21948
21949 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21950
21951         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21952         <nptl/pthreadP.h> instead.
21953         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21954
21955         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21956         already defined.
21957         [__SIGRTMIN] (init): Function removed.
21958         [__SIGRTMIN] (initialized): Variable removed.
21959         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21960         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21961         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21962         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21963         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21964         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21965         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21966         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21967         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21968         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21969         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21970         * sysdeps/nptl/allocrtsig.c: New file.
21971         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21972         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21973         * sysdeps/generic/testrtsig.h: File removed.
21974
21975         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21976         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21977
21978         * nptl/nptl-init.c (pthread_functions): Conditionalize
21979         .ptr__nptl_setxid initialization on [SIGSETXID].
21980
21981         * sysdeps/nptl/sys/procfs.h: New file.
21982         * nptl_db/Makefile (headers): Add it.
21983         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21984
21985         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21986         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21987         * nptl/pthread_attr_setaffinity.c: Include it.
21988         * nptl/pthread_setattr_default_np.c: Likewise.
21989         * nptl/check-cpuset.h: New file.
21990
21991 2015-01-08  Richard Henderson  <rth@redhat.com>
21992
21993         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21994         (CFLAGS-tst-execstack-prog.c): Likewise.
21995         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21996
21997 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21998             Sandra Loosemore  <sandra@codesourcery.com>
21999             Andrew Jenner  <andrew@codesourcery.com>
22000             Joseph Myers  <joseph@codesourcery.com>
22001             Nathan Sidwell  <nathan@codesourcery.com>
22002
22003         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
22004         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
22005         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
22006         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
22007         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
22008         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
22009         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
22010         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
22011         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
22012         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
22013         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
22014         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
22015         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
22016         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
22017         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
22018         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
22019         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
22020
22021 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22022
22023         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
22024         timespec struct member in syscall macro.
22025         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
22026         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
22027         first timeval struct member in syscall macro.
22028         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
22029
22030 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
22031
22032         [BZ #17748]
22033         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
22034         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
22035         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
22036         __feupdateenv and define as weak alias of __feupdateenv.  Use
22037         libm_hidden_weak.
22038         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
22039         libm_hidden_def.
22040         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
22041         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
22042         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22043         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
22044         libm_hidden_def.
22045         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
22046         __feupdateenv and define as weak alias of __feupdateenv.  Use
22047         libm_hidden_weak.
22048         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
22049         libm_hidden_def.
22050         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
22051         __feupdateenv and define as weak alias of __feupdateenv.  Use
22052         libm_hidden_weak.
22053         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
22054         libm_hidden_def.
22055         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22056         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22057         (__feupdateenv): Likewise.
22058         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
22059         __feupdateenv and define as weak alias of __feupdateenv.  Use
22060         libm_hidden_weak.
22061         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22062         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
22063         libm_hidden_def.
22064         * sysdeps/tile/math_private.h (__feupdateenv): New inline
22065         function.
22066         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
22067         libm_hidden_def.
22068         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
22069         __feupdateenv instead of feupdateenv.
22070         (default_libc_feupdateenv_test): Likewise.
22071         (libc_feresetround_ctx): Likewise.
22072
22073 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22074
22075         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
22076         prototype.
22077
22078 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
22079
22080         * posix/regcomp.c (parse_bracket_exp): Initialize type to
22081         COLL_SYM in a couple of places to avoid uninitialized variable
22082         wanings on tilegx gcc 4.8.2.
22083
22084 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22085
22086         * sysdeps/aarch64/strcpy.S: New file.
22087         * sysdeps/aarch64/stpcpy.S: New file.
22088         * NEWS: Updated.
22089
22090 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22091
22092         * sysdeps/aarch64/strrchr.S: New file.
22093         * NEWS: Updated.
22094
22095 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
22096
22097         [BZ #17658]
22098         * stdlib/setenv.c: Fix memory leak when setting large,
22099         duplicate string.
22100
22101 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
22102
22103         [BZ #17273]
22104         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
22105         and tabs from buffer before parsing fstab entry.
22106         * misc/tst-mntent.c (main): Add test for mount entry with
22107         trailing spaces and tabs.
22108
22109 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
22110
22111         [BZ #17748]
22112         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
22113         * math/fesetround.c (fesetround): Rename to __fesetround and
22114         define as weak alias of __fesetround.  Use libm_hidden_weak.
22115         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
22116         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
22117         * sysdeps/arm/fesetround.c (fesetround): Likewise.
22118         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
22119         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
22120         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
22121         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
22122         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
22123         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
22124         __fesetround_inline.
22125         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
22126         __fesetround_inline instead of __fesetround.
22127         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
22128         __fesetround and define as weak alias of __fesetround.  Use
22129         libm_hidden_weak.  Call __fesetround_inline instead of
22130         __fesetround.
22131         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
22132         __fesetround and define as weak alias of __fesetround.  Use
22133         libm_hidden_weak.
22134         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
22135         Likewise.
22136         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
22137         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22138         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
22139         * sysdeps/tile/math_private.h (__fesetround): New inline function.
22140         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
22141         __fesetround and define as weak alias of __fesetround.  Use
22142         libm_hidden_weak.
22143         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
22144         __fesetround instead of fesetround.
22145         (default_libc_feholdexcept_setround): Likewise.
22146         (libc_feholdsetround_ctx): Likewise.
22147         (libc_feholdsetround_noex_ctx): Likewise.
22148
22149         [BZ #17748]
22150         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
22151         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
22152         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22153         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22154         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22155         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
22156         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22157         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
22158         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22159         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22160         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22161         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22162         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22163         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22164         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
22165         libm_hidden_def.
22166         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
22167         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
22168         Likewise.
22169         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22170         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22171         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22172         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22173         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
22174         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22175         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22176         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
22177         __fesetenv instead of fesetenv.
22178         (libc_feresetround_noex_ctx): Likewise.
22179         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22180         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22181         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
22182         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22183         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22184         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22185         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22186         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22187         (__feupdateenv): Likewise.
22188         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22189         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22190         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22191         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
22192
22193 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22194
22195         [BZ #17806]
22196         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
22197         addresses have been freed.
22198
22199 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22200
22201         * resolv/res_init.c (__res_vinit): Improve comments about nserv
22202         and nservall.
22203
22204 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
22205
22206         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
22207         Clean up check_pf allocation pattern. addresses
22208
22209 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22210
22211         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
22212         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
22213         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
22214         * nptl/pthread_exit.c (__pthread_exit): Likewise.
22215         * nptl/pthread_join.c (pthread_join): Likewise.
22216         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
22217         * sysdeps/posix/waitid.c (__waitid): Likewise.
22218         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
22219         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
22220         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
22221         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
22222         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
22223         Likewise.
22224         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
22225         (__libc_pread64): Likewise.
22226         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
22227         (__libc_pwrite): Likewise.
22228         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
22229         (__libc_pwrite64): Likewsie.
22230         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
22231         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
22232         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
22233         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
22234         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
22235         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
22236         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
22237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
22238         Likewise.
22239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
22240         (__libc_pread64): Likewise.
22241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
22242         Likewise.
22243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
22244         (__libc_pwrite64): Likewise.
22245         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
22246         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
22247         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
22248         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
22249         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
22250         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
22251         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
22252         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
22253         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
22254         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
22255         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
22256         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
22257         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
22258         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
22259         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22260         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
22261         Likewise.
22262
22263 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
22264
22265         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
22266         (CFLAGS-test-double.c): Likewise.
22267         (CFLAGS-test-ldouble.c): Likewise.
22268         (CPPFLAGS-test-ifloat.c): Likewise.
22269         (CPPFLAGS-test-idouble.c): Likewise.
22270         (CPPFLAGS-test-ildoubl.c): Likewise.
22271         (CFLAGS-test-test-fenv.c): Remove variable.
22272         (CFLAGS-test-misc.c): Likewise.
22273
22274 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
22275
22276         [BZ #17797]
22277         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
22278         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
22279         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
22280         CLOCKS_PER_SEC == 1000000.
22281         * time/clocktest.c (main): Replace %ld with %jd and cast to
22282         intmax_t.
22283
22284 2015-01-05  Roland McGrath  <roland@hack.frob.com>
22285
22286         * sysdeps/generic/unwind-resume.h: New file.
22287         * sysdeps/gnu/unwind-resume.c: Include it.
22288         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
22289         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
22290         argument list.
22291         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
22292         global rather than static.
22293         (_Unwind_Resume): Update user.
22294         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
22295         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
22296         rather than static.  Add __attribute__ ((cold)).
22297         (_Unwind_Resume, __gcc_personality_v0): Update callers.
22298         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
22299         * sysdeps/arm/arm-unwind-resume.S: New file.
22300         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
22301         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
22302         * sysdeps/arm/Makefile [$(subdir) = csu]
22303         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
22304         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
22305         Add rt-arm-unwind-resume.
22306         [$(subdir) = nptl]
22307         (libpthread-sysdep_routines, libpthread-shared-only-routines):
22308         Add pt-arm-unwind-resume.
22309         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
22310         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
22311
22312 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22313
22314         [BZ #17748]
22315         * include/fenv.h (__feholdexcept): Declare.  Use
22316         libm_hidden_proto.
22317         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
22318         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
22319         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22320         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
22321         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
22322         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
22323         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
22324         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22325         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
22326         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
22327         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22328         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
22329         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
22330         (feholdexcept): Likewise.
22331         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
22332         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22333         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22334         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22335         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
22336         __feholdexcept instead of feholdexcept.
22337         (default_libc_feholdexcept_setround): Likewise.
22338
22339 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22340
22341         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
22342         to avoid using stl/str to align destination.
22343
22344 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22345
22346         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
22347
22348 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22349
22350         [BZ #17796]
22351         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
22352         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
22353         Define as weak alias not strong alias.
22354
22355 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22356
22357         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
22358         bltzal with addiupc.
22359         (RTLD_START): Ditto.
22360
22361 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
22362
22363         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
22364         for __vdso_* functions in declarations.
22365         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
22366         definitions.
22367         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
22368         INTERNAL_VSYSCALL): Use struct return types to check for error.
22369
22370         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
22371         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
22372         function with cast from llround().
22373         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
22374         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
22375         Define.
22376
22377 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22378
22379         [BZ #17793]
22380         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
22381         Define as weak alias not strong alias.
22382
22383         [BZ #17635]
22384         * ctype/ctype-c99.c: New file.  isblank implementation moved from
22385         ...
22386         * ctype/ctype-extn.c: ... here.
22387         (__isblank_l): Move to ...
22388         * ctype/ctype-c99_l.c: ... here.  New file.
22389         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
22390         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
22391         Remove variable.
22392         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
22393         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
22394         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
22395         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
22396         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
22397
22398         [BZ #17777]
22399         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
22400         (posix_fadvise64): Define as weak alias not strong alias.
22401         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22402         (posix_fallocate64): Likewise.
22403         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
22404         Remove variable.
22405         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
22406         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
22407         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
22408         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
22409         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
22410
22411 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
22412
22413         [BZ #16191]
22414         * NEWS: Mention bug fix.
22415         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
22416         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
22417         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
22418         (HOST_STACK_END_ADDR): Likewise.
22419
22420 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22421
22422         [BZ #17748]
22423         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
22424         * math/fegetround.c (fegetround): Rename to __fegetround and
22425         define as weak alias of __fegetround.  Use libm_hidden_weak.
22426         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
22427         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
22428         * sysdeps/arm/fegetround.c (fegetround): Likewise.
22429         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
22430         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
22431         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
22432         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
22433         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
22434         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
22435         Undefine after rather than before function definition; use
22436         parentheses around function name in definition.
22437         (__fegetround): Also undefine macro after function definition.
22438         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
22439         __fegetround and define as weak alias of __fegetround.  Use
22440         libm_hidden_weak.  Do not undefine as macro.
22441         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
22442         Likewise.
22443         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
22444         __fegetround and define as weak alias of __fegetround.  Use
22445         libm_hidden_weak.
22446         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22447         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
22448         * sysdeps/tile/math_private.h (__fegetround): New inline function.
22449         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
22450         __fegetround and define as weak alias of __fegetround.  Use
22451         libm_hidden_weak.
22452         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
22453         __fegetround instead of fegetround.
22454
22455         [BZ #17782]
22456         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
22457         Condition macro definition on [__USE_MISC].
22458
22459         [BZ #17781]
22460         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
22461         (struct sigaction): Change type of sa_flags field to int.
22462
22463         [BZ #17780]
22464         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
22465         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
22466         __glibc_reserved0.
22467
22468         * nptl/version.c (banner): Use single year in copyright notice.
22469
22470         * NEWS: Update copyright dates.
22471         * catgets/gencat.c (print_version): Likewise.
22472         * csu/version.c (banner): Likewise.
22473         * debug/catchsegv.sh: Likewise.
22474         * debug/pcprofiledump.c (print_version): Likewise.
22475         * debug/xtrace.sh (do_version): Likewise.
22476         * elf/ldconfig.c (print_version): Likewise.
22477         * elf/ldd.bash.in: Likewise.
22478         * elf/pldd.c (print_version): Likewise.
22479         * elf/sotruss.sh: Likewise.
22480         * elf/sprof.c (print_version): Likewise.
22481         * iconv/iconv_prog.c (print_version): Likewise.
22482         * iconv/iconvconfig.c (print_version): Likewise.
22483         * locale/programs/locale.c (print_version): Likewise.
22484         * locale/programs/localedef.c (print_version): Likewise.
22485         * login/programs/pt_chown.c (print_version): Likewise.
22486         * malloc/memusage.sh (do_version): Likewise.
22487         * malloc/memusagestat.c (print_version): Likewise.
22488         * malloc/mtrace.pl: Likewise.
22489         * manual/libc.texinfo: Likewise.
22490         * nptl/version.c (banner): Likewise.
22491         * nscd/nscd.c (print_version): Likewise.
22492         * nss/getent.c (print_version): Likewise.
22493         * nss/makedb.c (print_version): Likewise.
22494         * posix/getconf.c (main): Likewise.
22495         * scripts/test-installation.pl: Likewise.
22496         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22497
22498 2015-01-02  Will Newton  <will.newton@linaro.org>
22499
22500         * sysdeps/arm/armv7/configure: Removed.
22501         * sysdeps/arm/armv7/configure.ac: Likewise.
22502
22503 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22504
22505         * All files with FSF copyright notices: Update copyright dates
22506         using scripts/update-copyrights.
22507         * intl/plural.c: Regenerated.
22508         * locale/programs/charmap-kw.h: Likewise.
22509         * locale/programs/locfile-kw.h: Likewise.
22510
22511 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22512
22513         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
22514
22515 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22516
22517         [BZ #17748]
22518         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
22519         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
22520         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22521         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22522         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22523         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
22524         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22525         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
22526         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22527         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22528         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22529         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22530         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22531         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22532         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
22533         libm_hidden_def.
22534         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
22535         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
22536         Likewise.
22537         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22538         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22539         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22540         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22541         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
22542         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22543         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22544         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
22545         __fegetenv instead of fegetenv.
22546         (libc_feholdsetround_noex_ctx): Likewise.
22547
22548 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
22549
22550         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
22551         (Elf_MIPS_ABIFlags_v0): New structure.
22552         (EF_MIPS_FP64): Define.
22553         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
22554         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
22555         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
22556         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
22557         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
22558         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
22559         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
22560         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
22561         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
22562         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
22563         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
22564         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
22565         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
22566         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
22567         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
22568         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
22569         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
22570         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
22571         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
22572         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
22573         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
22574         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
22575         field.
22576         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
22577         EF_MIPS_FP64.
22578         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
22579         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
22580         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
22581         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
22582         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
22583         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
22584         * sysdeps/mips/tst-abi-interlink.c: Likewise.
22585         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
22586         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
22587         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
22588         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
22589         record the current FP ABI extension.
22590         (mips-mode-switch): Define to show if kernel headers support mode
22591         switching.
22592         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22593         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
22594         supported SYSV ABI version to 3.
22595         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
22596         feature.
22597
22598 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22599             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22600
22601         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
22602         path.
22603         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
22604
22605 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22606
22607         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
22608         __fegetround and redefine to call __fegetround.  Remove condition
22609         on [!__NO_MATH_INLINES].
22610         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
22611         function.
22612         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
22613         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
22614         Remove macro.
22615         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
22616         instead of <fenv_libc.h>.
22617         (__llrintl): Call fegetround instead of __fegetround.
22618         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
22619         instead of <fenv_libc.h>.
22620         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22621         (__lrintl): Call fegetround instead of __fegetround.
22622         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22623         instead of <fenv_libc.h>.
22624         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22625         (__rintl): Call fegetround instead of __fegetround.
22626
22627 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22628
22629         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22630         arrays.
22631
22632 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22633
22634         [BZ #17775]
22635         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22636         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22637         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22638
22639 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22640
22641         * sysdeps/i386/tls-macros.h: Include <features.h>.
22642         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22643         (TLS_IE): Likewise.
22644         (TLS_LD): Likewise.
22645         (TLS_GD): Likewise.
22646         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22647         define for GCC >= 5.0.
22648
22649 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22650
22651         * math/test-fenv.c (test_single_exception, set_single_exc,
22652         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22653         feexcp_mask_test, feenable_test, fe_single_test): Add
22654         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22655         case where they are not used.
22656         * math/libm-test.inc: Likewise.
22657         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22658         unused in the absence of FP rounding/exception support.
22659         * stdio-common/tst-printf-round.c: Likewise.
22660         * stdlib/tst-strtod-round.c: Likewise.
22661         * stdlib/tst-strtod-underflow.c: Likewise.
22662
22663 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22664
22665         [BZ #17723]
22666         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22667         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22668         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22669         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22670         libm_hidden_weak.
22671         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22672         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22673         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22674         libm_hidden_def.
22675         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22676         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22677         libm_hidden_weak.
22678         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22679         Likewise.
22680         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22681         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22682         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22683         libm_hidden_weak.
22684         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22685         libm_hidden_def.
22686         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22687         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22688         (__feraiseexcept): Likewise.
22689         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22690         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22691         libm_hidden_weak.
22692         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22693         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22694         libm_hidden_def.
22695         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22696         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22697         Use libm_hidden_def.
22698         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22699         libm_hidden_def.
22700         (feraiseexcept): Define as weak not strong alias.  Use
22701         libm_hidden_weak.
22702         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22703         New inline function.  Factored out of ...
22704         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22705         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22706         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22707         feraiseexcept.
22708         * math/w_acos.c (__acos): Likewise.
22709         * math/w_asin.c (__asin): Likewise.
22710         * math/w_ilogb.c (__ilogb): Likewise.
22711         * math/w_j0.c (y0): Likewise.
22712         * math/w_j1.c (y1): Likewise.
22713         * math/w_jn.c (yn): Likewise.
22714         * math/w_log.c (__log): Likewise.
22715         * math/w_log10.c (__log10): Likewise.
22716         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22717         * sysdeps/aarch64/fpu/math_private.h
22718         (libc_feupdateenv_test_aarch64): Likewise.
22719         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22720         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22721         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22722         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22723         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22724         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22725         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22726         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22727         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22728         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22729
22730 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22731
22732         [BZ #17732]
22733         * io/test-utime.c (main): Replace %ld with %jd and cast to
22734         intmax_t.
22735         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22736         * nptl/tst-mutex5.c: Include <stdint.h>.
22737         (do_test): Replace %ld with %jd and cast to intmax_t.
22738         * posix/tst-regex.c (run_test): Likewise.
22739         (run_test_backwards): Likewise.
22740         * rt/tst-clock.c: Include <stdint.h>.
22741         (clock_test): Replace %ld with %jd and cast to intmax_t.
22742         * rt/tst-cpuclock1.c: Include <stdint.h>.
22743         (do_test): Replace %lu with %ju and cast to uintmax_t.
22744         * rt/tst-cpuclock2.c: Include <stdint.h>.
22745         (do_test): Replace %lu with %ju and cast to uintmax_t.
22746         * rt/tst-mqueue1.c: Include <stdint.h>.
22747         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22748         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22749         intmax_t.
22750         * rt/tst-mqueue4.c (do_test): Likewise.
22751         * rt/tst-timer4.c: Include <stdint.h>.
22752         (check_ts): Replace %ld with %jd and cast to intmax_t.
22753         (do_test): Likewise.
22754         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22755         and cast to intmax_t.
22756         * sysdeps/pthread/tst-timer.c (main): Likewise.
22757         * time/clocktest.c (main): Likewise.
22758         * time/tst-posixtz.c (do_test): Likewise.
22759         * timezone/tst-timezone.c (main): Likewise.
22760
22761 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22762             H.J. Lu  <hongjiu.lu@intel.com>
22763
22764         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22765         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22766         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22767         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22768         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22769         version if bit_Fast_Unaligned_Load is set.
22770         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22771         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22772         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22773         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22774         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22775         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22776         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22777         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22778         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22779         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22780         to 4.
22781         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22782         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22783         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22784         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22785
22786 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22787
22788         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22789         instead of #if to avoid a Wundef warning.
22790         * stdlib/tst-limits.c (do_test): Likewise.
22791
22792         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22793         parallel other exception macros.
22794         (fegetenv): Convert from macro to extern inline so that it applies
22795         retroactively to inline functions already seen by the compiler.
22796         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22797
22798         * posix/Makefile (before-compile): Use $(objpfx) for
22799         posix-conf-vars-def.h.
22800
22801 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22802
22803         * posix/getconf.c (main): Use size_t for type of I.
22804         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22805         NSPEC.
22806
22807         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22808         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22809         * posix/posix-envs.def: Likewise.
22810         * sysdeps/posix/sysconf.c: Likewise.
22811         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22812         (specs): Remove array.
22813         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22814         array.
22815
22816         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22817         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22818         (__sysconf): Use CONF_IS_* macros.
22819
22820         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22821         ($(objpfx)posix-conf-vars-def.h): New target.
22822         * posix/posix-conf-vars.list: New file.
22823         * posix/posix-conf-vars.h: New file.
22824         * posix/confstr.c: Include posix-conf-vars.h.
22825         (confstr): Use CONF_IS_* macros.
22826         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22827         CONF_IS_* macros.
22828         * scripts/gen-posix-conf-vars.awk: New file.
22829
22830 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22831
22832         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22833         fegetround): Add no-op macros to avoid linknamespace issues.
22834
22835         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22836         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22837
22838         * sysdeps/unix/sysv/linux/tile/sysdep.h
22839         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22840         assembly-specific section to avoid a redefinition warning.
22841
22842         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22843         long before casting to pointer to avoid a cast warning.
22844
22845 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22846
22847         * sysdeps/tile/tilegx/Implies: New file.
22848
22849 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22850
22851         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22852
22853 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22854
22855         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22856
22857 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22858
22859         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22860         not define.
22861         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22862         <kernel-features.h>.
22863         (__utimes) [__NR_utimes]: Make code unconditional.
22864         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22865         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22866         (__ASSUME_UTIMES): Do not undefine.
22867         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22868         (__ASSUME_UTIMES): Likewise.
22869         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22870         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22871         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22872         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22873
22874 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22875
22876         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22877
22878 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22879
22880         [BZ #17747]
22881         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22882         alias to weak alias for j0l, y0l.
22883         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22884         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22885
22886         [BZ #17746]
22887         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22888         conversion.
22889
22890 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22891
22892         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22893         to zero if not already defined.
22894
22895 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22896
22897         [BZ #17724]
22898         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22899         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22900         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22901         (char *) casts added.
22902         * sysdeps/ieee754/k_standardf.c: New file.
22903         * sysdeps/ieee754/k_standardl.c: Likewise.
22904         * math/Makefile (libm-support): Remove k_standard.
22905         (libm-calls): Add k_standard.
22906
22907 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22908
22909         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22910         Optimize to avoid an unnecessary FPCR read.
22911
22912 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22913
22914         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22915         Optimize to reduce FPCR/FPSR accesses.
22916
22917 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22918
22919         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22920         Call libc_fetestexcept_aarch64.
22921
22922 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22923
22924         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22925         Call libc_fesetround_aarch64.
22926
22927 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22928
22929         [BZ #17733]
22930         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22931         (__bind): Do not define as weak alias.
22932         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22933         define.
22934         (__getsockname): Do not define as weak alias.
22935
22936 2014-12-22  Will Newton  <will.newton@linaro.org>
22937
22938         * manual/install.texi: Document that we require bison 2.7
22939         or above.
22940         * INSTALL: Regenerate.
22941         * configure.ac: Use AC_CHECK_PROG_VER instead of
22942         AC_PATH_PROG when checking for bison and check for
22943         version 2.7 or above.
22944         * configure: Regenerate.
22945
22946 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22947
22948         [BZ #17745]
22949         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22950         * sysdeps/tile/ffsll.c (ffsll): To here.
22951
22952         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22953
22954 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22955
22956         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22957         if not defined.
22958         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22959         definition.
22960         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22961         hidden ___tls_get_addr.
22962         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22963         hidden __tls_get_addr.
22964         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22965         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22966         Likewise.
22967
22968 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22969
22970         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22971         _dl_init call.
22972
22973 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22974
22975         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22976         from "call _dl_init@PLT".
22977         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22978
22979 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22980
22981         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22982         guarantees.
22983
22984 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22985
22986         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22987
22988 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22989
22990         [BZ #17744]
22991         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22992         strnlen.
22993
22994 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22995
22996         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22997         of multu on MIPSr6.
22998         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22999         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
23000         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
23001         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
23002         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
23003
23004 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
23005
23006         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
23007         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
23008         (PTR_SUBU): Use subu for mips32r6/mips64r6.
23009         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
23010         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
23011         mips32r6/mips64r6.
23012         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
23013
23014 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
23015
23016         * string/strncat.c (STRNCAT): Simplify implementation.
23017
23018 2014-12-19  David S. Miller  <davem@davemloft.net>
23019
23020         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
23021         access the quad as both a long double and as a series of 4 words.
23022
23023         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
23024         link_map->l_info array access.
23025
23026 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
23027
23028         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
23029
23030         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
23031         * math/atest-exp2.c (TIMEOUT): Likewise.
23032         * math/atest-sincos.c (TIMEOUT): Likewise.
23033
23034 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23035
23036         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
23037         -Wno-error with -fno-builtin-lround.
23038
23039 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23040
23041         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
23042         Contains futex constants and functions moved over from ...
23043         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
23044         <lowlevellock-futex.h>.
23045         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
23046         (lll_timedwait_tid): Add comments and parentheses around macro
23047         arguments.
23048
23049 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23050
23051         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
23052         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
23053         (__lll_private_flag): Remove.
23054         (lll_futex_wait): Likewise.
23055         (lll_futex_timed_wait): Likewise.
23056         (lll_futex_wake): Likewise.
23057         (lll_futex_requeue): Likewise.
23058         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
23059         (__lll_timedwait_tid): Spell out argument names.
23060         (lll_timedwait_tid): Add comments and parentheses around macro
23061         arguments.
23062         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
23063         LLL_SHARED and LLL_PRIVATE usable from assembly code.
23064
23065 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23066
23067         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
23068         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23069         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23070         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
23071         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
23072         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
23073         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
23074         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
23075         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
23076         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
23077         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
23078         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
23079         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
23080         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
23081         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
23082         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
23083         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
23084         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
23085         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
23086
23087 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23088
23089         * sysdeps/x86_64/x32/Makefile: New file.
23090
23091 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23092
23093         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
23094         1L with (mp_limb_t) 1.
23095
23096 2014-12-17  Roland McGrath  <roland@hack.frob.com>
23097
23098         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
23099         * nptl/libc_pthread_init.c: ... here.
23100         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
23101         * nptl/register-atfork.c: ... here.
23102
23103         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
23104         Use pthread_sigmask rather than INTERNAL_SYSCALL.
23105         Use assert_perror to check its return value.
23106         (__gai_create_helper_thread): Likewise.
23107
23108         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
23109
23110         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
23111
23112 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
23113
23114         [BZ #17725]
23115         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
23116         __profil_counter.
23117         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
23118         Likewise.
23119         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
23120         Likewise.
23121         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
23122         Likewise.
23123         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
23124         (profil_counter): Likewise.
23125         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
23126         (profil_counter): Likewise.
23127         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
23128         Likewise.
23129         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
23130         Likewise.
23131         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
23132         (profil_counter): Likewise.
23133         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
23134         Likewise.
23135         [!__profil_counter] (profil_counter): Define as weak alias of
23136         __profil_counter.
23137         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
23138         (profil_counter): Rename to __profil_counter.
23139         [!__profil_counter] (profil_counter): Define as weak alias of
23140         __profil_counter.
23141         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
23142         (profil_counter): Rename to __profil_counter.
23143         [!__profil_counter] (profil_counter): Define as weak alias of
23144         __profil_counter.
23145         * sysdeps/posix/profil.c: Update comment referring to
23146         profil_counter.
23147         (__profil): Use __profil_counter instead of profil_counter.
23148         * sysdeps/posix/sprofil.c (profil_counter): Rename to
23149         __profil_counter.  Use __profil_counter_ushort and
23150         __profil_counter_uint in definitions.
23151         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
23152         instead of profil_counter_uint and profil_counter_ushort.
23153
23154         [BZ #17722]
23155         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
23156         define as weak alias of __inet_makeaddr.
23157         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
23158         as weak alias of __inet_addr.
23159         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
23160         as weak alias of __inet_pton.  Use libc_hidden_weak.
23161         * include/arpa/inet.h (__inet_pton): Declare.  Use
23162         libc_hidden_proto.
23163         (inet_makeaddr): Don't use libc_hidden_proto.
23164         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
23165         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
23166         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
23167         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
23168         Remove variable.
23169         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
23170         (test-xfail-POSIX/time.h/linknamespace): Likewise.
23171
23172 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
23173
23174         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
23175
23176 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23177
23178         * stdio-common/bug-vfprintf-nargs.c (do_test):
23179         Cast value to intptr_t to avoid format warning
23180         for usage with PRIdPTR printing macro.
23181
23182 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23183
23184         * libio/tst-widetext.c (do_test):
23185         Use format type %td instead of %Zd for ptrdiff_t
23186         in order to avoid format warning.
23187
23188 2014-12-17  Andreas Schwab  <schwab@suse.de>
23189
23190         * nscd/mem.c (gc): Add size_t cast to match printf format.
23191
23192 2014-12-16  Roland McGrath  <roland@hack.frob.com>
23193
23194         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
23195         (init): Apply PTR_MANGLE to pointers before storing them.
23196         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
23197         before using them.
23198
23199 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
23200
23201         [BZ #17719]
23202         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
23203         define as weak alias of __memrchr.
23204         (__memrchr): Do not define as strong alias of memrchr.
23205         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
23206         Remove variable.
23207         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
23208         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
23209         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
23210
23211         [BZ #17717]
23212         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
23213         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
23214         (if_indextoname): Rename to __if_indextoname and define as weak
23215         alias of __if_indextoname.  Use libc_hidden_weak.
23216         (if_freenameindex): Rename to __if_freenameindex and define as
23217         weak alias of __if_freenameindex.
23218         (if_nameindex): Rename to __if_nameindex and define as weak alias
23219         of __if_nameindex.
23220         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
23221         __if_nametoindex and define as weak alias of __if_nametoindex.
23222         Use libc_hidden_weak.
23223         (if_freenameindex): Rename to __if_freenameindex and define as
23224         weak alias of __if_freenameindex.
23225         (if_nameindex): Rename to __if_nameindex and define as weak alias
23226         of __if_nameindex.
23227         (if_indextoname): Rename to __if_indextoname and define as weak
23228         alias of __if_indextoname.  Use libc_hidden_weak.
23229         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
23230         __if_nametoindex and define as weak alias of __if_nametoindex.
23231         Use libc_hidden_weak.
23232         (if_freenameindex): Rename to __if_freenameindex and define as
23233         weak alias of __if_freenameindex.  Use libc_hidden_weak.
23234         (if_nameindex_netlink): Use __if_freenameindex instead of
23235         if_freenameindex.
23236         (if_nameindex): Rename to __if_nameindex and define as weak alias
23237         of __if_nameindex.  Use libc_hidden_weak.
23238         (if_indextoname): Rename to __if_indextoname and define as weak
23239         alias of __if_indextoname.  Use libc_hidden_weak.
23240         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
23241         libc_hidden_proto.
23242         [!_ISOMAC] (__if_freenameindex): Likewise.
23243         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
23244         if_nametoindex.
23245         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
23246         variable.
23247         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
23248         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
23249         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
23250         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
23251         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
23252         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
23253         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
23254
23255         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
23256         Remove variable.
23257         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
23258         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
23259
23260 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23261
23262         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
23263         subscript above bounds'
23264
23265         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
23266         bounds.
23267
23268 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
23269
23270         * libio/tst-fopenloc.c: Use test-skeleton.c.
23271
23272         * stdlib/tst-bsearch.c: Use test-skeleton.c.
23273         (entry): Rename to ITEM.
23274         (do_test, comp): Adjust.
23275
23276         * stdio-common/tst-fseek.c: Use test-skeleton.c.
23277
23278 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23279
23280         * string/tester.c: Include <libc-internal.h>.
23281         (test_memset): Ignore -Wmemset-transposed-args.
23282
23283 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23284
23285         * misc/tst-mntent2.c (do_test): Fix warning.
23286
23287 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23288
23289         * elf/tst-unique4lib.cc(a): Mark as used.
23290
23291 2014-12-16  Florian Weimer  <fweimer@redhat.com>
23292
23293         [BZ #17630]
23294         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
23295         names.
23296
23297 2014-12-16  Allan McRae  <allan@archlinux.org>
23298
23299         * stdio-common/Makefile (tests): Re-add bug26.
23300
23301 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
23302
23303         [BZ #17657]
23304         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
23305         static array.
23306
23307 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
23308
23309         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
23310         (__lll_lock_wait): Likewise.
23311         (__lll_timedlock_wait): Likewise.
23312         (__lll_timedwait_tid): Likewise.
23313         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
23314         (__lll_robust_timedlock_wait): Likewise.
23315         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
23316         (lll_cond_trylock): Likewise.
23317         (__lll_lock): Likewise.
23318         (__lll_robust_lock): Likewise.
23319         (__lll_cond_lock): Likewise.
23320         (lll_robust_cond_lock): Likewise.
23321         (__lll_timedlock): Likewise.
23322         (__lll_robust_timedlock): Likewise.
23323         (__lll_unlock): Likewise.
23324         (__lll_robust_unlock): Likewise.
23325         (lll_wait_tid): Likewise.
23326         (lll_timedwait_tid): Likewise.
23327
23328 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23329
23330         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
23331
23332 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23333
23334         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
23335
23336 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23337
23338         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
23339         * stdio-common/tst-sprintf.c: Likewise.
23340
23341 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23342
23343         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
23344
23345 2014-12-15  Jeff Law  <law@redhat.com>
23346
23347         [BZ #16617]
23348         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
23349         on the heap.  (CVE-2012-3406)
23350         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
23351         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
23352         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
23353
23354 2014-12-15  Will Newton  <will.newton@linaro.org>
23355
23356         * manual/install.texi: Bump required version of texinfo
23357         to 4.7 from 4.5.
23358         * INSTALL: Regenerated.
23359         * configure.ac: Check for makeinfo version 4.7 and above.
23360         * configure: Regenerated.
23361
23362 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23363
23364         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
23365         PREFIX, string constant to insert between directory and name.
23366         * sysdeps/posix/shm_open.c: Update caller.
23367         * sysdeps/posix/shm_unlink.c: Likewise.
23368         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
23369         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
23370         (SEM_SHM_PREFIX): New macro.
23371         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
23372         [$(have-thread-library) = no].
23373         * nptl/Makefile (libpthread-routines): Add shm-directory.
23374         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
23375         * sysdeps/nptl/shm-directory.h: New file.
23376         * sysdeps/posix/shm-directory.c
23377         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
23378         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
23379         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
23380         INTERNAL_SYSCALL.
23381         (__where_is_shmfs): Function removed.
23382         (mountpoint, defaultmount, defaultdir, __namedsem_once):
23383         Variables removed.
23384         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
23385         Use SHM_GET_NAME.
23386         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
23387
23388         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
23389         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
23390         unconditional for use inside libpthread.
23391         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
23392
23393 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23394
23395         * nptl/pthread_getaffinity.c: New file.
23396         * nptl/pthread_setaffinity.c: New file.
23397         * nptl/pthread_getname.c: New file.
23398         * nptl/pthread_setname.c: New file.
23399
23400         * nptl/pthread_create.c (START_THREAD_DEFN)
23401         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
23402
23403 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23404             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23405
23406         * resolv/res_send.c (send_vc): Disable warning resplen may
23407         be used uninitialized.
23408
23409 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23410
23411         * nptl/tst-mutex6.c
23412         (ATTR_NULL): New define checks ATTR against NULL.
23413         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
23414         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
23415
23416 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
23417
23418         [BZ #17581]
23419         * malloc/hooks.c
23420         (mem2mem_check): Revert my previous change.
23421         (malloc_check_get_size): Revert my previous change.
23422         (mem2chunk_check): Revert my previous change.
23423
23424 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23425
23426         * sysdeps/posix/shm-directory.c: New file.
23427         * sysdeps/posix/shm-directory.h: New file.
23428         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
23429         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
23430         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
23431         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
23432         Transmute EPERM to EACCES.
23433         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
23434         from ...
23435         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
23436         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
23437
23438 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
23439
23440         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
23441         pointer and cast to uintptr_t.
23442         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
23443         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
23444         Add cast to avoid warning.
23445         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
23446
23447 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23448
23449         * nptl/semaphore.h: Move to ...
23450         * sysdeps/pthread/semaphore.h: ... here.
23451         * Makefile (installed-headers): Change nptl/semaphore.h to
23452         sysdeps/pthread/semaphore.h.
23453
23454 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23455
23456         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
23457         generated error format strings.
23458
23459         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
23460         -Wformat-extra-args warnings for scanf formats.
23461         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
23462         test of zero-length format (duh).
23463         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
23464         corner-case scanf format test.
23465         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
23466         generated fprintf format string.
23467         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
23468         corner-case sprintf format tests.
23469         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
23470         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
23471         -Wformat-extra-args warnings throughout.
23472         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
23473         (CFLAGS-scanf4.c): Likewise.
23474         (CFLAGS-scanf7.c): Likewise.
23475         (CFLAGS-tst-sprintf.c): Likewise.
23476         (CFLAGS-tst-printf.c): Likewise.
23477         (CFLAGS-tst-printfsz.c): Likewise.
23478
23479 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23480
23481         * include/cpio.h: New file.
23482         * include/fmtmsg.h: Likewise.
23483
23484         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
23485         corresponding format argument to size_t.
23486         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
23487         arguments.
23488         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
23489         corresponding format argument to size_t.
23490         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
23491         arguments.
23492         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
23493         corresponding format argument to size_t.
23494         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
23495         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
23496         (CFLAGS-tst-mbswcs2.c): Likewise.
23497         (CFLAGS-tst-mbswcs3.c): Likewise.
23498         (CFLAGS-tst-mbswcs4.c): Likewise.
23499         (CFLAGS-tst-mbswcs5.c): Likewise.
23500         (CFLAGS-tst-trans.c): Likewise.
23501
23502 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23503
23504         * posix/regexbug1.c (main): Use "%s" format with regerror results,
23505         rather than assuming they won't contain any '%'s.
23506
23507 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
23508
23509         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
23510         inhibit_loop_to_libcall to avoid recursive calls.
23511         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
23512         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
23513
23514 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23515
23516         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
23517         prototype.
23518
23519 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23520
23521         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
23522         integer value instead of boolean.
23523
23524 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23525
23526         * malloc/malloc.c: Fix powerof2 check.
23527
23528 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23529
23530         * locale/programs/locfile.h (maybe_swap_uint32):
23531         Remove inline and add unused attribute.
23532
23533 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23534
23535         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
23536         Truncating assembler expression to a .long expression.
23537
23538 2014-12-11  Andreas Schwab  <schwab@suse.de>
23539
23540         * elf/rtld.c (struct map_args): Constify str member.
23541         (do_preload): Constify fname argument.
23542
23543 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23544
23545         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
23546         constants definition.
23547
23548 2014-12-11  Andreas Schwab  <schwab@suse.de>
23549
23550         [BZ #16657]
23551         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
23552         FORCE_ELISION instead of DO_ELISION.
23553         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
23554         Remove.
23555         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
23556         Likewise.
23557
23558         * iconvdata/gconv-modules: Remove duplicate entry.
23559
23560 2014-12-11  Will Newton  <will.newton@linaro.org>
23561
23562         Merge gettext 0.19.3 into intl/.
23563
23564         This involves a number of cosmetic changes to comments
23565         and ANSI function definitions and prototypes throughout
23566         all the files. The gettext copyright header is used but
23567         with the date ranges taken from the glibc copy.
23568
23569         * NEWS: Add gettext merge to 2.21.
23570         * intl/bindtextdom.c: Switch to gettext copyright.
23571         Use ANSI definitions and prototypes.
23572         Use gl_* locking primitives rather than __libc_* ones.
23573         Use __builtin_expect rather than __glibc_likely/unlikely.
23574         * intl/dcgettext.c: Switch to gettext copyright.
23575         Use ANSI definitions and prototypes.
23576         * intl/dcigettext.c: Switch to gettext copyright.
23577         Use ANSI definitions and prototypes.
23578         (INTDIV0_RAISES_SIGFPE): New define.
23579         Use gl_* locking primitives rather than __libc_* ones.
23580         Include eval-plural.h instead of plural-eval.c.
23581         Use __builtin_expect rather than __glibc_likely/unlikely.
23582         * intl/dcngettext.c: Switch to gettext copyright.
23583         Use ANSI definitions and prototypes.
23584         * intl/dgettext.c: Likewise.
23585         * intl/dngettext.c: Likewise.
23586         * intl/plural-eval.c: Renamed to...
23587         * intl/eval-plural.h: ...this.
23588         * intl/explodename.c: Switch to gettext copyright.
23589         Use ANSI definitions and prototypes.
23590         (_nl_explode_name): Use strchr instead of __rawmemchr.
23591         * intl/finddomain.c: Switch to gettext copyright.
23592         Use ANSI definitions and prototypes.
23593         Use gl_* locking primitives rather than __libc_* ones.
23594         (_nl_find_domain): Use malloc rather than alloca for
23595         allocation of temporary locale name.
23596         * intl/gettext.c: Switch to gettext copyright.
23597         Use ANSI definitions and prototypes.
23598         * intl/gettextP.h: Switch to gettext copyright.
23599         Use ANSI definitions and prototypes.
23600         Use gl_* locking primitives rather than __libc_* ones.
23601         * intl/gmo.h: Switch to gettext copyright.
23602         (struct sysdep_string): Move struct segment_pair outside of
23603         struct definition.
23604         * intl/hash-string.c: Use ANSI definitions and prototypes.
23605         * intl/hash-string.h: Switch to gettext copyright.
23606         Use ANSI definitions and prototypes.
23607         * intl/l10nflist.c: Switch to gettext copyright.
23608         Use ANSI definitions and prototypes.
23609         (_nl_normalize_codeset): Avoid integer overflow.
23610         * intl/loadinfo.h: Switch to gettext copyright.
23611         Use ANSI definitions and prototypes.
23612         (LIBINTL_DLL_EXPORTED): New define.
23613         (PATH_SEPARATOR): New define.
23614         * intl/loadmsgcat.c: Switch to gettext copyright.
23615         * intl/localealias.c: Switch to gettext copyright.
23616         Use ANSI definitions and prototypes.
23617         (_nl_expand_alias): Use PATH_SEPARATOR.
23618         * intl/ngettext.c: Switch to gettext copyright.
23619         Use ANSI definitions and prototypes.
23620         * intl/plural-exp.c: Likewise.
23621         * intl/plural-exp.h: Switch to gettext copyright.
23622         Use ANSI definitions and prototypes.
23623         (struct expression): Move definition of enum operator outside
23624         of struct definition.
23625         * intl/plural.c: Regenerate.
23626         * intl/plural.y: Switch to gettext copyright.
23627         Use ANSI definitions and prototypes.
23628         Port to bison 3.0.
23629         * intl/textdomain.c: Switch to gettext copyright.
23630         Use ANSI definitions and prototypes.
23631         Use gl_* locking primitives rather than __libc_* ones.
23632
23633 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23634
23635         * debug/warning-nop.c: Add used atrribute.
23636
23637 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23638
23639         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23640
23641         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23642         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23643         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23644
23645 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23646             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23647
23648         [BZ #17634]
23649         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23650         Undefine after defining function.  Define as weak alias of
23651         __wcschr.  Use libc_hidden_weak.
23652         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23653         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23654         (libc_hidden_def): Also define __GI___wcschr alias.
23655         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23656         __wcschr and define as weak alias of __wcschr.
23657         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23658         __wcschr.
23659         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23660         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23661         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23662         libc_hidden_weak.  Do not use libc_hidden_def.
23663         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23664         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23665         __GI___wcschr alias.
23666         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23667         [IS_IN (libc)] (wcschr): Define as macro expanding to
23668         __redirect_wcschr.
23669         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23670         [IS_IN (libc)] (__wcschr_power6): Likewise.
23671         [IS_IN (libc)] (__wcschr_power7): Likewise.
23672         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23673         instead of wcschr.
23674         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23675         __libc_wcschr.
23676         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23677         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23678         __wcschr and define as weak alias of __wcschr.  Use
23679         libc_hidden_builtin_def.
23680         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23681         as weak alias of __wcschr.  Use libc_hidden_weak.
23682         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23683         wcschr.
23684         * time/era.c (_nl_init_era_entries): Likewise.
23685         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23686         variable.
23687         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23688         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23689
23690 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23691
23692         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23693         format for long int variable.
23694
23695 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23696
23697         [BZ #10672]
23698         * manual/search.texi: (Array Sort Function): Remove claim how to make
23699         qsort stable.
23700
23701 2014-12-10  Andreas Schwab  <schwab@suse.de>
23702
23703         [BZ #12847]
23704         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23705         user-controlled locks.
23706
23707 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23708
23709         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23710         register.
23711
23712 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23713
23714         * configure.ac (--disable-werror): New configure option.
23715         (enable_werror): New AC_SUBST.
23716         * configure: Regenerated.
23717         * config.make.in (enable-werror): New variable.
23718         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23719         -Wno-error=undef.
23720         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23721         * manual/install.texi (Configuring and compiling): Document
23722         --disable-werror.
23723         * INSTALL: Regenerated.
23724         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23725         (CFLAGS-tst-chk2.c): Likewise.
23726         (CFLAGS-tst-chk3.c): Likewise.
23727         (CFLAGS-tst-chk4.cc): Likewise.
23728         (CFLAGS-tst-chk5.cc): Likewise.
23729         (CFLAGS-tst-chk6.cc): Likewise.
23730         (CFLAGS-tst-lfschk1.c): Likewise.
23731         (CFLAGS-tst-lfschk2.c): Likewise.
23732         (CFLAGS-tst-lfschk3.c): Likewise.
23733         (CFLAGS-tst-lfschk4.cc): Likewise.
23734         (CFLAGS-tst-lfschk5.cc): Likewise.
23735         (CFLAGS-tst-lfschk6.cc): Likewise.
23736
23737         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23738         (main): Disable -Wdeprecated-declarations around calls to
23739         register_printf_function.
23740
23741         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23742         (do_test): Disable -Wdiv-by-zero around some calls to
23743         fwrite_unlocked and fread_unlocked.
23744
23745         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23746         (DIAG_POP_NEEDS_COMMENT): Likewise.
23747         (_DIAG_STR1): Likewise.
23748         (_DIAG_STR): Likewise.
23749         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23750         * stdio-common/bug21.c: Include <libc-internal.h>.
23751         (do_test): Disable -Wformat around call to sscanf.
23752         * stdio-common/scanf14.c: Include <libc-internal.h>.
23753         (main): Disable -Wformat around some calls to scanf functions.
23754
23755 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23756
23757         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23758
23759 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23760
23761         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23762         stack variable alignment.
23763
23764 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23765
23766         [BZ #17682]
23767         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23768         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23769         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23770         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23771         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23772         __getrlimit instead of getrlimit.
23773         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23774         __gettimeofday instead of gettimeofday.
23775         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23776         Likewise.
23777         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23778         Likewise.
23779         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23780         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23781         Remove variable.
23782         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23783         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23784
23785 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23786
23787         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23788         for wide-character tests.
23789
23790 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23791
23792         * io/openat64.c: #include <libc-internal.h>
23793         (__openat64): Prototypify.  Use ignore_value on MODE.
23794         * io/openat.c: Likewise.
23795         * misc/reboot.c: #include <libc-internal.h>
23796         (reboot): Prototypify.  Use ignore_value on HOWTO.
23797         * misc/ptrace.c: #include <libc-internal.h>
23798         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23799
23800 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23801
23802         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23803         XPG4, UNIX98 and XOPEN2K.
23804         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23805         Remove variable.
23806         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23807
23808 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23809
23810         * libio/fileops.c: Use ISO C style for function definitions.
23811         * libio/iofopen.c: Likewise.
23812         * libio/wfileops.c: Likewise.
23813
23814         [BZ #17653]
23815         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23816         offset on EOF.
23817         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23818         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23819         (fgets_func): Function pointer to fgets and fgetws.
23820         (do_ftell_test): Add test to verify ftell value after read
23821         EOF.
23822         (do_test): Set fgets_func.
23823
23824         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23825         O_TRUNC flag for w and w+ modes.
23826         (do_rewind_test): Likewise.
23827         (do_ftell_test): Likewise.
23828         (do_write_test): Likewise.
23829
23830         [BZ #17647]
23831         * libio/fileops.c (do_ftell): Seek only when there are
23832         unflushed writes.
23833         * libio/wfileops.c (do_ftell_wide): Likewise.
23834         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23835         test case.
23836         (do_one_test): Call it.
23837
23838 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23839
23840         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23841         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23842         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23843         Remove variable.
23844         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23845         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23846         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23847
23848 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23849
23850         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23851         Remove variable.
23852         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23853
23854         [BZ #17668]
23855         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23856         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23857         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23858         __freeifaddrs.  Use libc_hidden_weak.
23859         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23860         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23861         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23862         __freeifaddrs.  Use libc_hidden_weak.
23863         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23864         __getifaddrs and define as weak alias of __getifaddrs.  Use
23865         libc_hidden_weak.
23866         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23867         __freeifaddrs.  Use libc_hidden_weak.
23868         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23869         Remove variable.
23870         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23871         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23872
23873 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23874
23875         [BZ #17601]
23876         * sysdeps/mips/start.S (__start): Use indirect jump to call
23877         __libc_start_main.
23878
23879 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23880
23881         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23882
23883         * nptl/tst-mutex1.c: Include <stdbool.h>.
23884         [!ATTR] (ATTR_NULL): New macro.
23885         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23886         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23887         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23888
23889         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23890         to char *.
23891
23892         [BZ #17665]
23893         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23894         Change conditional to [__USE_MISC].
23895
23896         [BZ #17664]
23897         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23898         fgets_unlocked.
23899         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23900         __fgets_unlocked.
23901         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23902         fgets_unlocked.
23903         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23904         Remove variable.
23905         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23906         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23907         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23908         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23909         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23910         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23911         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23912         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23913         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23914
23915         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23916
23917 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23918
23919         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23920         Remove strpbrk objects.
23921         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23922         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23923         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23924         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23925         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23926         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23927
23928         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23929         Remove strcspn objects.
23930         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23931         (__libc_ifunc_impl_list): Remove strcspn implementation.
23932         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23933         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23934         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23935         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23936
23937         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23938         Remove strspn objetcs.
23939         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23940         (__libc_ifunc_impl_list): Remove strspn implementation.
23941         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23942         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23943         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23944         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23945
23946 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23947
23948         [BZ #17581]
23949         * malloc/hooks.c
23950         (mem2mem_check): Add a terminator to the chain of checking blocks.
23951         (malloc_check_get_size): Use it here.
23952         (mem2chunk_check): Ditto.
23953
23954 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23955
23956         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23957         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23958
23959 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23960
23961         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23962
23963         * nptl/nptl-init.c: Include libc-internal.h.
23964         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23965
23966         * elf/ldconfig.c (search_dir): Expand comment.
23967
23968 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23969
23970         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23971         variable.
23972         (linknamespace-symlist-stdlibs-tests): Likewise.
23973         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23974         instead of $(objpfx)symlist-stdlibs.
23975         (linknamespace-libs-isoc): New variable.
23976         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23977         (linknamespace-libs-ISO): New variable.
23978         (linknamespace-libs-ISO99): Likewise.
23979         (linknamespace-libs-ISO11): Likewise.
23980         (linknamespace-libs-XPG3): Likewise.
23981         (linknamespace-libs-XPG4): Likewise.
23982         (linknamespace-libs-POSIX): Likewise.
23983         (linknamespace-libs-UNIX98): Likewise.
23984         (linknamespace-libs-XOPEN2K): Likewise.
23985         (linknamespace-libs-POSIX2008): Likewise.
23986         (linknamespace-libs-XOPEN2K8): Likewise.
23987         ($(objpfx)symlist-stdlibs): Replace by
23988         $(linknamespace-symlist-stdlibs-tests).  Use
23989         $(linknamespace-libs-$*) as set of libraries.
23990         ($(linknamespace-header-tests)): Update dependencies.  Use
23991         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23992         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23993         * conform/linknamespace.pl: Remove comment about considering
23994         definitions of symbols from irrelevant libraries.
23995
23996 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23997
23998         [BZ #13862]
23999         * elf/dl-tls.c: Include <atomic.h>.
24000         (oom): Remove #ifdef SHARED/#endif.
24001         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
24002         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
24003         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
24004         big enough.
24005         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
24006         * nptl/Makefile (tests): Add tst-stack4.
24007         (modules-names): Add tst-stack4mod.
24008         ($(objpfx)tst-stack4): New.
24009         (tst-stack4mod.sos): Likewise.
24010         ($(objpfx)tst-stack4.out): Likewise.
24011         ($(tst-stack4mod.sos)): Likewise.
24012         (clean): Likewise.
24013         * nptl/tst-stack4.c: New file.
24014         * nptl/tst-stack4mod.c: Likewise.
24015
24016 2014-11-27  J. Brown  <jb999@gmx.de>
24017
24018         * sysdeps/x86/bits/string.h: Add recent CPUs.
24019
24020 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
24021
24022         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
24023         sigblock.
24024
24025         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
24026         feof.
24027
24028         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
24029         variable.
24030
24031 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
24032
24033         * nscd/connections.c: Include libc-internal.h because of macro
24034         usage ignore_value.
24035
24036 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24037
24038         * string/bits/string3.h (__warn_memset_zero_len): Don't
24039         declare for gcc newer than 5.0.
24040         (memset): Don't test for zero-length __LEN for gcc newer than
24041         5.0.
24042
24043 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
24044
24045         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
24046         size_t for %zu format.
24047
24048         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
24049         difference, not %ju.
24050
24051 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
24052
24053         * include/libc-internal.h (ignore_value): New macro.
24054         * nscd/connections.c (restart): Wrap calls to setuid and setgid
24055         with ignore_value.
24056
24057         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
24058         definition.
24059
24060         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
24061         pthread_cleanup_push to void *.
24062
24063         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
24064         Undefine.
24065
24066         [BZ #16619]
24067         [BZ #16740]
24068         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
24069         instead of 1L << 52.
24070
24071         * libio/bug-rewind.c (do_test): Check fwscanf return values.
24072         * libio/bug-rewind2.c (do_test): Likewise.
24073
24074         * debug/test-stpcpy_chk-ifunc.c: Remove file.
24075         * debug/test-strcpy_chk-ifunc.c: Likewise.
24076         * wcsmbs/test-wcschr-ifunc.c: Likewise.
24077         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
24078         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
24079         * wcsmbs/test-wcslen-ifunc.c: Likewise.
24080         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
24081         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
24082         * Rules [$(multi-arch) = no] (tests): Do not filter out
24083         $(tests-ifunc).
24084         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
24085         * debug/Makefile (tests-ifunc): Remove variable.
24086         (tests): Do not add $(tests-ifunc).
24087         * wcsmbs/Makefile (tests-ifunc): Remove variable.
24088         (tests): Do not add $(tests-ifunc).
24089         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
24090         [TEST_IFUNC]: Remove conditionals.
24091         * string/test-string.h (TEST_IFUNC): Remove macro.
24092         [TEST_IFUNC]: Remove conditionals.
24093
24094         * string/test-strchr.c [!WIDE] (L): New macro.
24095         [WIDE] (L): Likewise.
24096         (check1): Use CHAR instead of char.  Use L on string and character
24097         constants.
24098
24099 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
24100
24101         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
24102         tests.
24103         * sysdeps/powerpc/bits/atomic.h
24104         (__arch_atomic_exchange_and_add_32_acq): Add definition.
24105         (__arch_atomic_exchange_and_add_32_rel): Likewise.
24106         (atomic_exchange_and_add_acq): Likewise.
24107         (atomic_exchange_and_add_rel): Likewise.
24108         * sysdeps/powerpc/powerpc32/bits/atomic.h
24109         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24110         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24111         * sysdeps/powerpc/powerpc64/bits/atomic.h
24112         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24113         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24114
24115 2014-11-26  Torvald Riegel  <triegel@redhat.com>
24116
24117         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
24118         Change synchronization of __sched_fifo_min_prio and
24119         __sched_fifo_max_prio.
24120         * nptl/pthread_mutexattr_getprioceiling.c
24121         (pthread_mutexattr_getprioceiling): Likewise.
24122         * nptl/pthread_mutexattr_setprioceiling.c
24123         (pthread_mutexattr_setprioceiling): Likewise.
24124         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24125         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
24126         Likewise.
24127
24128 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
24129
24130         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
24131         void.
24132
24133 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24134
24135         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
24136         third argument const.
24137
24138 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24139
24140         fnmatch: work around GCC compiler warning bug with uninit var
24141         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
24142         This works around a bug with x86-64 GCC 4.9.2 and earlier
24143         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
24144         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
24145         used uninitialized in this function [-Wmaybe-uninitialized]".
24146
24147 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24148
24149         * posix/bug-regex31.c (main): Return RES not 0.
24150
24151 2014-11-25  Anton Blanchard <anton@samba.org>
24152
24153         * sysdeps/powerpc/bits/atomic.h
24154         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
24155
24156 2014-11-24  Sterling Augustine  <saugustine@google.com>
24157
24158         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
24159
24160 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
24161
24162         [BZ #17608]
24163         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
24164
24165 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
24166
24167         [BZ #17633]
24168         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
24169         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
24170         variable.
24171         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24172         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24173
24174 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24175
24176         * string/strncpy.c (strncpy): Improve performance by using memset.
24177
24178 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24179
24180         * string/strcpy.c (strcpy):
24181         Improve performance by using strlen and memcpy.
24182
24183 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
24184
24185         * string/strcoll_l.c (get_next_seq): __always_inline.
24186         * string/strcoll_l.c (do_compare): __always_inline.
24187
24188 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
24189
24190         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
24191         defined.
24192         * include/mqueue.h: Likewise.
24193         * include/stdlib.h: Likewise.
24194
24195         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
24196         (get_null_defines): Adjust.
24197         * sunrpc/Makefile: Adjust comment.
24198         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
24199         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
24200         (CFLAGS-interp.c): Likewise.
24201         (CFLAGS-ldconfig.c): Likewise.
24202         (CPPFLAGS-.os): Likewise.
24203         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24204         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24205         * extra-modules.mk (extra-modules.mk): Likewise.
24206         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
24207         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
24208         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
24209         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
24210         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
24211         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
24212         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
24213         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
24214         * iconvdata/Makefile (CPPFLAGS): Likewise.
24215         (cpp-srcs-left): Add libof for all iconvdata routines.
24216         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
24217         * include/assert.h: Likewise.
24218         * include/ctype.h: Likewise.
24219         * include/errno.h: Likewise.
24220         * include/libc-symbols.h: Likewise.
24221         * include/math.h: Likewise.
24222         * include/netdb.h: Likewise.
24223         * include/resolv.h: Likewise.
24224         * include/stdio.h: Likewise.
24225         * include/stdlib.h: Likewise.
24226         * include/string.h: Likewise.
24227         * include/sys/stat.h: Likewise.
24228         * include/wctype.h: Likewise.
24229         * intl/l10nflist.c: Likewise.
24230         * libidn/idn-stub.c: Likewise.
24231         * libio/libioP.h: Likewise.
24232         * nptl/libc_multiple_threads.c: Likewise.
24233         * nptl/pthreadP.h: Likewise.
24234         * posix/regex_internal.h: Likewise.
24235         * resolv/res_hconf.c: Likewise.
24236         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
24237         * sysdeps/arm/memmove.S: Likewise.
24238         * sysdeps/arm/sysdep.h: Likewise.
24239         * sysdeps/generic/_itoa.h: Likewise.
24240         * sysdeps/generic/symbol-hacks.h: Likewise.
24241         * sysdeps/gnu/errlist.awk: Likewise.
24242         * sysdeps/gnu/errlist.c: Likewise.
24243         * sysdeps/i386/i586/memcpy.S: Likewise.
24244         * sysdeps/i386/i586/memset.S: Likewise.
24245         * sysdeps/i386/i686/memcpy.S: Likewise.
24246         * sysdeps/i386/i686/memmove.S: Likewise.
24247         * sysdeps/i386/i686/mempcpy.S: Likewise.
24248         * sysdeps/i386/i686/memset.S: Likewise.
24249         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
24250         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24251         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
24252         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
24253         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24254         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
24255         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
24256         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24257         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
24258         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24259         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24260         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24261         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24262         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24263         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24264         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24265         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
24266         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
24267         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
24268         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24269         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
24270         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
24271         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24272         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24273         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24274         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
24275         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
24276         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24277         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
24278         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24279         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
24280         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
24281         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
24282         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24283         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
24284         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
24285         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24286         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24287         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24288         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24289         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24290         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24291         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24292         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24293         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24294         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24295         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
24296         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
24297         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
24298         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
24299         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
24300         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
24301         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
24302         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
24303         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
24304         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
24305         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
24306         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
24307         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
24308         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
24309         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
24310         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
24311         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
24312         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24313         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24314         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
24315         * sysdeps/posix/closedir.c: Likewise.
24316         * sysdeps/posix/opendir.c: Likewise.
24317         * sysdeps/posix/readdir.c: Likewise.
24318         * sysdeps/posix/rewinddir.c: Likewise.
24319         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
24320         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
24321         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
24322         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
24323         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
24324         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
24325         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
24326         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
24327         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
24328         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
24329         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
24330         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
24331         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
24332         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
24333         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
24334         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
24335         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
24336         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
24337         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
24338         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
24339         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
24340         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
24341         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
24342         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
24343         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
24344         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
24345         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
24346         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
24347         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
24348         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
24349         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
24350         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
24351         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
24352         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
24353         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
24354         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
24355         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
24356         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
24357         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
24358         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
24359         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
24360         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
24361         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
24362         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24363         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24364         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
24365         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
24366         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
24367         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
24368         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
24369         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
24370         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
24371         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
24372         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
24373         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
24374         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
24375         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
24376         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
24377         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
24378         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
24379         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24380         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
24381         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
24382         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
24383         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
24384         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24385         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
24386         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
24387         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
24388         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
24389         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24390         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
24391         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
24392         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
24393         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
24394         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
24395         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
24396         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
24397         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
24398         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
24399         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
24400         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
24401         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
24402         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
24403         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
24404         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
24405         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
24406         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
24407         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
24408         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
24409         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
24410         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
24411         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
24412         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
24413         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
24414         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
24415         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
24416         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
24417         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
24418         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
24419         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24420         * sysdeps/unix/alpha/sysdep.S: Likewise.
24421         * sysdeps/unix/alpha/sysdep.h: Likewise.
24422         * sysdeps/unix/make-syscalls.sh: Likewise.
24423         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24424         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24425         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24426         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
24427         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24428         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
24429         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
24430         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24431         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24432         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
24433         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24434         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24435         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24436         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24437         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24438         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24439         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24440         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24441         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24442         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24443         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
24444         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24445         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24446         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24447         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24448         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24449         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24452         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
24453         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24454         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24455         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24456         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24457         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
24458         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24459         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24460         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24461         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
24462         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
24463         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24464         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24465         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24466         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
24467         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24468         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24469         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24470         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24471         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24472         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24473         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24474         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24475         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24476         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24477         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
24478         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24479         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24480         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24481         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
24482         * sysdeps/x86_64/memcpy.S: Likewise.
24483         * sysdeps/x86_64/memmove.c: Likewise.
24484         * sysdeps/x86_64/memset.S: Likewise.
24485         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
24486         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24487         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
24488         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
24489         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
24490         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24491         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24492         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24493         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24494         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24495         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24496         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24497         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
24498         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24499         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24500         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
24501         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
24502         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24503         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24504         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24505         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
24506         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24507         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24508         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24509         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24510         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24511         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24512         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
24513         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
24514         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24515         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
24516         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24517         * sysdeps/x86_64/strcmp.S: Likewise.
24518
24519         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
24520
24521         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
24522         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
24523         * elf/rtld-Rules: Likewise.
24524         * elf/setup-vdso.h: Likewise.
24525         * include/assert.h: Likewise.
24526         * include/bits/stdlib-float.h: Likewise.
24527         * include/errno.h: Likewise.
24528         * include/sys/stat.h: Likewise.
24529         * include/unistd.h: Likewise.
24530         * sysdeps/aarch64/setjmp.S: Likewise.
24531         * sysdeps/alpha/setjmp.S: Likewise.
24532         * sysdeps/arm/__longjmp.S: Likewise.
24533         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
24534         * sysdeps/arm/setjmp.S: Likewise.
24535         * sysdeps/arm/sysdep.h: Likewise.
24536         * sysdeps/generic/_itoa.h: Likewise.
24537         * sysdeps/generic/dl-sysdep.h: Likewise.
24538         * sysdeps/generic/ldsodefs.h: Likewise.
24539         * sysdeps/i386/dl-tls.h: Likewise.
24540         * sysdeps/i386/setjmp.S: Likewise.
24541         * sysdeps/m68k/setjmp.c: Likewise.
24542         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
24543         * sysdeps/mach/hurd/opendir.c: Likewise.
24544         * sysdeps/posix/getcwd.c: Likewise.
24545         * sysdeps/posix/opendir.c: Likewise.
24546         * sysdeps/posix/profil.c: Likewise.
24547         * sysdeps/powerpc/dl-procinfo.h: Likewise.
24548         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
24549         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
24550         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
24551         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
24552         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
24553         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
24554         * sysdeps/s390/dl-tls.h: Likewise.
24555         * sysdeps/s390/s390-32/setjmp.S: Likewise.
24556         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24557         * sysdeps/sh/sh3/setjmp.S: Likewise.
24558         * sysdeps/sh/sh4/setjmp.S: Likewise.
24559         * sysdeps/unix/alpha/sysdep.h: Likewise.
24560         * sysdeps/unix/arm/sysdep.S: Likewise.
24561         * sysdeps/unix/i386/sysdep.S: Likewise.
24562         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24563         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
24564         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24565         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24566         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24567         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24568         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
24569         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24570         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24571         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24572         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
24573         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24574         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24577         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24578         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24579         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24580         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24581         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24582         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24583         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24584         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24585         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24586         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24587         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24588         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24589         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24590         * sysdeps/x86_64/setjmp.S: Likewise.
24591
24592         * include/math.h: Use IS_IN instead of IS_IN_libm.
24593         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
24594         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24595         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24596         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
24597         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24598         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24599         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24600         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24601         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24602         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24603         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
24604         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
24605         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
24606         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
24607         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
24608         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
24609         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24610         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
24611         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24612         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
24613         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
24614         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
24615         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
24616         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
24617         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
24618         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
24619         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
24620         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24621         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24622         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24623         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24624         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24625         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24626         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24627         Likewise.
24628         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24629         Likewise.
24630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24631         Likewise.
24632         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24633         Likewise.
24634         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24635         Likewise.
24636         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24637         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24638         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24639         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24640         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24641         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24642         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24643         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24644         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24645         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24646         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24647         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24648         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24649         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24650         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24651         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24652         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24653         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24654         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24655         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24656         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24657         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24658         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24659         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24660         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24661         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24662         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24663
24664         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24665         * nptl/pthreadP.h: Likewise.
24666         * nptl_db/structs.def: Likewise.
24667         * sysdeps/arm/sysdep.h: Likewise.
24668         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24669         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24670         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24671         * sysdeps/unix/alpha/sysdep.h: Likewise.
24672         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24673         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24674         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24675         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24676         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24677         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24678         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24679         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24680         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24681         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24682         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24683         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24684         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24685         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24688         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24689         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24690         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24691         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24692         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24693         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24694         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24695         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24696         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24697         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24698
24699         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24700         * nptl/pthreadP.h: Likewise.
24701         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24702         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24703         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24704         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24705         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24706         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24707         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24708         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24709         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24710         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24711         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24712         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24714         Likewise.
24715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24716         Likewise.
24717         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24718         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24719         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24720         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24721         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24722         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24723         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24724         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24725
24726         * dlfcn/dladdr.c: Use IS_IN.
24727         * dlfcn/dladdr1.c: Likewise.
24728         * dlfcn/dlclose.c: Likewise.
24729         * dlfcn/dlerror.c: Likewise.
24730         * dlfcn/dlinfo.c: Likewise.
24731         * dlfcn/dlmopen.c: Likewise.
24732         * dlfcn/dlopen.c: Likewise.
24733         * dlfcn/dlsym.c: Likewise.
24734         * dlfcn/dlvsym.c: Likewise.
24735
24736         * include/ifaddrs.h: Use IS_IN.
24737         * inet/check_pf.c: Likewise.
24738         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24739         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24740
24741         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24742         IS_IN_ldconfig.
24743         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24744         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24745
24746         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24747         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24748         IS_IN (libc).
24749
24750         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24751
24752         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24753         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24754         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24755         * include/libc-symbols.h (IS_IN_LIB): New macro.
24756         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24757         * include/netdb.h: Likewise.
24758         * include/stap-probe.h: Remove all uses of IN_LIB.
24759
24760         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24761         instead of IN_MODULE.
24762         * include/libc-symbols.h (IN_MODULE): Define using
24763         MODULE_NAME.
24764         (PASTE_NAME, PASTE_NAME1): New macros.
24765         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24766         of IN_LIB.
24767         (STAP_PROBE_ASM): Likewise.
24768
24769 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24770
24771         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24772         __mach_init in dlopened libc.
24773
24774 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24775
24776         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24777         * sysdeps/arm/preconfigure: Regenerate.
24778
24779 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24780
24781         * nptl/pthread_create.c (__pthread_create_2_1): Set
24782         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24783         when copying values from IATTR into PD.
24784
24785 2014-11-21  Will Newton  <will.newton@linaro.org>
24786             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24787
24788         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24789         Refactor inline-asm.  Also add comment.
24790
24791         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24792         ElfW macro instead of hardcoded Elf64 types.
24793         (la_aarch64_gnu_pltenter): Likewise.
24794         * sysdeps/aarch64/dl-machine.h
24795         (elf_machine_runtime_setup): Use ElfW(Addr).
24796
24797         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24798         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24799         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24800         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24801         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24802         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24803         (R_AARCH64_TLS_DTPMOD): This.
24804         (R_AARCH64_TLS_DTPREL64): Rename to ...
24805         (R_AARCH64_TLS_DTPREL): This.
24806         (R_AARCH64_TLS_TPREL64): Rename to ...
24807         (R_AARCH64_TLS_TPREL): This.
24808         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24809         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24810         R_AARCH64_TLS_TPREL64.
24811         (elf_machine_rela): Likewise.
24812
24813 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24814
24815         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24816         by setting it to 0.  64b atomics are not supported currently.
24817
24818 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24819
24820         [BZ #16469]
24821         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24822         search domain names.
24823
24824 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24825
24826         [BZ #16469]
24827         * NEWS: Update.
24828         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24829         trailing dot.
24830         * posix/tst-getaddrinfo5.c: New.
24831         * posix/Makefile (tests): Add it.
24832
24833 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24834
24835         [BZ #14498]
24836         * NEWS: Fixed.
24837         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24838         after parsing line but before break_if_match.
24839         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24840         if there is a protocol mismatch.
24841
24842 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24843
24844         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24845         because the potential race is on the user-supplied stream.
24846
24847 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24848
24849         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24850         string literal if not passed a buffer.
24851         * manual/job.texi (ctermid): Update reasoning, note deviation
24852         from posix, suggest mtasurace when not passed a buffer, for
24853         future non-preliminary safety notes.
24854
24855 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24856
24857         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24858         of not passing it a buffer.
24859         Reported by Peng Haitao.
24860
24861 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24862
24863         * manual/Makefile ($(objpfx)stamp-summary): Require
24864         check-safety.sh to pass.
24865         * manual/check-safety.sh: Wish for verification that every
24866         @deftypefn and @deftypefun is followed by a @safety remark.
24867
24868 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24869
24870         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24871
24872         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24873         PTHREAD_CANCEL_ASYNCHRONOUS.
24874         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24875         send SIGCANCEL.
24876
24877         * nptl/default-sched.h: New file.
24878         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24879         * nptl/pthread_create.c: Include it.
24880         (__pthread_create_2_1): Use collect_default_sched instead of making
24881         Linux syscalls here directly.
24882
24883 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24884
24885         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24886         __pthread_once): Use C11 atomics.
24887
24888 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24889
24890         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24891
24892 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24893
24894         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24895         atomic_thread_fence_acquire, atomic_thread_fence_release,
24896         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24897         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24898         atomic_compare_exchange_weak_relaxed,
24899         atomic_compare_exchange_weak_acquire,
24900         atomic_compare_exchange_weak_release,
24901         atomic_exchange_acquire, atomic_exchange_release,
24902         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24903         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24904         atomic_fetch_and_acquire,
24905         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24906
24907 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24908
24909         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24910         USE_ATOMIC_COMPILER_BUILTINS): Define.
24911         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24912         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24913         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24914         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24915         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24916         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24917         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24918         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24919         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24920         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24921         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24922         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24923         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24924         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24925         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24926         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24927         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24928         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24929         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24930         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24931         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24932         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24933         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24934         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24935         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24936         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24937         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24938         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24939         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24940         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24941         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24942         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24943         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24944         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24945         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24946         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24947         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24948         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24949         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24950         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24951
24952 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24953
24954         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24955         the sched_priority value here.  It was already checked when the user
24956         called pthread_attr_setschedparam.
24957
24958         * nptl/tst-bad-schedattr.c: New file.
24959         * nptl/Makefile (tests): Add it.
24960
24961 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24962             Florian Weimer  <fweimer@redhat.com>
24963             Joseph Myers  <joseph@codesourcery.com>
24964             Adam Conrad  <adconrad@0c3.net>
24965             Andreas Schwab  <schwab@suse.de>
24966             Brooks  <bmoses@google.com>
24967
24968         [BZ #17625]
24969         * wordexp-test.c (__dso_handle): Add prototype.
24970         (__register_atfork): Likewise.
24971         (__app_register_atfork): New function.
24972         (registered_forks): New global.
24973         (register_fork): New function.
24974         (test_case): Add 3 new tests for WRDE_CMDSUB.
24975         (main): Call __app_register_atfork.
24976         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24977         fork count is non-zero fail the test.
24978         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24979         is set.
24980         (parse_dollars): Remove check for WRDE_NOCMD.
24981         (parse_dquote): Likewise.
24982
24983 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24984
24985         * Makeconfig (built-modules): List non-library modules to be
24986         built.
24987         (module-cppflags): Include libc-modules.h for
24988         everything except shlib-versions.v.i.
24989         (CPPFLAGS): Use it.
24990         (before-compile): Add libc-modules.h.
24991         ($(common-objpfx)libc-modules.h,
24992         $(common-objpfx)libc-modules.stmp): New targets.
24993         (common-generated): Add libc-modules.h and libc-modules.stmp.
24994         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24995         * include/libc-symbols.h: Don't include libc-modules.h.
24996         * include/libc-modules.h: Remove file.
24997         * scripts/gen-libc-modules.awk: New script to generate
24998         libc-modules.h.
24999         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
25000         Depend on libc-modules.stmp.
25001
25002         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
25003
25004         * Makeconfig (in-module): Get value of libof set for the
25005         translation unit.
25006         (CPPFLAGS): Use $(in-module).
25007         * Makerules: Don't suffix routine names for nonlib.
25008         * include/libc-modules.h: New file.
25009         * include/libc-symbols.h: Include libc-modules.h
25010         (IS_IN): New macro to replace IS_IN_* macros.
25011         * elf/Makefile: Set libof-* for each routine.
25012         * elf/rtld-Rules: Likewise.
25013         * extra-modules.mk: Likewise.
25014         * iconv/Makefile: Likewise.
25015         * iconvdata/Makefile: Likewise.
25016         * locale/Makefile: Likewise.
25017         * malloc/Makefile: Likewise.
25018         * nss/Makefile: Likewise.
25019         * sysdeps/gnu/Makefile: Likewise.
25020         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
25021         * sysdeps/unix/sysv/linux/Makefile: Likewise.
25022         * sysdeps/s390/s390-64/Makefile: Likewise.
25023         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
25024         CPPFLAGS for nscd instead of nonlib.
25025
25026 2014-11-18  Roland McGrath  <roland@hack.frob.com>
25027
25028         * nptl/createthread.c: New file.
25029
25030         * nptl/createthread.c: Moved ...
25031         * sysdeps/unix/sysv/linux/createthread.c: ... here.
25032
25033         * nptl/createthread.c: Add proper top-line comment.
25034         (do_clone): Folded into ...
25035         (create_thread): ... here.  Take new arguments STOPPED_START and
25036         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
25037         increment __nptl_threads, do event-reporting logic, do
25038         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
25039         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
25040         resource cleanup if sched_setaffinity or sched_setscheduler fails,
25041         just send SIGCANCEL.
25042         * nptl/pthread_create.c: Forward-declare create_thread before
25043         including createthread.c.
25044         (start_thread): Use new macro START_THREAD_DEFN to replace defining
25045         declaration, and new macro START_THREAD_SELF to replace argument.
25046         Remove return statement.
25047         (report_thread_creation): New function.
25048         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
25049         synchronization logic, and __nptl_nthreads increment here, around
25050         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
25051         PD->parent_cancelhandling here, before create_thread.  When
25052         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
25053         __deallocate_stack, and ENOMEM translation here.
25054
25055 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
25056
25057         [BZ #17616]
25058         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
25059         (mptwo): Rename to __mptwo.
25060         (__inv): Use __mptwo instead of mptwo.
25061         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
25062         (mptwo): Rename to __mptwo.
25063         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
25064         of mpone and __mptwo instead of mptwo.
25065         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
25066         instead of mpone.
25067         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
25068         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
25069         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
25070         of mpone and __mptwo instead of mptwo.
25071         (__mpranred): Use __mpone instead of mpone.
25072         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
25073         variable.
25074         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25075         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25076         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25077         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25078         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25079         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25080         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25081         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25082         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25083         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25084         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25085         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25086         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25087         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25088         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25089         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25090         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25091         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25092         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25093
25094 2014-11-18  Tom de Vries  <tom@codesoucery.com>
25095
25096         * manual/signal.texi (Primitives Interrupted by Signals): In section,
25097         replace BSD Handler xref with BSD Signal Handling.
25098
25099 2014-11-17  Richard Henderson  <rth@redhat.com>
25100
25101         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
25102         (_FP_PACK_RAW_2): Remove.
25103         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
25104         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
25105         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
25106         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
25107         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
25108         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
25109         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
25110         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
25111         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
25112         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
25113         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
25114         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
25115         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
25116         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
25117         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
25118         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
25119
25120 2014-11-14  Roland McGrath  <roland@hack.frob.com>
25121
25122         * signal/signal.h [__USE_MISC]
25123         (struct sigvec): Remove type.
25124         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
25125         (sigvec): Remove declaration.
25126         * sysdeps/posix/sigvec.c: Moved ...
25127         * signal/sigvec.c: ... here, replacing old file.
25128         (struct sigvec): New type, copied from old signal.h definition.
25129         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
25130         (__sigvec): Convert definition to prototype.
25131         (sigvec): Replace weak_alias with compat_symbol.
25132         * signal/Versions (libc: GLIBC_2.21): New version set.
25133         * include/signal.h: Remove __sigvec declaration.
25134         * sysdeps/unix/bsd/sigvec.c: Remove file.
25135         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
25136         * manual/signal.texi (BSD Handler): Remove subsection.
25137         Move siginterrupt up to ...
25138         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
25139         (Blocking in BSD): Fold subsection into its parent.
25140         * NEWS: Mention sigvec removal.
25141
25142 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25143
25144         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
25145         (DLA_FMS): Make definition conditional only on [__FMA4__].
25146         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
25147         definition.
25148
25149         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
25150         Make definition conditional only on [PROF].
25151         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
25152         definition.
25153         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
25154         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
25155
25156         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
25157         !__GNUC__].
25158         * include/signal.h (__sigpause): Move declaration above call to
25159         libc_hidden_proto.
25160         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
25161         variable.
25162         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25163         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25164
25165 2014-11-14  David S. Miller  <davem@davemloft.net>
25166
25167         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
25168         Define before including <string/memcpy.c> and <string/mempcpy.c>.
25169
25170 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25171
25172         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
25173         * configure: Regenerated.
25174         * manual/install.texi (Tools for Compilation): Document a
25175         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
25176         compiler verified to work.
25177         * INSTALL: Regenerated.
25178
25179         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
25180         redeclare with asm name.
25181         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
25182         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
25183         including <string.h>.
25184         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25185         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
25186         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25187         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
25188         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25189         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
25190         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25191
25192 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
25193
25194         * stdlib/strtol.c (__strtol): Use prototype definition.
25195
25196         [BZ #17594]
25197         * stdlib/strtol.c (SYM__): New macro.
25198         (SYM__1): Likewise.
25199         (__strtol): Likewise.
25200         (strtol): Rename to __strtol and define as weak alias of
25201         __strtol.  Use libc_hidden_weak.
25202
25203 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25204
25205         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
25206         Use numbered labels in inline assembly.
25207
25208 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25209
25210         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
25211         Add setjmp LIBC_PROBE.
25212         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
25213         Likewise.
25214         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
25215         Add longjmp, longjmp_target LIBC_PROBE.
25216         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
25217         Likewise.
25218
25219 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25220
25221         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
25222         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
25223         to get rid of unused variable warning.
25224
25225 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25226
25227         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
25228         Check for unwind_backtrace ==  NULL only in SHARED case.
25229         (__backchain_backtrace): Compile only in SHARED case.
25230         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
25231         Likewise.
25232         (__backchain_backtrace): Declare as static.
25233
25234 2014-11-12  Roland McGrath  <roland@hack.frob.com>
25235
25236         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
25237         (__libc_multiple_threads_ptr): Variable moved ...
25238         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
25239
25240 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
25241
25242         * conform/GlibcConform.pm: New file.
25243         * conform/conformtest.pl: Use GlibcConform module.
25244         * conform/linknamespace.pl: New file.
25245         * conform/list-header-symbols.pl: Likewise.
25246         * conform/Makefile (linknamespace-symlists-base): New variable.
25247         (linknamespace-symlists-tests): Likewise.
25248         (linknamespace-header-base): Likewise.
25249         (linknamespace-header-tests): Likewise.
25250         (tests-special): Add new tests.
25251         ($(linknamespace-symlists-tests)): New rule.
25252         (linknamespace-libs): New variable.
25253         ($(objpfx)symlist-stdlibs): New rule.
25254         ($(linknamespace-header-tests)): Likewise.
25255         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
25256         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
25257         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
25258         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
25259         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
25260         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
25261         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
25262         (test-xfail-ISO/math.h/linknamespace): Likewise.
25263         (test-xfail-ISO/signal.h/linknamespace): Likewise.
25264         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
25265         (test-xfail-ISO/time.h/linknamespace): Likewise.
25266         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25267         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
25268         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25269         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25270         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
25271         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25272         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25273         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
25274         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25275         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25276         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
25277         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25278         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
25279         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
25280         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
25281         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25282         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
25283         (test-xfail-XPG3/search.h/linknamespace): Likewise.
25284         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
25285         (test-xfail-XPG3/time.h/linknamespace): Likewise.
25286         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
25287         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
25288         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
25289         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
25290         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
25291         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
25292         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
25293         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
25294         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25295         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
25296         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
25297         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
25298         (test-xfail-XPG4/search.h/linknamespace): Likewise.
25299         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
25300         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
25301         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
25302         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
25303         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
25304         (test-xfail-XPG4/time.h/linknamespace): Likewise.
25305         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
25306         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
25307         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
25308         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
25309         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
25310         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25311         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
25312         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
25313         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
25314         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
25315         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
25316         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
25317         (test-xfail-POSIX/time.h/linknamespace): Likewise.
25318         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
25319         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
25320         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
25321         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
25322         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
25323         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
25324         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
25325         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
25326         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
25327         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25328         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
25329         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
25330         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
25331         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
25332         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
25333         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
25334         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
25335         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
25336         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
25337         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
25338         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
25339         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
25340         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
25341         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
25342         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
25343         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
25344         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
25345         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
25346         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25347         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
25348         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
25349         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
25350         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
25351         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
25352         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
25353         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25354         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
25355         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
25356         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
25357         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
25358         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
25359         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
25360         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
25361         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
25362         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
25363         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
25364         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
25365         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
25366         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
25367         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
25368         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
25369         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25370         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
25371         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
25372         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
25373         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
25374         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
25375         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25376         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
25377         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
25378         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
25379         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
25380         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25381         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
25382         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
25383         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
25384         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
25385         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
25386         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
25387         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
25388         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
25389         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
25390         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25391         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
25392         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
25393         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
25394         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25395         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
25396         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
25397         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
25398         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
25399         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
25400         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25401         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
25402         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
25403         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
25404         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
25405         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
25406         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
25407         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
25408         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
25409         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
25410         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
25411         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
25412         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
25413         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25414         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
25415         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
25416
25417         [BZ #17589]
25418         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
25419         of fgets_unlocked.
25420
25421         [BZ #17585]
25422         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
25423         (memmem): Rename to __memmem and define as weak alias of
25424         __memmem.  Use libc_hidden_weak.
25425         (__memmem): Use libc_hidden_def.
25426         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
25427         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
25428         memmem.
25429
25430         [BZ #17582]
25431         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
25432         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
25433         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
25434         and define as weak alias of __fgets_unlocked.  Use
25435         libc_hidden_weak.
25436         (__fgets_unlocked): Use libc_hidden_def.
25437         * include/stdio.h (__fgets_unlocked): Declare.  Use
25438         libc_hidden_proto.
25439         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
25440         __fgets_unlocked instead of fgets_unlocked.
25441         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
25442         (GET_NPROCS_CONF_PARSER): Likewise.
25443         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
25444         (GET_NPROCS_CONF_PARSER): Likewise.
25445
25446         [BZ #17574]
25447         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
25448         weak alias of __wmemset.  Use libc_hidden_weak.
25449         (__wmemset): Use libc_hidden_def.
25450         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
25451         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
25452         of wmemset.
25453
25454         [BZ #17573]
25455         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
25456         with asm name __mempcpy.
25457         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
25458
25459         [BZ #17572]
25460         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
25461         and define as weak alias of __rawmemchr.
25462         (__rawmemchr): Do not define as strong alias of rawmemchr.
25463
25464         [BZ #17571]
25465         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
25466         alias of __qsort_r.
25467         (qsort): Call __qsort_r instead of qsort_r.
25468         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
25469         (__qsort_r): Declare.  Call libc_hidden_proto.
25470         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
25471         instead of qsort_r.
25472         * nscd/gai.c (__qsort_r): Define to qsort_r.
25473         * posix/tst-rfc3484.c (__qsort_r): Likewise.
25474         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
25475         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
25476
25477         [BZ #17570]
25478         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
25479         define as weak alias of __malloc_info.
25480
25481         [BZ #17584]
25482         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
25483         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25484         (__rewinddir): Use libc_hidden_def.
25485         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
25486         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25487         (__rewinddir): Use libc_hidden_def.
25488         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
25489         weak alias of __rewinddir.  Don't use libc_hidden_def.
25490         (__rewinddir): Use libc_hidden_def.
25491         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
25492         (__rewinddir): Use libc_hidden_proto.
25493         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
25494         rewinddir.
25495         (__getcwd): Use __rewinddir instead of rewinddir.
25496
25497         [BZ #17583]
25498         * libio/fileno.c (fileno): Rename to __fileno and define as weak
25499         alias of __fileno.  Use libc_hidden_weak.
25500         (__fileno): Use libc_hidden_def.
25501         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
25502         * libio/ftello.c (ftello): Rename to __ftello and define as weak
25503         alias of __ftello.
25504         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
25505         __ftello.
25506         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
25507         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
25508         libc_hidden_def.
25509         (fread_unlocked): Don't use libc_hidden_ver.
25510         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
25511         and define as weak alias of __fread_unlocked.  Don't use
25512         libc_hidden_def.
25513         (__fread_unlocked): Use libc_hidden_def.
25514         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
25515         (ftello): Don't use libc_hidden_proto.
25516         (__ftello): Declare.  Use libc_hidden_proto.
25517         (fread_unlocked): Don't use libc_hidden_proto.
25518         (__fread_unlocked): Declare.  Use libc_hidden_proto.
25519         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
25520         and __ftello instead of fileno, fread_unlocked and ftello.
25521
25522 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
25523
25524         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
25525         GOT12.
25526         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
25527         Likewise.
25528         (_dl_start_user): Likewise.
25529         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
25530
25531 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
25532             Siddhesh Poyarekar  <siddhesh@redhat.com>
25533
25534         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
25535         Move argv and envp down instead of moving argc up.
25536         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
25537
25538 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
25539
25540         [BZ #17506]
25541         * test-skeleton.c (main): Return successful if one of
25542         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
25543         * string/tst-strcoll-overflow.c: Define expected status.
25544
25545 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
25546
25547         [BZ #17475]
25548         * locale/iso-639.def: Define Bhili and Tulu language codes.
25549
25550 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
25551
25552         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
25553
25554 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
25555
25556         [BZ #17555]
25557         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
25558
25559 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25560
25561         * configure.ac: Updated check of minimal required version to
25562         2.22.
25563         * manual/install.texi (Tools for Compilation): Updated version
25564         number.
25565         * configure: Regenerated.
25566         * INSTALL: Likewise.
25567
25568 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
25569
25570         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
25571         __tls_get_addr.
25572
25573 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
25574
25575         * include/sys/wait.h (__libc_waitpid): Remove declaration.
25576         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
25577         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25578         libc_hidden_weak.
25579         (waitpid): Define as alias of __waitpid.
25580         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
25581         __waitpid.
25582         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25583         libc_hidden_weak.
25584         (waitpid): Define as alias of __waitpid.
25585         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
25586         __libc_waitpid alias.
25587         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
25588         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
25589         Likewise.
25590         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
25591         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
25592         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
25593         alias.
25594         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
25595         __waitpid.
25596         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25597         libc_hidden_weak.
25598         (waitpid): Define as alias of __waitpid.
25599
25600 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
25601
25602         * manual/llio.texi: Add comment that write safety has been
25603         fixed in Linux.
25604
25605         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
25606         (localplt-build-dso): Add elf/ld.so.
25607         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
25608         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
25609         and free for ld.so.
25610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
25611         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
25612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
25613         Likewise.
25614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
25615         Likewise.
25616         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
25617         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
25618         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
25619         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
25620         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
25621         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25622         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25623         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25624         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25625         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25626         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25627
25628 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25629
25630         [BZ #14132]
25631         * include/libc-symbols.h (INTUSE): Remove macro.
25632         (INTDEF): Likewise.
25633         (INTVARDEF): Likewise.
25634         (_INTVARDEF): Likewise.
25635         (INTDEF2): Likewise.
25636         (INTVARDEF2): Likewise.
25637         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25638         rtld_hidden_def instead of INTVARDEF.
25639         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25640         (_dl_starting_up_internal): Remove declaration.
25641         (_dl_starting_up): Use rtld_hidden_proto.
25642         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25643         declaration.
25644         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25645         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25646         _dl_starting_up.
25647         * elf/dl-writev.h (_dl_writev): Likewise.
25648         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25649         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25650         _dl_starting_up_internal.
25651
25652 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25653
25654         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25655         test-skeleton.c.
25656
25657 2014-11-05  Will Newton  <will.newton@linaro.org>
25658
25659         * benchtests/Makefile: (bench-malloc): Add malloc thread
25660         scalability benchmark.
25661         * benchtests/bench-malloc-threads.c: New file.
25662
25663 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25664
25665         * sysdeps/aarch64/strchrnul.S: New file.
25666
25667 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25668
25669         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25670         definition.
25671         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25672         Likwise.
25673         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25674         Likewise.
25675         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25676         Likewise.
25677         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25678         Likewise.
25679         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25680         Likewise.
25681
25682 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25683
25684         * catgets/test-gencat.c: Use test-skeleton.c.
25685         * catgets/tst-catgets.c: Likewise.
25686         * csu/tst-empty.c: Likewise.
25687         * elf/tst-audit2.c: Likewise.
25688         * elf/tst-global1.c: Likewise.
25689         * elf/tst-pathopt.c: Likewise.
25690         * elf/tst-piemod1.c: Likewise.
25691         * elf/tst-tls10.c: Likewise.
25692         * elf/tst-tls11.c: Likewise.
25693         * elf/tst-tls12.c: Likewise.
25694         * gnulib/tst-gcc.c: Likewise.
25695         * iconvdata/tst-e2big.c: Likewise.
25696         * iconvdata/tst-loading.c: Likewise.
25697         * iconv/tst-iconv1.c: Likewise.
25698         * iconv/tst-iconv2.c: Likewise.
25699         * inet/test-inet6_opt.c: Likewise.
25700         * inet/tst-gethnm.c: Likewise.
25701         * inet/tst-network.c: Likewise.
25702         * inet/tst-ntoa.c: Likewise.
25703         * intl/tst-codeset.c: Likewise.
25704         * intl/tst-gettext2.c: Likewise.
25705         * intl/tst-gettext3.c: Likewise.
25706         * intl/tst-ngettext.c: Likewise.
25707         * intl/tst-translit.c: Likewise.
25708         * io/test-stat.c: Likewise.
25709         * libio/test-fmemopen.c: Likewise.
25710         * libio/tst-freopen.c: Likewise.
25711         * libio/tst-sscanf.c: Likewise.
25712         * libio/tst-ungetwc1.c: Likewise.
25713         * libio/tst-ungetwc2.c: Likewise.
25714         * libio/tst-widetext.c: Likewise.
25715         * localedata/tst-ctype.c: Likewise.
25716         * localedata/tst-digits.c: Likewise.
25717         * localedata/tst-leaks.c: Likewise.
25718         * localedata/tst-mbswcs1.c: Likewise.
25719         * localedata/tst-mbswcs2.c: Likewise.
25720         * localedata/tst-mbswcs3.c: Likewise.
25721         * localedata/tst-mbswcs4.c: Likewise.
25722         * localedata/tst-mbswcs5.c: Likewise.
25723         * localedata/tst-setlocale.c: Likewise.
25724         * localedata/tst-trans.c: Likewise.
25725         * localedata/tst-wctype.c: Likewise.
25726         * localedata/tst-xlocale1.c: Likewise.
25727         * login/tst-grantpt.c: Likewise.
25728         * malloc/tst-calloc.c: Likewise.
25729         * malloc/tst-malloc.c: Likewise.
25730         * malloc/tst-mallocstate.c: Likewise.
25731         * malloc/tst-mcheck.c: Likewise.
25732         * malloc/tst-mtrace.c: Likewise.
25733         * malloc/tst-obstack.c: Likewise.
25734         * math/atest-exp2.c: Likewise.
25735         * math/atest-exp.c: Likewise.
25736         * math/atest-sincos.c: Likewise.
25737         * math/test-matherr.c: Likewise.
25738         * math/test-misc.c: Likewise.
25739         * math/test-powl.c: Likewise.
25740         * math/tst-definitions.c: Likewise.
25741         * misc/tst-dirname.c: Likewise.
25742         * misc/tst-efgcvt.c: Likewise.
25743         * misc/tst-fdset.c: Likewise.
25744         * misc/tst-hsearch.c: Likewise.
25745         * misc/tst-mntent2.c: Likewise.
25746         * nptl/tst-sem7.c: Likewise.
25747         * nptl/tst-sem8.c: Likewise.
25748         * nptl/tst-sem9.c: Likewise.
25749         * nss/test-netdb.c: Likewise.
25750         * posix/tst-fnmatch.c: Likewise.
25751         * posix/tst-getlogin.c: Likewise.
25752         * posix/tst-gnuglob.c: Likewise.
25753         * posix/tst-mmap.c: Likewise.
25754         * pwd/tst-getpw.c: Likewise.
25755         * resolv/tst-inet_ntop.c: Likewise.
25756         * rt/tst-timer.c: Likewise.
25757         * stdio-common/test-fseek.c: Likewise.
25758         * stdio-common/test-popen.c: Likewise.
25759         * stdio-common/test-vfprintf.c: Likewise.
25760         * stdio-common/tst-cookie.c: Likewise.
25761         * stdio-common/tst-fileno.c: Likewise.
25762         * stdio-common/tst-gets.c: Likewise.
25763         * stdio-common/tst-obprintf.c: Likewise.
25764         * stdio-common/tst-perror.c: Likewise.
25765         * stdio-common/tst-sprintf2.c: Likewise.
25766         * stdio-common/tst-sprintf3.c: Likewise.
25767         * stdio-common/tst-sprintf.c: Likewise.
25768         * stdio-common/tst-swprintf.c: Likewise.
25769         * stdio-common/tst-tmpnam.c: Likewise.
25770         * stdio-common/tst-unbputc.c: Likewise.
25771         * stdio-common/tst-wc-printf.c: Likewise.
25772         * stdlib/tst-environ.c: Likewise.
25773         * stdlib/tst-fmtmsg.c: Likewise.
25774         * stdlib/tst-limits.c: Likewise.
25775         * stdlib/tst-rand48-2.c: Likewise.
25776         * stdlib/tst-rand48.c: Likewise.
25777         * stdlib/tst-random2.c: Likewise.
25778         * stdlib/tst-random.c: Likewise.
25779         * stdlib/tst-strtol.c: Likewise.
25780         * stdlib/tst-strtoll.c: Likewise.
25781         * stdlib/tst-tls-atexit.c: Likewise.
25782         * stdlib/tst-xpg-basename.c: Likewise.
25783         * string/test-ffs.c: Likewise.
25784         * string/tst-bswap.c: Likewise.
25785         * string/tst-inlcall.c: Likewise.
25786         * string/tst-strtok.c: Likewise.
25787         * string/tst-strxfrm.c: Likewise.
25788         * sysdeps/x86_64/tst-audit10.c: Likewise.
25789         * sysdeps/x86_64/tst-audit3.c: Likewise.
25790         * sysdeps/x86_64/tst-audit4.c: Likewise.
25791         * sysdeps/x86_64/tst-audit5.c: Likewise.
25792         * time/tst-ftime_l.c: Likewise.
25793         * time/tst-getdate.c: Likewise.
25794         * time/tst-mktime3.c: Likewise.
25795         * time/tst-mktime.c: Likewise.
25796         * time/tst-posixtz.c: Likewise.
25797         * time/tst-strptime2.c: Likewise.
25798         * time/tst-strptime3.c: Likewise.
25799         * wcsmbs/tst-btowc.c: Likewise.
25800         * wcsmbs/tst-mbrtowc.c: Likewise.
25801         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25802         * wcsmbs/tst-wchar-h.c: Likewise.
25803         * wcsmbs/tst-wcpncpy.c: Likewise.
25804         * wcsmbs/tst-wcrtomb.c: Likewise.
25805         * wcsmbs/tst-wcsnlen.c: Likewise.
25806         * wcsmbs/tst-wcstof.c: Likewise.
25807
25808 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25809
25810         [BZ #14132]
25811         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25812         INTDEF.
25813         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25814         declaration.
25815         (_dl_mcount): Use rtld_hidden_proto.
25816         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25817         _dl_mcount.
25818         * elf/rtld.c (_rtld_global_ro): Likewise.
25819
25820         [BZ #14132]
25821         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25822         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25823         of _dl_init_internal.
25824         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25825         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25826         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25827         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25828         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25829         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25830         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25831         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25832         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25833         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25834         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25835         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25836         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25837         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25838         * sysdeps/tile/dl-start.S (_start): Likewise.
25839         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25840         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25841
25842         [BZ #14132]
25843         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25844         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25845         (rtld_progname): Make macro definition unconditional.
25846         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25847         INTDEF.
25848         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25849         (dl_main): Likewise.
25850         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25851         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25852         instead of _dl_argv_internal.
25853         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25854         __GI__dl_argv instead of INTUSE(_dl_argv).
25855         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25856         __GI__dl_argv instead of _dl_argv_internal.
25857
25858         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25859         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25860         macro.
25861         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25862         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25863         New macro.
25864         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25865         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25866         macro.
25867         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25868         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25869
25870 2014-11-04  Andreas Schwab  <schwab@suse.de>
25871
25872         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25873
25874 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25875
25876         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25877         mtvsrd instruction in binary form.
25878
25879 2014-11-03  Andreas Schwab  <schwab@suse.de>
25880
25881         [BZ #17522]
25882         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25883         for less than MB_LEN_MAX use a local buffer of that size.
25884         * libio/tst-fputws.c: New file.
25885         * libio/Makefile (tests): Add tst-fputws.
25886
25887 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25888
25889         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25890         the size of the fpu_fr.fpu_dregs[] array.
25891
25892 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25893
25894         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25895         (__nanosleep): Do not define as alias.
25896         (nanosleep): Define as alias of __nanosleep.
25897         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25898         __libc_nanosleep name.
25899
25900 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25901
25902         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25903         install.texi in comment.
25904
25905 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25906
25907         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25908         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25909         ... add here and use lwsync or sync ...
25910         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25911         ... and add here using lwsync.
25912
25913 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25914
25915         * elf/dl-machine-reject-phdr.h: New file.
25916         * elf/dl-load.c: #include that.
25917         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25918         if that returned true.
25919
25920 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25921
25922         [BZ #17496]
25923         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25924         gen-as-const-headers chunk.  Add a big scare comment after the last
25925         safe place to touch before-compile.
25926
25927 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25928
25929         * manual/install.texi (Tools for Compilation): Update autoconf
25930         version requirements.
25931         * INSTALL: Regenerated.
25932
25933         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25934         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25935         (__libc_pselect): Likewise.
25936
25937         [BZ #14138]
25938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25942
25943 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25944
25945         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25946         correct barrier instruction.
25947         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25948         Likewise.
25949         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25950         Likewise.
25951
25952 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25953
25954         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25955         after defining inlines.  Instead, just use parens to defeat macro
25956         expansion of __isctype in its declaration.
25957
25958 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25959
25960         * include/sys/uio.h (__libc_readv): Remove declaration.
25961         (__libc_writev): Likewise.
25962         * misc/readv.c (__libc_readv): Rename to __readv.
25963         (__readv): Do not define as alias.
25964         (readv): Define as alias of __readv.
25965         * misc/writev.c (__libc_writev): Rename to __writev.
25966         (__writev): Do not define as alias.
25967         (writev): Define as alias of __writev.
25968         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25969         (__readv): Do not define as alias.
25970         (readv): Define unconditionally as alias of __readv.
25971         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25972         (__writev): Do not define as alias.
25973         (writev): Define unconditionally as alias of __writev.
25974         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25975         name.
25976         (writev): Do not define __libc_writev name.
25977
25978 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25979
25980         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25981         (convert_charseq): New function, broken out of ...
25982         (use_from_charmap): ... here.  Call it.
25983         (use_to_charmap): Use convert_charseq and free instead of duplicating
25984         its code with a variable-length stack struct.
25985
25986 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25987
25988         * include/fcntl.h (__libc_creat): Remove declaration.
25989         * io/creat.c (__libc_creat): Rename to creat.
25990         (creat): Do not define as alias.
25991         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25992         of creat instead of __libc_creat.
25993         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25994         to creat.
25995         (creat): Do not define as alias.
25996         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25997         __libc_creat.
25998         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25999         __libc_creat name.
26000         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
26001         Likewise.
26002
26003 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
26004
26005         * manual/llio.texi: Add comments discussing why write() may be
26006         considered MT-unsafe on Linux.
26007
26008 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
26009
26010         * dl-load.c (local_strdup): Remove.
26011         (expand_dynamic_string_token): Use __strdup.
26012         (decompose_rpath): Likewise.
26013         (_dl_map_object): Likewise.
26014
26015 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
26016
26017         [BZ #14132]
26018         * sysdeps/generic/unwind-dw2-fde.c
26019         (__register_frame_info_bases_internal): Do not declare.
26020         (__register_frame_info_table_bases_internal): Likewise.
26021         (__deregister_frame_info_bases_internal): Likewise.
26022         (__register_frame_info_bases): Declare and use hidden_proto before
26023         definition.  Use hidden_def instead of INTDEF.
26024         (__register_frame_info_table_bases): Likewise.
26025         (__deregister_frame_info_bases): Likewise.
26026         (__register_frame_info): Do not use INTUSE.
26027         (__register_frame): Likewise.
26028         (__register_frame_info_table): Likewise.
26029         (__register_frame_table): Likewise.
26030         (__deregister_frame_info): Likewise.
26031         (__deregister_frame): Likewise.
26032
26033 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
26034
26035         * sysdeps/unix/sysv/linux/arm/kernel-features.h
26036         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
26037         not undefine.
26038         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
26039         Likewise.
26040         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
26041         Likewise.
26042
26043 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
26044
26045         [BZ #14138]
26046         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
26047         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
26048         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
26049         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
26050         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
26051         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
26052         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
26053         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
26054         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
26055         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
26056         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
26057         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
26058         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
26059         syscall.
26060         (setfsuid): Likewise.
26061         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
26062         (setfsuid): Likewise.
26063         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
26064         (setfsuid): Likewise.
26065         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
26066         Likewise.
26067         (setfsuid): Likewise.
26068         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
26069         (setfsuid): Likewise.
26070         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
26071         Likewise.
26072         (setfsuid): Likewise.
26073
26074 2014-10-27  Andreas Schwab  <schwab@suse.de>
26075
26076         [BZ #17501]
26077         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
26078         check for Slow_SSE4_2 feature bit.
26079         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
26080         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
26081         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
26082         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
26083
26084 2014-10-24  Roland McGrath  <roland@hack.frob.com>
26085
26086         * configure.ac: Validate compiler version with a empirical test of
26087         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
26088         $CC -v output.
26089         * configure: Regenerated.
26090
26091         * inet/htons.c (htons): Prototypify.
26092         * inet/htonl.c (htonl): Likewise.
26093
26094 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26095
26096         * string/strncat.c (strncat): Improve performance by using strlen.
26097
26098 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26099
26100         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
26101
26102 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26103
26104         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
26105         Call libc_fetestexcept_aarch64.
26106
26107 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26108
26109         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
26110         Call libc_feholdexcept_aarch64.
26111
26112 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26113
26114         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
26115         Call get_rounding_mode.
26116
26117 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26118
26119         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
26120         Simplify logic.
26121
26122 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26123
26124         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
26125         Simplify logic.
26126
26127 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
26128
26129         [BZ #14138]
26130         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
26131         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
26132         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
26133         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
26134         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
26135         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
26136         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
26137         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
26138         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
26139         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
26140         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
26141         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
26142         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
26143         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
26144         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
26145         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
26146         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
26147         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
26148         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
26149         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
26150         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
26151         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
26152         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
26153         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
26154         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
26155         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
26156         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
26157         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
26158         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
26159         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
26160         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
26161         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
26162         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
26163         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
26164         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
26165         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
26166         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
26167         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
26168         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
26169         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
26170         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
26171         syscall.
26172         (geteuid): Likewise.
26173         (getgid): Likewise.
26174         (getuid): Likewise.
26175         (getresgid): Likewise.
26176         (getresuid): Likewise.
26177         (getgroups): Likewise.
26178         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
26179         (geteuid): Likewise.
26180         (getgid): Likewise.
26181         (getuid): Likewise.
26182         (getresgid): Likewise.
26183         (getresuid): Likewise.
26184         (getgroups): Likewise.
26185         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
26186         (geteuid): Likewise.
26187         (getgid): Likewise.
26188         (getuid): Likewise.
26189         (getresgid): Likewise.
26190         (getresuid): Likewise.
26191         (getgroups): Likewise.
26192         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
26193         Likewise.
26194         (geteuid): Likewise.
26195         (getgid): Likewise.
26196         (getuid): Likewise.
26197         (getresgid): Likewise.
26198         (getresuid): Likewise.
26199         (getgroups): Likewise.
26200         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
26201         (geteuid): Likewise.
26202         (getgid): Likewise.
26203         (getuid): Likewise.
26204         (getresgid): Likewise.
26205         (getresuid): Likewise.
26206         (getgroups): Likewise.
26207         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
26208         Likewise.
26209         (geteuid): Likewise.
26210         (getgid): Likewise.
26211         (getuid): Likewise.
26212         (getgroups): Likewise.
26213
26214         [BZ #14138]
26215         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
26216         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
26217         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
26218         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
26219         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
26220         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
26221         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
26222         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
26223         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
26224         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
26225         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
26226         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
26227         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
26228         __chown.
26229         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
26230         (lchown): Likewise.
26231         (fchown): Likewise.
26232         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
26233         Likewise.
26234         (lchown): Likewise.
26235         (fchown): Likewise.
26236         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
26237         (lchown): Likewise.
26238         (fchown): Likewise.
26239         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
26240         Likewise.
26241         (lchown): Likewise.
26242         (fchown): Likewise.
26243
26244 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26245
26246         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
26247         Simplify logic.
26248
26249 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26250
26251         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26252         Cleanup logic.
26253
26254 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26255
26256         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26257         Remove unused include.
26258
26259 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26260
26261         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
26262         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
26263         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
26264         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
26265
26266 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
26267             Helge Deller <deller@gmx.de>
26268
26269         [BZ #17508]
26270         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
26271         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
26272         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
26273
26274 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
26275
26276         [BZ #14132]
26277         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
26278         Remove macro definition.
26279         (__ashrdi3_v_glibc20): Likewise.
26280         (__lshrdi3_v_glibc20): Likewise.
26281         (__cmpdi2_v_glibc20): Likewise.
26282         (__ucmpdi2_v_glibc20): Likewise.
26283         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
26284         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
26285         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
26286         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
26287         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
26288         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
26289
26290 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26291
26292         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
26293         old GNU extension [0] syntax.
26294         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
26295         alloca rather than an array member with variable length.
26296         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
26297         * nscd/nscd.c (invalidate_db): New function, broken out of ...
26298         (parse_opt): ... here.  Likewise use alloca there.
26299         Validate the -i argument before checking for rootness.
26300         (send_shutdown): New function, broken out of ...
26301         (parse_opt): ... here.
26302
26303 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26304
26305         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
26306         macro to get at the _rt_local_ro field.
26307         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
26308         ([PIC] case) or _dl_hwcap ([!PIC] case).
26309         * sysdeps/arm/setjmp.S: Likewise.
26310
26311         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
26312         * sysdeps/arm/configure.ac: New check to define it.
26313         * sysdeps/arm/configure: Regenerated.
26314         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
26315         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
26316         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
26317         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
26318         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
26319         Use move/movt pair instead of a load.
26320         (LDST_GLOBAL): Macro removed.
26321         (LDR_GLOBAL): New macro replaces it.
26322         (LDR_HIDDEN): New macro.
26323         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
26324         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
26325
26326         * setjmp/tst-setjmp-static.c: New file.
26327         * setjmp/Makefile (tests): Add it.
26328         (tests-static): New variable.
26329
26330 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
26331
26332         [BZ #17485]
26333         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
26334
26335 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
26336
26337         [BZ #14132]
26338         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
26339
26340 2014-10-21  Roland McGrath  <roland@hack.frob.com>
26341
26342         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
26343
26344 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26345
26346         * io/fts.c (dirent_not_directory): New function.
26347         (fts_build): Call it.
26348
26349 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26350
26351         * nptl/version.c (__nptl_main): Use normal __write rather than
26352         INTERNAL_SYSCALL.
26353         (banner): Update copyright years.
26354
26355         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
26356         gettimeofday.
26357         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
26358         * nptl/pthread_cond_timedwait.c: Likewise.
26359         * nptl/pthread_mutex_timedlock.c: Likewise.
26360         * nptl/sem_timedwait.c: Likewise.
26361
26362         * sysdeps/nptl/bits/libc-lock.h
26363         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
26364         (__libc_lock_init_recursive): Return void, not 0.
26365         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
26366         (__libc_rwlock_init): Likewise.
26367         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
26368
26369 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26370
26371         [BZ #15215]
26372         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
26373         (__pthread_once_slow): ... here.
26374         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
26375         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
26376
26377 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26378
26379         [BZ #15215]
26380         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
26381         __PTHREAD_ONCE_FORK_GEN_INCR): New.
26382         * sysdeps/nptl/fork.c (__libc_fork): Use them.
26383         * nptl/pthread_once.c (__pthread_once): Likewise.
26384         Update comments.
26385
26386 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
26387
26388         [BZ #14138]
26389         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
26390         name.
26391         (writev): Use __libc_writev as strong name.
26392         * sysdeps/unix/sysv/linux/readv.c: Remove file.
26393         * sysdeps/unix/sysv/linux/writev.c: Likewise.
26394
26395 2014-10-17  Roland McGrath  <roland@hack.frob.com>
26396
26397         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
26398
26399         * sysdeps/i386/nptl/tls.h
26400         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
26401         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
26402         New macros.
26403         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
26404         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
26405         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
26406         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
26407         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
26408         Call CHECK_THREAD_SYSINFO instead of doing an assert.
26409
26410         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
26411         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
26412         on [__NR_futex].
26413         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
26414         broken out of ...
26415         (__pthread_mutex_init): ... here.  Call it.
26416         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
26417         Conditionalize PI cases on [__NR_futex].
26418         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
26419         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
26420         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
26421
26422         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
26423         conditional on [SIGSETXID].
26424         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
26425         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
26426         is defined.  Likewise for SIGSETXID.
26427         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
26428         Conditionalize definitions on [SIGSETXID].
26429         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
26430         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
26431         unblocking on [SIGCANCEL].
26432
26433         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
26434         [__NR_set_robust_list].
26435
26436 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
26437
26438         * string/strcoll_l.c (get_next_seq): Fix up formatting.
26439         (do_compare): Likewise.
26440
26441 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
26442
26443         [BZ #15884]
26444         * string/strcoll_l.c: Don't include stdio.h.
26445         (coll_seq): Remove members idxarr and rulearr.
26446         (get_next_seq_cached): Remove function.
26447         (get_next_seq): Likewise.
26448         (get_next_seq_nocache): Rename to get_next_seq.
26449         (do_compare): Remove function.
26450         (do_compare_nocache): Rename to do_compare.
26451         (STRCOLL): Remove weight and rules cache.
26452
26453 2014-10-16  Roland McGrath  <roland@hack.frob.com>
26454
26455         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
26456         * sysdeps/arm/sfp-machine.h: ... to here.
26457         * sysdeps/arm/Implies: Remove arm/soft-fp.
26458
26459 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
26460
26461         * conform/data/sys/utsname.h-data (*_t): Allow.
26462         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
26463         [POSIX] (WEXITED): Do not expect constant.
26464         [POSIX] (WSTOPPED): Likewise.
26465         [POSIX] (WNOHANG): Likewise.
26466         [POSIX] (WNOWAIT): Likewise.
26467         [POSIX] (siginfo_t): Do not expect type or elements.
26468         [POSIX] (pid_t): Do not expect type.
26469         [POSIX] (signal.h): Do not allow header.
26470         [POSIX] (sys/resource.h): Likewise.
26471         [POSIX] (si_*): Do not allow pattern.
26472         [POSIX] (W*): Likewise.
26473         [POSIX] (P_*): Likewise.
26474         [POSIX] (BUS_*): Likewise.
26475         [POSIX] (CLD_*): Likewise.
26476         [POSIX] (FPE_*): Likewise.
26477         [POSIX] (ILL_*): Likewise.
26478         [POSIX] (POLL_*): Likewise.
26479         [POSIX] (SEGV_*): Likewise.
26480         [POSIX] (SI_*): Likewise.
26481         [POSIX] (TRAP_*): Likewise.
26482         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
26483         variable.
26484
26485 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26486
26487         [BZ #12926]
26488         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
26489         infinite loop when __recvmsg returns 0.
26490
26491 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
26492
26493         * CANCEL-FCT-WAIVE: Remove file.
26494         * CANCEL-FILE-WAIVE: Likewise.
26495
26496         [BZ #14132]
26497         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
26498         instead of INTVARDEF.
26499         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26500         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
26501         rtld_hidden_data_def instead of INTVARDEF.
26502         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26503         * elf/dl-deps.c (expand_dst): Likewise.
26504         * elf/dl-load.c (_dl_dst_count): Likewise.
26505         (_dl_dst_substitute): Likewise.
26506         (decompose_rpath): Likewise.
26507         (_dl_init_paths): Likewise.
26508         (open_path): Likewise.
26509         (_dl_map_object): Likewise.
26510         * elf/rtld.c (dl_main): Likewise.
26511         (process_dl_audit): Likewise.
26512         (process_envvars): Likewise.
26513         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
26514         Remove declaration.
26515         (__libc_enable_secure): Use rtld_hidden_proto.
26516
26517 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26518
26519         * elf/dl-load.c
26520         (add_path): New function broken out of _dl_rtld_di_serinfo.
26521         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
26522
26523 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26524
26525         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
26526         parentheses around macro arguments.
26527         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
26528         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
26529         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
26530         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
26531         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
26532         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26533         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26534         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
26535         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
26536         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
26537         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
26538         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
26539         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
26540         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
26541         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
26542         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
26543         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
26544         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
26545         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
26546         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
26547         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
26548         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
26549         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
26550         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26551         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26552         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
26553         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
26554         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
26555         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
26556         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
26557         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
26558         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
26559         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
26560         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
26561         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
26562         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
26563         Likewise.
26564         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
26565         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26566         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26567         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
26568         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
26569         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
26570         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
26571         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
26572         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
26573         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
26574         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
26575         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
26576         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
26577         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
26578         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
26579         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26580         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26581         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
26582         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
26583         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
26584         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
26585         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
26586         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
26587         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
26588         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
26589         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
26590         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
26591         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
26592         (_FP_FRAC_SRS_1): Likewise.
26593         (_FP_FRAC_CLZ_1): Likewise.
26594         (_FP_MUL_MEAT_1_imm): Likewise.
26595         (_FP_MUL_MEAT_1_wide): Likewise.
26596         (_FP_MUL_MEAT_1_hard): Likewise.
26597         (_FP_SQRT_MEAT_1): Likewise.
26598         (_FP_FRAC_ASSEMBLE_1): Likewise.
26599         (_FP_FRAC_DISASSEMBLE_1): Likewise.
26600         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
26601         (__FP_CLZ_2): Likewise.
26602         (_FP_MUL_MEAT_2_wide): Likewise.
26603         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
26604         (_FP_MUL_MEAT_2_gmp): Likewise.
26605         (_FP_MUL_MEAT_2_120_240_double): Likewise.
26606         (_FP_SQRT_MEAT_2): Likewise.
26607         (_FP_FRAC_ASSEMBLE_2): Likewise.
26608         (_FP_FRAC_DISASSEMBLE_2): Likewise.
26609         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
26610         (_FP_FRAC_CLZ_4): Likewise.
26611         (_FP_MUL_MEAT_4_wide): Likewise.
26612         (_FP_MUL_MEAT_4_gmp): Likewise.
26613         (_FP_SQRT_MEAT_4): Likewise.
26614         (_FP_FRAC_ASSEMBLE_4): Likewise.
26615         (_FP_FRAC_DISASSEMBLE_4): Likewise.
26616         * soft-fp/op-common.h (_FP_CMP): Likewise.
26617         (_FP_CMP_EQ): Likewise.
26618         (_FP_CMP_UNORD): Likewise.
26619         (_FP_TO_INT): Likewise.
26620         (_FP_FROM_INT): Likewise.
26621         [!__FP_CLZ] (__FP_CLZ): Likewise.
26622         (_FP_DIV_HELP_imm): Likewise.
26623         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26624         Likewise.
26625         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26626         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26627         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26628         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26629         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26630         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26631         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26632         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26633         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26634         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26635         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26636         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26637         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26638         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26639         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26640         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26641         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26642         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26643         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26644         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26645         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26646         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26647         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26648         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26649         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26650         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26651         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26652         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26653         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26654         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26655         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26656         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26657         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26658         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26659         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26660         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26661         (FP_UNPACK_RAW_SP): Likewise.
26662         (FP_PACK_RAW_S): Likewise.
26663         (FP_PACK_RAW_SP): Likewise.
26664         (FP_UNPACK_S): Likewise.
26665         (FP_UNPACK_SP): Likewise.
26666         (FP_UNPACK_SEMIRAW_S): Likewise.
26667         (FP_UNPACK_SEMIRAW_SP): Likewise.
26668         (FP_PACK_S): Likewise.
26669         (FP_PACK_SP): Likewise.
26670         (FP_PACK_SEMIRAW_S): Likewise.
26671         (FP_PACK_SEMIRAW_SP): Likewise.
26672         (_FP_SQRT_MEAT_S): Likewise.
26673         (FP_CMP_S): Likewise.
26674         (FP_CMP_EQ_S): Likewise.
26675         (FP_CMP_UNORD_S): Likewise.
26676         (FP_TO_INT_S): Likewise.
26677         (FP_FROM_INT_S): Likewise.
26678
26679         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26680
26681         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26682         (FP_EX_INVALID_IMZ): Likewise.
26683         (FP_EX_INVALID_IMZ_FMA): Likewise.
26684         (FP_EX_INVALID_ISI): Likewise.
26685         (FP_EX_INVALID_ZDZ): Likewise.
26686         (FP_EX_INVALID_IDI): Likewise.
26687         (FP_EX_INVALID_SQRT): Likewise.
26688         (FP_EX_INVALID_CVI): Likewise.
26689         (FP_EX_INVALID_VC): Likewise.
26690         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26691         "invalid" exceptions.
26692         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26693         (_FP_ADD_INTERNAL): Likewise.
26694         (_FP_MUL): Likewise.
26695         (_FP_FMA): Likewise.
26696         (_FP_DIV): Likewise.
26697         (_FP_CMP_CHECK_NAN): Likewise.
26698         (_FP_SQRT): Likewise.
26699         (_FP_TO_INT): Likewise.
26700         (FP_EXTEND): Likewise.
26701
26702 2014-10-09  Allan McRae  <allan@archlinux.org>
26703
26704         * po/fr.po: Update French translation from translation project.
26705
26706 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26707
26708         [BZ #14132]
26709         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26710         of INTDEF.
26711         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26712         (__cxa_atexit): Use libc_hidden_proto.
26713         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26714
26715         [BZ #14132]
26716         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26717         declaration.
26718         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26719         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26720         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26721         [!_ISOMAC] (__iswctype_internal): Likewise.
26722         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26723         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26724         alias.
26725         (fcntl): Remove __fcntl_internal alias.
26726         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26727         __connect_internal alias.
26728         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26729         Likewise.
26730
26731         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26732         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26733         FP_DENORM_ZERO.
26734         (_FP_CHECK_FLUSH_ZERO): New macro.
26735         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26736         (_FP_CMP): Likewise.
26737         (_FP_CMP_EQ): Likewise.
26738         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26739         FP_DENORM_ZERO.
26740         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26741         (FP_TRUNC): Likewise.
26742
26743         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26744         treated as invalid conversion, not as normal exponent.
26745
26746         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26747         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26748         (_FP_CMP_EQ): Likewise.
26749         (_FP_CMP_UNORD): Likewise.
26750         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26751         (FP_CMP_EQ_D): Likewise.
26752         (FP_CMP_UNORD_D): Likewise.
26753         * soft-fp/extended.h (FP_CMP_E): Likewise.
26754         (FP_CMP_EQ_E): Likewise.
26755         (FP_CMP_UNORD_E): Likewise.
26756         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26757         (FP_CMP_EQ_Q): Likewise.
26758         (FP_CMP_UNORD_Q): Likewise.
26759         * soft-fp/single.h (FP_CMP_S): Likewise.
26760         (FP_CMP_EQ_S): Likewise.
26761         (FP_CMP_UNORD_S): Likewise.
26762         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26763         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26764         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26765         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26766         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26767         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26768         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26769         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26770         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26771         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26772         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26773         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26774         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26775         to FP_CMP_Q.
26776         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26777         FP_CMP_Q.
26778         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26779         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26780         FP_CMP_EQ_Q.
26781         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26782         FP_CMP_Q.
26783         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26784         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26785         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26786         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26787         FP_CMP_EQ_Q.
26788         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26789         FP_CMP_Q.
26790         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26791         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26792         FP_CMP_EQ_Q.
26793         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26794         FP_CMP_Q.
26795         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26796         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26797         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26798         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26799         FP_CMP_EQ_Q.
26800
26801         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26802         a subnormal result, set the underflow exception if trapping on
26803         underflow is enabled.
26804         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26805         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26806         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26807         redefine to 0.
26808         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26809         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26810         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26811         * soft-fp/extendxftf2.c (__extendxftf2): Use
26812         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26813
26814         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26815         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26816         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26817         FP_HANDLE_EXCEPTIONS.
26818         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26819         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26820         FP_HANDLE_EXCEPTIONS.
26821         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26822         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26823         FP_HANDLE_EXCEPTIONS.
26824         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26825         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26826         FP_HANDLE_EXCEPTIONS.
26827
26828 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26829
26830         [BZ #14132]
26831         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26832         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26833         use INTUSE.
26834         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26835         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26836         Remove alias.
26837         (__adjtimex): Define using libc_hidden_ver.
26838         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26839         Remove declaration.
26840         (ntp_gettime): Call __adjtimex directly.
26841         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26842         Remove declaration.
26843         (ntp_gettimex): Call __adjtimex directly.
26844         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26845         __adjtimex_internal alias.
26846
26847 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26848
26849         [BZ #17460]
26850         * nscd/nscd.c (more_help): Rewrite list of tables collection
26851         using xstrdup and asprintf.
26852
26853         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26854
26855 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26856             Roland McGrath  <roland@hack.frob.com>
26857
26858         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26859         (do_lookup_unique): ... local function 'enter' here; update callers.
26860
26861 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26862
26863         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26864         compat_symbol calls on [SHARED].
26865         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26866         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26867         Remove.
26868         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26869         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26870         (oldsetrlimit): Remove.
26871         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26873         (lchown): New syscall entry.
26874         (oldsetrlimit): Remove.
26875         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26876         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26877         (oldsetrlimit): Remove.
26878         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26879
26880         [BZ #14138]
26881         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26882         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26883         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26884         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26885         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26886         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26887         (fchown): Likewise.
26888         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26889         (fchown): Likewise.
26890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26891         Likewise.
26892
26893 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26894
26895         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26896         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26897         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26898         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26899         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26900         Likewise.
26901         (__old_sem_post): Likewise.
26902
26903 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26904
26905         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26906         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26907         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26908         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26909         Use INLINE_VSYSCALL macro.
26910         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26911         __vdso_clock_gettime.
26912         * sysdeps/unix/sysv/linux/tile/init-first.c
26913         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26914         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26915         __vdso_clock_gettime.
26916
26917         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26918         to set up frame more cleanly.
26919
26920         * sysdeps/tile/memcmp.c: New file.
26921
26922         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26923
26924         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26925         * sysdeps/tile/tilegx/strcasestr.c: New file.
26926         * sysdeps/tile/tilegx/strnlen.c: New file.
26927         * sysdeps/tile/tilegx/strstr.c: New file.
26928
26929         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26930
26931 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26932
26933         * nptl/tst-setuid3.c: Write errors to stdout.
26934
26935 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26936
26937         * elf/dl-deps.c
26938         (preload): New functions broken out of _dl_map_object_deps.
26939         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26940
26941 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26942
26943         [BZ #14138]
26944         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26945         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26946
26947 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26948
26949         * sysdeps/mips/strcmp.S: New.
26950
26951 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26952
26953         [BZ #14138]
26954         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26955         (linkat): Likewise.
26956         (mkdirat): Likewise.
26957         (readlinkat): Likewise.
26958         (renameat): Likewise.
26959         (symlinkat): Likewise.
26960         (unlinkat): Likewise.
26961         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26962         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26963         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26964         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26965         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26966         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26967         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26968
26969 2014-09-30  Will Newton  <will.newton@linaro.org>
26970
26971         * math/math.h: Define long double math functions if
26972         _LIBC_TEST is defined.
26973         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26974
26975         * localedata/Makefile: Move assignment to tests-special
26976         into an ifdef testing run-built-tests.
26977         * timezone/Makefile: Likewise.
26978
26979 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26980
26981         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26982         with $(BASH) not $(SHELL).
26983
26984 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26985             Matthew LeGendre  <legendre1@llnl.gov>
26986
26987         [BZ #17411]
26988         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26989         l_reloc_result.
26990
26991 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26992
26993         * stdio-common/printf_fp.c
26994         (hack_digit): New function, broken out of ...
26995         (__printf_fp): ... local function here.  Update call sites.
26996         hack_digit now takes an additional parameter that is a pointer
26997         to a struct of the referenced locals.  Those locals moved inside
26998         the struct and references updated.
26999
27000 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
27001
27002         * aclocal.m4: Require autoconf 2.69.
27003         * configure: Regenerated.
27004         * sysdeps/aarch64/configure: Likewise.
27005         * sysdeps/alpha/configure: Likewise.
27006         * sysdeps/arm/armv7/configure: Likewise.
27007         * sysdeps/arm/configure: Likewise.
27008         * sysdeps/ia64/configure: Likewise.
27009         * sysdeps/mach/configure: Likewise.
27010         * sysdeps/mips/configure: Likewise.
27011         * sysdeps/s390/configure: Likewise.
27012         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
27013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
27014
27015         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
27016         file.
27017         * sysdeps/ia64/configure.ac: Likewise.
27018
27019 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
27020
27021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
27022         specify symbol version for ld.so.  Do not include entry for
27023         libpthread.
27024         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27025         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27026         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27027
27028         [BZ #14171]
27029         * Makeconfig [$(build-shared) = yes]
27030         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
27031         makefiles.
27032         [$(build-shared) = yes && $(soversions.mk-done) = t]
27033         ($(common-objpfx)gnu/lib-names.h): Remove rule.
27034         [$(build-shared) = yes && $(soversions.mk-done) = t]
27035         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
27036         to Makerules.
27037         [$(build-shared) = yes && $(soversions.mk-done) = t]
27038         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
27039         here.
27040         [$(build-shared) = yes && $(soversions.mk-done) = t]
27041         (common-generated): Don't append gnu/lib-names.h and
27042         gnu/lib-names.stmp here.
27043         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
27044         (lib-names-h-abi): New variable.
27045         [$(build-shared) = yes && $(soversions.mk-done) = t]
27046         (lib-names-stmp-abi): Likewise.
27047         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27048         abi-variants] (before-compile): Append
27049         $(common-objpfx)$(lib-names-h-abi).
27050         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27051         abi-variants] (common-generated): Append gnu/lib-names.h.
27052         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27053         abi-variants] (install-others-nosubdir): Depend on
27054         $(inst_includedir)/$(lib-names-h-abi).
27055         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27056         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
27057         [$(build-shared) = yes && $(soversions.mk-done) = t]
27058         ($(common-objpfx)$(lib-names-h-abi)): New rule.
27059         [$(build-shared) = yes && $(soversions.mk-done) = t]
27060         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
27061         [$(build-shared) = yes && $(soversions.mk-done) = t]
27062         (common-generated): Append $(lib-names-h-abi) and
27063         $(lib-names-stmp-abi).
27064         * scripts/lib-names.awk: Do not handle multi being set.
27065         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
27066         Remove variable.
27067         (abi-lp64_be-ld-soname): Likewise.
27068         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
27069         Likewise.
27070         (abi-hard-ld-soname): Likewise.
27071         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
27072         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
27073         Remove variable.
27074         (abi-o32_hard-ld-soname): Likewise.
27075         (abi-o32_soft_2008-ld-soname): Likewise.
27076         (abi-o32_hard_2008-ld-soname): Likewise.
27077         (abi-n32_soft-ld-soname): Likewise.
27078         (abi-n32_hard-ld-soname): Likewise.
27079         (abi-n32_soft_2008-ld-soname): Likewise.
27080         (abi-n32_hard_2008-ld-soname): Likewise.
27081         (abi-n64_soft-ld-soname): Likewise.
27082         (abi-n64_hard-ld-soname): Likewise.
27083         (abi-n64_soft_2008-ld-soname): Likewise.
27084         (abi-n64_hard_2008-ld-soname): Likewise.
27085         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
27086         Likewise.
27087         (abi-64-v2-ld-soname): Likewise.
27088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
27089         ld.so entries.
27090         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
27091         variable.
27092         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
27093         entry.
27094         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
27095         variable.
27096         (abi-64-ld-soname): Likewise.
27097         (abi-x32-ld-soname): Likewise.
27098         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
27099         entry.
27100         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27101
27102 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
27103
27104         [BZ #14138]
27105         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
27106         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
27107         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
27108         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
27109         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
27110         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
27111         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
27112         syscall entry for GLIBC_2.2 symbol version.
27113         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
27114         Likewise.
27115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
27116         (setrlimit): Likewise.
27117         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
27118         Likewise.
27119
27120 2014-09-23  Will Newton  <will.newton@linaro.org>
27121
27122         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
27123         _LINUX_ARM_SYSDEP_H include guard too.
27124         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
27125         define.
27126
27127 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
27128
27129         * sysdeps/unix/sysv/linux/eventfd.c:
27130         Make first argument unsigned.
27131         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
27132         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
27133
27134 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
27135
27136         [BZ #16852]
27137         * socket/recvmmsg.c (recvmmsg): Drop const argument.
27138         * socket/sys/socket.h: Likewise.
27139         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
27140
27141 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27142
27143         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
27144
27145 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
27146
27147         * time/tst-ftime.c: New test.
27148         * time/Makefile (tests): Add tst-ftime.
27149
27150 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
27151
27152         * soft-fp/extended.h: Fix comment formatting.
27153         * soft-fp/op-1.h: Likewise.
27154         * soft-fp/op-2.h: Likewise.
27155         * soft-fp/op-4.h: Likewise.
27156         * soft-fp/op-8.h: Likewise.
27157         * soft-fp/op-common.h: Likewise.
27158         * soft-fp/soft-fp.h: Likewise.
27159
27160         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
27161
27162 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
27163
27164         [BZ #6652]
27165         * Makeconfig (soversions-default-setname): Remove variable.
27166         ($(common-objpfx)soversions.i): Don't pass default_setname to
27167         soversions.awk.
27168         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
27169         oldest_abi to abi-versions.awk.
27170         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
27171         * config.make.in (oldest-abi): Remove variable.
27172         * configure.ac (--enable-oldest-abi): Remove configure option.
27173         * configure: Regenerated.
27174         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
27175         text.
27176         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
27177         * scripts/soversions.awk: Do not handle default_setname variable.
27178         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
27179         variable.
27180         * sysdeps/mach/hurd/configure: Regenerated.
27181         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
27182         variable.
27183         * sysdeps/unix/sysv/linux/configure: Regenerated.
27184
27185 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27186
27187         * elf/Makefile (CFLAGS-interp.c): Remove.
27188         ($(elf-objpfx)runtime-linker.h): Generate header with linker
27189         path string.
27190         * elf/interp.c: Include generated runtime-linker.h
27191
27192         * Makerules (lib%.so): Don't include $(+interp) in
27193         prerequisites.
27194         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
27195         * dlfcn/eval.c: Remove file.
27196
27197         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
27198         macros.
27199
27200         [BZ #17266]
27201         * misc/sys/cdefs.h: Define __extern_always_inline for clang
27202         4.2 and newer.
27203
27204         [BZ #17370]
27205         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
27206
27207 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27208             Jakub Jelinek  <jakub@redhat.com>
27209
27210         [BZ #17266]
27211         * libio/stdio.h: Check definition of __fortify_function
27212         instead of __extern_always_inline to include bits/stdio2.h.
27213         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
27214         check if __extern_always_inline is defined.
27215         [__USE_MISC || __USE_XOPEN]: Likewise.
27216         [__USE_ISOC99] Likewise.
27217         * misc/sys/cdefs.h (__fortify_function): Define only if
27218         __extern_always_inline is defined.
27219         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
27220         __extern_always_inline and __extern_inline only for g++-4.3
27221         and newer or a compatible gcc.
27222
27223 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
27224
27225         [BZ #17371]
27226         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
27227         last change to handle zero prefix length.
27228
27229 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
27230
27231         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
27232         _SC_REGEX_VERSION.
27233
27234         * posix/getconf.c (vars): Add _POSIX_IPV6 and
27235         _POSIX_RAW_SOCKETS.
27236
27237 2014-09-13  Allan McRae  <allan@archlinux.org>
27238
27239         * po/ru.po: Update Russian translation from translation project.
27240
27241 2014-09-12  Roland McGrath  <roland@hack.frob.com>
27242
27243         * locale/programs/locale.c (show_locale_vars): Inline local function
27244         into its sole call site.  Clean up some style nits.
27245         (print_item): New function, broken out of ...
27246         (show_info): ... local function here.  Clean up style nits.
27247
27248         * locale/programs/ld-ctype.c (set_one_default): New function, broken
27249         out of ...
27250         (set_class_defaults): ... local function set_default here.
27251         Define set_default as a macro locally to pass constant parameters.
27252         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
27253         rather than a shared local.
27254
27255         * stdlib/rpmatch.c (try): New function, broken out of ...
27256         (rpmatch): ... local function here.  Also, prototypify definition.
27257
27258 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
27259
27260         * scripts/soversions.awk: Do not handle configuration names.
27261         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
27262         vendor and os variables to soversions.awk.
27263         * configure.ac: Do not modify gnu-* host_os.
27264         * configure: Regenerated
27265         * shlib-versions: Remove first column with configuration names.
27266         * nptl/shlib-versions: Likewise.
27267         * nptl_db/shlib-versions: Likewise.
27268         * sysdeps/hppa/shlib-versions: Likewise.
27269         * sysdeps/m68k/shlib-versions: Likewise.
27270         * sysdeps/mach/hurd/shlib-versions: Likewise.
27271         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
27272         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
27273         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
27274         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
27275         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
27276         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
27277         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
27278         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
27279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27280         Likewise.
27281         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27282         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27283         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27284         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27285         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27286         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
27287         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27288         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27289
27290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
27291         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
27292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27293         Regenerated.
27294         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
27295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27296         Condition symbol version definitions on [HAVE_ELFV2_ABI].
27297
27298         * shlib-versions: Remove OS-specific entries.  Moved to files in
27299         sysdeps.
27300         * sysdeps/mach/hurd/shlib-versions: New file.
27301         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27302
27303         * nptl/shlib-versions: Remove architecture-specific entries.
27304         Moved to files in sysdeps.
27305         * shlib-versions: Likewise.
27306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
27307         file.
27308         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27309         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27310         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27311         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27312
27313         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
27314         (UDP_NO_CHECK6_RX): Likewise.
27315
27316 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27317
27318         * sysdeps/posix/sysconf.c (__sysconf): Spell
27319         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
27320
27321 2014-08-12  Florian Weimer  <fweimer@redhat.com>
27322
27323         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
27324         loading.
27325         * iconv/Versions (__gconv_transliterate): Export for use from
27326         gconv modules.
27327         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
27328         (struct __gconv_trans_data, __gconv_trans_fct,
27329         __gconv_trans_context_fct, __gconv_trans_query_fct,
27330         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
27331         definitions.
27332         (struct __gconv_step_data): Remove __trans member.
27333         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
27334         longer hidden.  Remove unused trans_data argument.
27335         * iconv/gconv_int.h (struct trans_struct): Remove definition.
27336         (__gconv_translit_find): Remove declaration.
27337         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
27338         prototype.
27339         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
27340         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
27341         trans_data argument.  Add hidden definition.
27342         (__gconv_translit_find): Remove.
27343         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
27344         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
27345         * iconv/skeleton.c: Remove transliteration initialization.
27346         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
27347         __gconv_step_data initialization.
27348         * libio/iofwide.c (__libio_translit_): Remove.
27349         (_IO_fwide): Adjust struct __gconv_step_data initialization.
27350         * wcsmbs/btowc.c (__btowc): Likewise.
27351         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
27352         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
27353         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
27354         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
27355         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
27356         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
27357         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
27358         * wcsmbs/wctob.c (wctob): Likewise.
27359
27360 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27361
27362         [BZ #16194]
27363         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
27364         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
27365         register usage.
27366         * sysdeps/x86/Makefile: Adjust.
27367
27368 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27369             Roland McGrath  <roland@hack.frob.com>
27370
27371         * locale/weight.h: Add include guard.
27372         (findidx): Make static rather than auto; take new parameters
27373         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
27374         * locale/weightwc.h: Likewise.
27375         * posix/fnmatch_loop.c
27376         (FCT): Change type of EXTRA from int32_t to wint_t.
27377         Don't include either header inside the function.
27378         Call FINDIDX rather than findidx, and pass new arguments.
27379         #undef FINDIDX at the end of the file.
27380         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
27381         FINDIDX before including fnmatch_loop.c for the non-wide version.
27382         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
27383         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
27384         for the wide version.
27385         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
27386         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
27387         Pass new arguments to findidx.
27388         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
27389         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
27390         Don't #include it inside the function.  Pass new arguments to findidx.
27391         * posix/regex_internal.h
27392         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
27393         (re_string_elem_size_at): Don't #include it inside the function.
27394         Pass new arguments to findidx.
27395         * string/strcoll_l.c: #include WEIGHT_H at top level.
27396         (get_next_seq): Don't #include it inside the function.
27397         Pass new arguments to findidx.
27398         (get_next_seq_nocache): Likewise.
27399         * string/strxfrm_l.c: #include WEIGHT_H at top level.
27400         (STRXFRM): Don't #include it inside the function.
27401         Pass new arguments to findidx.
27402
27403 2014-09-11  Florian Weimer  <fweimer@redhat.com>
27404
27405         [BZ #17344]
27406         * malloc/malloc.c (unlink): Turn asserts into a call to
27407         malloc_printerr.
27408
27409 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
27410
27411         [BZ #17370]
27412         * libio/wfileops (do_ftell_wide): Free OUT.
27413
27414 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
27415
27416         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
27417
27418 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27419
27420         [BZ #17363]
27421         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
27422         group if the current group is empty.
27423
27424 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27425
27426         * benchtests/bench-memset.c (test_main): Add more test from size
27427         from 32 to 512 bytes.
27428         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27429         Add POWER8 memset object.
27430         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27431         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
27432         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
27433         implementation.
27434         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
27435         Likewise.
27436         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
27437         multiarch POWER8 memset optimization.
27438         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
27439         POWER8 memset optimization.
27440
27441         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27442         Remove bzero multiarch objects.
27443         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
27444         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
27445         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
27446         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
27447         Remove define.
27448         [__bzero]: Redefine to specific name.
27449         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
27450         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
27451         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
27452         define.
27453         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
27454         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
27455
27456 2014-09-10  Florian Weimer  <fweimer@redhat.com>
27457
27458         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
27459         warnings into errors.
27460
27461         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
27462         __cxa_thread_atexit_impl prototype.
27463
27464 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27465
27466         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
27467         Fix capitalization of error message.
27468
27469 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27470
27471         * sysdeps/mips/preconfigure: Modify ABI tests.
27472
27473 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
27474
27475         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
27476
27477 2014-09-07  Roland McGrath  <roland@hack.frob.com>
27478             Carlos O'Donell  <carlos@systemhalted.org>
27479
27480         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
27481         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
27482         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
27483         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
27484         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
27485         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
27486         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
27487         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
27488         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
27489         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
27490         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
27491         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
27492         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
27493         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
27494         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
27495         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
27496         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
27497         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
27498         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
27499         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
27500         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
27501         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
27502         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
27503         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
27504         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
27505         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
27506         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
27507         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
27508         Deconditionalize the code that was previously under [RESET_PID].
27509         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
27510         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
27511         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
27512         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
27513         include sysdep.h.
27514
27515 2014-09-08  Allan McRae  <allan@archlinux.org>
27516
27517         * version.h (RELEASE): Set to "development".
27518         (VERSION): Set to "2.20.90"
27519
27520 2014-09-07  Allan McRae  <allan@archlinux.org
27521
27522         * version.h (RELEASE): Set to "stable".
27523         (VERSION): Set to "2.20"
27524         * include/features.h (__GLIBC_MINOR__): Set to 20.
27525
27526         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
27527         Liebler.
27528
27529         * po/ko.po: Update Korean translation from translation project.
27530
27531 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
27532
27533         [BZ #17354]
27534         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
27535         macro for handling signed relocations.
27536
27537 2014-09-03  Florian Weimer  <fweimer@redhat.com>
27538
27539         [BZ #17325]
27540         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
27541         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
27542         assert.
27543         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
27544         * iconvdata/ibm935.c (BODY): Likewise.
27545         * iconvdata/ibm937.c (BODY): Likewise.
27546         * iconvdata/ibm939.c (BODY): Likewise.
27547         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
27548         assert.
27549         * iconvdata/Makefile (iconv-test.out): Pass module list to test
27550         script.
27551         * iconvdata/run-iconv-test.sh: New test loop for checking for
27552         decoder crashers.
27553
27554 2014-09-02  Khem Raj  <raj.khem@gmail.com>
27555
27556         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
27557         libm_hidden_ver.
27558
27559 2014-09-01  Allan McRae  <allan@archlinux.org>
27560
27561         * po/eo.po: Update Esperanto translation from translation project.
27562
27563         * po/ca.po: Update Catalan translation from translation project.
27564
27565 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27566
27567         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
27568         __proc_dostop call.
27569
27570 2014-08-27  Mark Wielaard  <mjw@redhat.com>
27571
27572         [BZ #17319]
27573         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
27574         to call set_thread_area instead of hand written asm.
27575         (__NR_set_thread_area): Removed define.
27576         (TLS_FLAG_WRITABLE): Likewise.
27577         (__ASSUME_SET_THREAD_AREA): Remove check.
27578         (TLS_EBX_ARG): Remove define.
27579         (TLS_LOAD_EBX): Likewise.
27580
27581 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27582
27583         Simplify atomicity of socket creation in bind.
27584
27585         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
27586         looking up the name after linking the file.
27587
27588 2014-08-27  Allan McRae  <allan@archlinux.org>
27589
27590         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27591
27592 2014-08-26  Florian Weimer  <fweimer@redhat.com>
27593
27594         [BZ #17187]
27595         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
27596         trans_compare, open_translit, __gconv_translit_find):
27597         Remove module loading code.
27598
27599 2014-08-26  Allan McRae  <allan@archlinux.org>
27600
27601         * po/vi.po: Update Vietnamese translation from translation project.
27602
27603         * po/uk.po: Update Ukrainian translation from translation project.
27604
27605         * po/fr.po: Update French translation from translation project.
27606
27607         * po/ru.po: Update Russian translation from translation project.
27608
27609         * po/pl.po: Update Polish translation from translation project.
27610
27611         * po/cs.po: Update Czech translation from translation project.
27612
27613         * po/de.po: Update German translation from translation project.
27614
27615         * po/bg.po: Update Bulgarian translation from translation project.
27616
27617         * po/sv.po: Update Sweedish translation from translation project.
27618
27619         * po/nl.po: Update Dutch translation from translation project.
27620
27621         * po/es.po: Update Spanish translation from translation project.
27622
27623 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27624
27625         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27626
27627         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27628         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27629         (CPPFLAGS-iconvconfig): Likewise.
27630         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27631
27632         * include/libc-symbols.h: Remove unnecessary check for
27633         NOT_IN_libc.
27634         * nptl/pthreadP.h: Likewise.
27635         * sysdeps/aarch64/setjmp.S: Likewise.
27636         * sysdeps/alpha/setjmp.S: Likewise.
27637         * sysdeps/arm/sysdep.h: Likewise.
27638         * sysdeps/i386/setjmp.S: Likewise.
27639         * sysdeps/m68k/setjmp.c: Likewise.
27640         * sysdeps/posix/getcwd.c: Likewise.
27641         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27642         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27643         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27644         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27645         * sysdeps/sh/sh3/setjmp.S: Likewise.
27646         * sysdeps/sh/sh4/setjmp.S: Likewise.
27647         * sysdeps/unix/alpha/sysdep.h: Likewise.
27648         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27649         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27650         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27651         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27654         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27655         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27656         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27657         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27658         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27659         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27660         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27661         * sysdeps/x86_64/setjmp.S: Likewise.
27662
27663 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27664
27665         [BZ #17263]
27666         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27667         <stdint.h>.
27668         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27669         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27670
27671 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27672
27673         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27674
27675         [BZ #17262]
27676         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27677         and __x86_64__ when disabling x87 inline functions.
27678
27679 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27680
27681         [BZ #17259]
27682         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27683         asm statement with __cpuid_count.
27684
27685 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27686
27687         * configure.ac: Change __ehdr_start code to dereference the struct.
27688         Run readelf on the output to look for relocations.
27689         * configure: Regenerated.
27690
27691 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27692
27693         [BZ #17261]
27694         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27695         value to 0.
27696         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27697
27698 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27699
27700         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27701
27702 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27703
27704         [BZ #16892]
27705         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27706         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27707
27708 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27709
27710         * malloc/malloc.c: Fix typo in comment.
27711
27712 2014-08-09  Allan McRae  <allan@archlinux.org>
27713
27714         * Regenerate libc.po.
27715
27716 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27717
27718         * intl/tst-gettext2.sh: Check every lang file for creation.
27719
27720 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27721
27722         * sysdeps/aarch64/fpu/math_private.h
27723         (libc_feholdsetround_noex_aarch64_ctx): New function.
27724
27725 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27726
27727         * sysdeps/arm/armv6/strcpy.S (strcpy):
27728         Fix performance issue in misaligned cases.
27729
27730 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27731
27732         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27733         Move definition from termios.h.
27734         (struct termio): Likewise.
27735         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27736         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27737         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27738         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27739         Likewise.
27740         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27741         Move definition to ioctl-types.h
27742         (struct termio): Likewise.
27743         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27744         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27745         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27746         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27747         Likewise.
27748
27749 2014-08-05  Richard Henderson  <rth@redhat.com>
27750
27751         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27752         exceptions.
27753         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27754         Add fraiseexcpt.
27755         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27756         Use __feraiseexcept.
27757         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27758         Protect libm symbols with IS_IN_libm.
27759
27760         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27761
27762 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27763
27764         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27765
27766 2014-08-04  Will Newton  <will.newton@linaro.org>
27767
27768         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27769         file.
27770
27771 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27772
27773         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27774         variants for each function.
27775
27776 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27777
27778         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27779         appended ...
27780         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27781         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27782         appended ...
27783         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27784         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27785         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27786         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27787         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27788         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27789         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27790         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27791         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27792         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27793         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27794         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27795         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27796         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27797         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27798         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27799         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27800         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27801         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27802         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27803         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27804         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27805         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27806         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27807         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27808         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27809         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27810         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27811         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27812         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27813         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27814         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27815         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27816         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27817         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27818         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27819         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27820         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27821         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27822         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27823         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27824         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27825         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27826         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27827         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27828         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27829         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27830         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27831         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27832         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27833         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27834         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27835         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27836         Update #include.
27837         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27838         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27839
27840 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27841
27842         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27843         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27844         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27845         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27846         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27847         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27848
27849 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27850
27851         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27852         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27853         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27854         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27855
27856 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27857
27858         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27859         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27860         (__libc_vfork): Define function under this name.
27861         (__vfork): Define as an alias.
27862         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27863         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27864
27865 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27866
27867         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27868         that was previously under [RESET_PID].
27869         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27870
27871 2014-08-04  Andreas Schwab  <schwab@suse.de>
27872
27873         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27874
27875 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27876
27877         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27878         (main): Likewise.
27879
27880 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27881
27882         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27883
27884 2014-08-01  Richard Henderon  <rth@redhat.com>
27885
27886         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27887         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27888         typo in exact zero test.
27889         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27890         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27891         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27892
27893 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27894
27895         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27896         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27897         * sysdeps/arm/sysdep.h: ... here.
27898         [!__ASSEMBLER__]: Include <stdint.h>.
27899
27900 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27901
27902         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27903         (HAVE_WCTYPE_H): Likewise.
27904         (HAVE_ISWCTYPE): Likewise.
27905         (ENABLE_NLS): Likewise.
27906         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27907         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27908
27909         * posix/regex_internal.c: Check if DEBUG is defined and is
27910         set.
27911
27912         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27913         (HAVE_MBSRTOWCS): Likewise.
27914         * posix/fnmatch.c: Include string.h unconditionally.
27915
27916 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27917
27918         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27919         reversal.
27920
27921 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27922
27923         * sysdeps/generic/safe-fatal.h: New file.
27924         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27925         * nptl/forward.c: Include it.
27926         (__pthread_unwind): Use __safe_fatal as default action, rather
27927         than a bogus use of INTERNAL_SYSCALL that could never work.
27928
27929         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27930         * configure.ac (libc_cv_builtin_trap): New test.
27931         * configure: Regenerated.
27932         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27933         (ABORT_INSTRUCTION): Define using __builtin_trap.
27934
27935         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27936         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27937         * sysdeps/nptl/nptl-signals.h: New file.
27938         * nptl/pthreadP.h: Include <nptl-signals.h>.
27939
27940 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27941
27942         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27943         (ONE_DIRECTION): Define.
27944         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27945         (ONE_DIRECTION): Define.
27946         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27947         (ONE_DIRECTION): Define.
27948
27949 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27950
27951         * sysdeps/s390/Makefile: Delete file.
27952         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27953         * sysdeps/s390/__longjmp.c: Delete file.
27954         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27955         Remove fields __flags and __reserved.
27956         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27957         and add versioning.
27958         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27959         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27960         * sysdeps/s390/rtld-setjmp.S: Likewise.
27961         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27962         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27963         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27964         * sysdeps/s390/s390-32/setjmp.S: ... here.
27965         Add versioning.
27966         (__sigsetjmp): Remove setting __flags field.
27967         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27968         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27969         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27970         * sysdeps/s390/s390-64/setjmp.S: ... here.
27971         Add versioning.
27972         (__sigsetjmp): Remove setting __flags field.
27973         * sysdeps/s390/setjmp.S: Delete file.
27974         * sysdeps/s390/sigjmp.c: Likewise.
27975         * sysdeps/s390/v1-longjmp.c: Likewise.
27976         * sysdeps/s390/v1-setjmp.h: Likewise.
27977         * sysdeps/s390/v1-sigjmp.c: Likewise.
27978         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27979         Remove v1-longjmp_chk.
27980         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27981         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27982         Include debug/longjmp_chk.c and add versioning.
27983         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27984         Include nptl/pt-longjmp.c and add versioning.
27985         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27986         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27987         Include __longjmp.c.
27988         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27989         Move to ...
27990         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27991         (__getcontext): Remove setting __flags field.
27992         Add versioning.
27993         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27994         Don't restore upper high grps.
27995         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27996         Likewise.
27997         (__swapcontext): Remove setting uc_flags field.
27998         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27999         Delete file.
28000         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
28001         Include __longjmp.c.
28002         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
28003         Move to ...
28004         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
28005         (__getcontext): Remove setting __flags field.
28006         Add versioning.
28007         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
28008         (__swapcontext): Remove setting uc_flags field.
28009         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
28010         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
28011         Remove fields uc_high_gprs and __reserved.
28012         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
28013         New file with reverted content.
28014         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
28015         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
28016         Regenerated.
28017         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
28018         Regenerated.
28019
28020 2014-07-31  Andreas Schwab  <schwab@suse.de>
28021
28022         * config.h.in (HAVE_IFUNC): Define to 0.
28023         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
28024         definedness.
28025
28026 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
28027
28028         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28029         memmove-avx-unaligned, memcpy-avx-unaligned and
28030         mempcpy-avx-unaligned.
28031         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28032         Add tests for AVX memcpy functions.
28033         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
28034         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
28035         memcpy_chk.
28036         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
28037         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
28038         memmove_chk.
28039         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
28040         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
28041         mempcpy_chk.
28042         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
28043         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
28044         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
28045
28046 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28047
28048         [BZ #17213]
28049         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
28050         powerpc64le.
28051
28052 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
28053
28054         [BZ #16839]
28055         * manual/llio.texi: Add section about open file description locks.
28056         * manual/examples/ofdlocks.c: Example of open file description
28057         lock usage.
28058         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
28059         F_OFD_SETLK, and F_OFD_SETLKW.
28060
28061 2014-07-23  Allan McRae  <allan@archlinux.org>
28062
28063         * po/es.po: Update Spanish translation from translation project.
28064
28065 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
28066
28067         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
28068
28069 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
28070
28071         [BZ #17078]
28072         * sysdeps/arm/dl-machine.h (elf_machine_rela)
28073         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
28074         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
28075
28076 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
28077
28078         [BZ #17088]
28079         * math/fesetenv.c (__fesetenv)
28080         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
28081         * math/feupdateenv.c (__feupdateenv)
28082         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
28083
28084         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
28085         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
28086         (__ASSUME_SOCKETCALL): Do not define.
28087
28088         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
28089         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
28090         (__ASSUME_SOCKETCALL): Do not define.
28091         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
28092         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28093         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28094         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28095         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28096         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
28097         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28098         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28099
28100         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
28101         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
28102         (__ASSUME_SOCKETCALL): Do not define.
28103         (__ASSUME_IPC64): Define unconditionally.
28104         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28105         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28106         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28107         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28108         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
28109         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28110         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
28111         Likewise.
28112
28113         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
28114         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
28115         (__ASSUME_SOCKETCALL): Do not define.
28116         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
28117         (__ASSUME_FUTEX_LOCK_PI): Likewise.
28118         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28119         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
28120         (__ASSUME_REQUEUE_PI): Define unconditionally.
28121         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
28122         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
28123         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28124         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
28125         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28126         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28127
28128         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
28129         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
28130         (__ASSUME_SOCKETCALL): Do not define.
28131         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
28132         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28133         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28134         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
28135         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28136         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28137
28138         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
28139         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
28140         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28141         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
28142         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28143         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
28144         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28145         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
28146         (__ASSUME_GETCPU_SYSCALL): Likewise.
28147
28148         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
28149         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
28150         cases for individual architectures.
28151         * sysdeps/gnu/configure: Regenerated.
28152         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
28153         LIBC_SLIBDIR_RTLDDIR.
28154         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
28155         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
28156         LIBC_SLIBDIR_RTLDDIR.
28157         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
28158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
28159         LIBC_SLIBDIR_RTLDDIR.
28160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
28161         Regenerated.
28162         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
28163         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
28164         file.
28165         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
28166         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
28167         file.
28168         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
28169         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
28170         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
28171         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
28172
28173         * sysdeps/aarch64/shlib-versions: Move to ...
28174         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
28175         * sysdeps/alpha/shlib-versions: Move to ...
28176         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
28177         * sysdeps/arm/shlib-versions: Move to ...
28178         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
28179         * sysdeps/hppa/shlib-versions: Move all contents except for
28180         libgcc_s entry to ...
28181         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
28182         entry from ...
28183         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
28184         * sysdeps/ia64/shlib-versions: Move to ...
28185         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
28186         entry from ...
28187         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
28188         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
28189         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
28190         * sysdeps/microblaze/shlib-versions: Move to ...
28191         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
28192         * sysdeps/mips/shlib-versions: Move to ...
28193         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
28194         entry from ...
28195         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
28196         * sysdeps/tile/shlib-versions: Move to ...
28197         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
28198         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
28199         from ...
28200         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
28201         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
28202         entry from ...
28203         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
28204
28205 2014-07-17  Will Newton  <will.newton@linaro.org>
28206
28207         * sysdeps/arm/bits/atomic.h
28208         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
28209         (__arch_compare_and_exchange_bool_16_int): Likewise.
28210         (__arch_compare_and_exchange_bool_64_int): Likewise.
28211
28212         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
28213         into an #else block.
28214
28215 2014-07-16  Roland McGrath  <roland@hack.frob.com>
28216
28217         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
28218         just Linux configurations.  Test empirically that the compiler sets
28219         __ARM_EABI__, rather than using the tuple to decide.
28220         * sysdeps/arm/preconfigure: Regenerated.
28221         * sysdeps/unix/sysv/linux/arm/configure: File removed.
28222         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
28223         contents appended ...
28224         * sysdeps/arm/configure.ac: ... here.
28225         * sysdeps/arm/configure: Regenerated.
28226
28227 2014-07-15  Roland McGrath  <roland@hack.frob.com>
28228
28229         * nptl/pthread_kill.c: New file.
28230         * nptl/pthread_sigmask.c: New file.
28231         * nptl/pthread_sigqueue.c: New file.
28232
28233         * sysdeps/nptl/lowlevellock.h: New file.
28234         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
28235         * sysdeps/nptl/lowlevellock-futex.h: New file.
28236
28237         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
28238         Remove dead declarations.
28239
28240 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
28241
28242         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
28243         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
28244         config-cflags-avx2.
28245         * sysdeps/x86_64/configure.ac: Likewise.
28246         * sysdeps/i386/configure: Regenerated.
28247         * sysdeps/x86_64/configure: Likewise.
28248         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28249         memset-avx2 only if config-cflags-avx2 is yes.
28250         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28251         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
28252         defined.
28253         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
28254         only if HAVE_AVX2_SUPPORT is defined.
28255         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
28256
28257 2014-07-14  Alan Modra  <amodra@gmail.com>
28258
28259         [BZ #17153]
28260         * elf/elf.h (DT_PPC64_NUM): Correct value.
28261         * NEWS: Add to fixed bug list.
28262
28263 2014-07-13  Jim Meyering  <meyering@fb.com>
28264
28265         [BZ 17150]
28266         regex: don't deref NULL upon heap allocation failure
28267         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
28268         failure in one more place.
28269         To trigger the segfault, configure grep -with-included-regex,
28270         build it, and run these commands:
28271         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28272
28273 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
28274
28275         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28276
28277 2014-07-11  Richard Henderson  <rth@redhat.com>
28278
28279         * sysdeps/aarch64/libm-test-ulps: Update.
28280
28281 2014-07-10  Florian Weimer  <fweimer@redhat.com>
28282
28283         [BZ #17135]
28284         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
28285         * nptl/allocatestack.c (__nptl_setxid_error): New function.
28286         (__nptl_setxid): Initialize error member.  Call
28287         __nptl_setxid_error.
28288         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
28289         * nptl/descr.h (struct xid_command): Add error member.
28290         * nptl/tst-setuid3.c: New file.
28291         * nptl/Makefile (tests): Add it.
28292
28293 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28294
28295         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
28296         New define.
28297         (__lll_trylock): Use __lll_base_trylock.
28298         (__lll_cond_trylock): Likewise.
28299
28300 2014-07-10  Roland McGrath  <roland@hack.frob.com>
28301
28302         * nptl/pthread_create.c (start_thread): Use atomic_or and
28303         lll_futex_wake directly rather than lll_robust_dead.
28304         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28305         (lll_robust_dead): Macro removed.
28306         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
28307         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28308         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28309         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28310         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28311         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28312         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28313         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28314         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28315         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28316         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28317         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28318         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28319         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28320         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28321
28322         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
28323         Use atomic_compare_and_exchange_val_acq directly rather than
28324         lll_robust_trylock.
28325         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28326         (__lll_robust_trylock, lll_robust_trylock): Removed.
28327         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28328         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28329         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28330         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28331         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28332         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28333         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28334         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28335         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28336         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28337         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28338         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28339         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28340         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28341
28342 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28343
28344         * manual/locale.texi (Locale Names): New section documenting
28345         locale name syntax.  Adjust menu and node chaining accordingly.
28346         (Choosing Locale): Reference Locale Names, Locale Categories.
28347         Mention setting LC_ALL=C.  Reflect that name syntax is now
28348         documented.
28349         (Locale Categories): New section title.  Reference Locale Names.
28350         LC_ALL is an environment variable, but not a category.
28351         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
28352         description, now in Locale Name.  Reference that section.  Locale
28353         name syntax is now documented.
28354
28355 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28356
28357         [BZ #17137]
28358         * locale/findlocale.c (name_present, valid_locale_name): New
28359         functions.
28360         (_nl_find_locale): Use the loc_name variable to store name
28361         candidates.  Call name_present and valid_locale_name to check and
28362         validate locale names.  Return an error if the locale is invalid.
28363
28364 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28365
28366         * locale/setlocale.c (setlocale): Use strdup for allocating
28367         composite name copy.
28368
28369 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28370
28371         Sync up with gnulib.
28372         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
28373         [!_LIBC && ENABLE_NLS]: Include gettext.h.
28374         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
28375         and _GL_ARG_NONNULL.
28376         [USE_UNLOCKED_IO]: Include unlocked-io.h.
28377         [!_LIBC]: Include code for Windows and Cygwin.
28378         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
28379         Include prototype for int strerror_r.
28380         [!_LIBC] (is_open): New function.
28381         (flush_stdout): New function.
28382         (print_errno_message): Use it.
28383         (error): Likewise.
28384         (error_at_line): Likewise.
28385         (error_tail) Add function attribute macros.  Use
28386         __builtin_expect.
28387
28388         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
28389
28390         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
28391
28392         * io/ftw.c: Include sys/param.h unconditionally.
28393
28394         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
28395
28396         [BZ #17125]
28397         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
28398         libc_freeres_ptr.
28399         (freecache): New function to free CACHE on exit.
28400
28401         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
28402         initialization.
28403
28404 2014-07-09  David S. Miller  <davem@davemloft.net>
28405
28406         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28407
28408         * sysdeps/sparc/nptl/internaltypes.h: Delete.
28409         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
28410         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
28411         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
28412         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
28413         * sysdeps/sparc/nptl/sem_init.c: Likewise.
28414         * sysdeps/sparc/nptl/sem_post.c: Likewise.
28415         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
28416         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
28417         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
28418         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
28419         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
28420         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
28421
28422 2014-07-09  Andreas Schwab  <schwab@suse.de>
28423
28424         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
28425         output.
28426         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
28427         (do_test): Likewise.
28428
28429         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28430
28431 2014-07-09  Will Newton  <will.newton@linaro.org>
28432
28433         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
28434         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
28435         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28436         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28437         * sysdeps/hppa/start.S (_start): Likewise.
28438
28439 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
28440
28441         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
28442
28443         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
28444         defined.
28445
28446 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28447
28448         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
28449         after checking that it is non-NULL.
28450
28451         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
28452
28453 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28454
28455         * sysdeps/powerpc/memmove.c: Remove file.
28456         * sysdeps/powerpc/powerpc32/power4/memcopy.h
28457         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
28458         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
28459         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
28460         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
28461         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
28462         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
28463         string memmove instead of removed powerpc one.
28464
28465         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
28466         [weak_alias]: Fix compiler warning due trailing data.
28467         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
28468         [weak_alias]: Likewise.
28469         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
28470         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
28471
28472         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
28473         (__libc_ifunc_impl_list): Add memmove functions.
28474
28475 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28476
28477         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
28478         Remove code.
28479         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
28480         Likewise.
28481         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
28482         Likewise.
28483         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
28484         Likewise.
28485         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
28486         Likewise.
28487         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
28488         Likewise.
28489         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
28490         Likewise.
28491         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
28492         Likewise.
28493         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
28494         Likewise.
28495         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
28496         Likewise.
28497         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
28498         Likewise.
28499         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
28500         Likewise.
28501         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
28502         Likewise.
28503         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
28504         Likewise.
28505         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
28506         Likewise.
28507         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
28508         Likewise.
28509         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
28510         Likewise.
28511
28512 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28513
28514         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
28515         to avoid alignment traps in non-cacheable memory.
28516         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
28517
28518         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
28519         multiarch objects.
28520         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
28521         file: multiarch power7 memmove.
28522         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
28523         multiarch default memmove.
28524         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
28525         multiarch memove for powerpc32/power4.
28526
28527         * string/bcopy.c: Use full path to include memmove.c.
28528         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
28529         multiarch objects.
28530         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
28531         bcopy for powerpc64.
28532         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
28533         bcopy for powerpc64.
28534         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
28535         and memmove implementations.
28536         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
28537         optimized multiarch memmove for POWER7/powerpc64.
28538         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
28539         default multiarch memmove for powerpc64.
28540         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
28541         multiarch for powerpc64.
28542         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
28543         for POWER7/powerpc64.
28544         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
28545         memmove for POWER7/powerpc64.
28546
28547         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
28548         glibc default one.
28549
28550         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
28551         __ELF_NATIVE_CLASS equal to 64.
28552
28553 2014-07-07  Roland McGrath  <roland@hack.frob.com>
28554
28555         * sysdeps/nptl/lowlevellock.h: File removed.
28556
28557         * NEWS: NPTL is no longer an add-on!
28558         * nptl/internaltypes.h: Moved ...
28559         * sysdeps/nptl/internaltypes.h: ... here.
28560         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
28561         * sysdeps/nptl/fork.c: Likewise.
28562         * sysdeps/nptl/gai_misc.h: Likewise.
28563         * sysdeps/nptl/librt-cancellation.c: Likewise.
28564         * sysdeps/nptl/jmp-unwind.c: Likewise.
28565         * sysdeps/nptl/setxid.h: Likewise.
28566         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
28567         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
28568         * sysdeps/unix/sysv/linux/arm/Implies: New file.
28569         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
28570         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
28571         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
28572         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
28573         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
28574         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
28575         * sysdeps/unix/sysv/linux/mips/Implies: New file.
28576         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
28577         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
28578         * sysdeps/unix/sysv/linux/sh/Implies: New file.
28579         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
28580         * sysdeps/unix/sysv/linux/tile/Implies: New file.
28581         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
28582         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
28583         * nptl/Makeconfig: Moved ...
28584         * sysdeps/nptl/Makeconfig: ... here.
28585         * nptl/configure: File removed.
28586         * nptl/ANNOUNCE: File removed.
28587         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
28588         * sysdeps/unix/sysv/linux/configure: Regenerated.
28589
28590         * nptl/Makefile (routines): Add libc_pthread_init,
28591         libc_multiple_threads, register-atfork and unregister-atfork.
28592         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
28593         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
28594         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
28595         pthread-pi-defines.sym, structsem.sym.
28596         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
28597         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
28598         [$(subdir) = nptl] (tests): Add tst-setgetname.
28599         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
28600         * sysdeps/unix/sysv/linux/sigaction.c: Just include
28601         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
28602         [!LIBC_SIGACTION]: Remove aliases.
28603         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28604         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28605         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28606         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
28607         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28608         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
28609         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28610         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28611         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28612         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
28613         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
28614         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
28615         __libc_allocate_rtsig_private.
28616         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
28617         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
28618         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28619         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28620         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
28621         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28622         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28623         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28624         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28625         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28626         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28627         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28628         * nptl/internaltypes.h: ... here.
28629         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28630         * sysdeps/nptl/jmp-unwind.c: ... here.
28631         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28632         * nptl/libc-lowlevellock.c: ... here.
28633         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28634         * nptl/libc_multiple_threads.c: ... here.
28635         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28636         * nptl/libc_pthread_init.c: ... here.
28637         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28638         * nptl/lowlevelbarrier.sym: ... here.
28639         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28640         * nptl/lowlevelcond.sym: ... here.
28641         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28642         * nptl/lowlevellock.c: ... here.
28643         * nptl/lowlevellock.h: Moved ...
28644         * sysdeps/nptl/lowlevellock.h: ... here.
28645         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28646         * nptl/lowlevelrobustlock.c: ... here.
28647         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28648         * nptl/lowlevelrobustlock.sym: ... here.
28649         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28650         * nptl/lowlevelrwlock.sym: ... here.
28651         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28652         * nptl/pt-fork.c: ... here.
28653         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28654         * nptl/pthread-pi-defines.sym: ... here.
28655         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28656         * nptl/pthread_attr_getaffinity.c: ... here.
28657         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28658         * nptl/pthread_attr_setaffinity.c: ... here.
28659         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28660         * nptl/pthread_mutex_cond_lock.c: ... here.
28661         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28662         Update #include.
28663         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28664         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28665         * nptl/pthread_once.c: ... here, replacing old file.
28666         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28667         * nptl/pthread_yield.c: ... here.
28668         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28669         * nptl/register-atfork.c: ... here.
28670         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28671         * nptl/sem_post.c: ... here.
28672         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28673         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28674         * nptl/sem_timedwait.c: ... here.
28675         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28676         * nptl/sem_trywait.c: ... here.
28677         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28678         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28679         * nptl/sem_wait.c: ... here.
28680         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28681         * nptl/structsem.sym: ... here.
28682         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28683         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28684         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28685         * nptl/unregister-atfork.c: ... here.
28686         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28687         * nptl/unwindbuf.sym: ... here.
28688         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28689         * sysdeps/nptl/fork.c: ... here.
28690         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28691         * sysdeps/nptl/fork.h: ... here.
28692         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28693         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28694         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28695         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28696         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28697         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28698         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28699         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28700         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28701         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28702         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28703         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28704         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28705         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28706         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28707         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28708         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28709         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28710         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28711         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28712         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28713         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28714         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28715         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28716         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28717         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28718         * sysdeps/unix/sysv/linux/raise.c: ... here.
28719         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28720         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28721         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28722         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28723         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28724         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28725         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28726         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28727         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28728         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28729         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28730         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28731         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28732         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28733         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28734
28735 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28736
28737         * sysdeps/generic/memcopy.h: Add comment for
28738         MEMCPY_OK_FOR_FWD_MEMMOVE.
28739
28740 2014-07-04  Will Newton  <will.newton@linaro.org>
28741
28742         * string/memchr.c: Merge from gnulib.
28743         [_LIBC]: Remove conditionals.
28744         (__ptr_t): Remove define.
28745         (LONG_MAX_32_BITS): Likewise.
28746         (LONG_MAX): Likewise.
28747         (MEMCHR): Use ANSI prototype and optimize algorithm.
28748
28749         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28750
28751 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28752
28753         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28754         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28755
28756         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28757         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28758         in a bare environment with no <stdlib.h> installed.
28759         * sysdeps/nptl/configure: Regenerated.
28760
28761         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28762
28763         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28764         AC_EGREP_CPP for kernel header checks, so they only succeed if
28765         including <linux/version.h> actually works right.
28766         * sysdeps/unix/sysv/linux/configure: Regenerated.
28767
28768         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28769         value so it's not diagnosed as unused.
28770
28771         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28772         thing) with "ifeq ($(subdir),rt)".
28773
28774 2014-07-03  Richard Henderson  <rth@redhat.com>
28775
28776         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28777         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28778         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28779
28780         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28781         (math_force_eval): New.
28782
28783         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28784         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28785
28786         * sysdeps/alpha/fpu/s_round.c: Remove file.
28787         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28788
28789         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28790         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28791         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28792         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28793         (_dl_start, print_statistics): Likewise.
28794         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28795         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28796
28797         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28798         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28799         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28800         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28801         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28802         (HP_SMALL_TIMING_AVAIL): Define.
28803         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28804         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28805         (HP_SMALL_TIMING_AVAIL): Define.
28806         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28807         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28808
28809         * sysdeps/aarch64/hp-timing.h: New file.
28810
28811         * sysdeps/generic/hp-timing.h: Remove dead comment.
28812         * sysdeps/generic/hp-timing-common.h: New file.
28813         * sysdeps/alpha/hp-timing.h: Include it.
28814         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28815         * sysdeps/i386/i686/hp-timing.h: Likewise.
28816         * sysdeps/ia64/hp-timing.h: Likewise.
28817         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28818         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28819         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28820         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28821         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28822         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28823         (hp_timing_t): New.
28824
28825         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28826         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28827         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28828         * elf/rtld.c (_dl_start_final): Likewise.
28829         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28830         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28831         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28832         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28833         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28834         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28835         (HP_TIMING_DIFF_INIT): Remove.
28836         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28837         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28838         (HP_TIMING_DIFF_INIT): Remove.
28839         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28840         * sysdeps/i386/i686/hp-timing.c: Remove file.
28841         * sysdeps/x86_64/hp-timing.c: Remove file.
28842         * sysdeps/ia64/hp-timing.c: Remove file.
28843         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28844         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28845         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28846         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28847
28848         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28849         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28850         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28851         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28852         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28853         (HP_TIMING_ACCUM): Remove.
28854         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28855         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28856         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28857
28858         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28859         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28860         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28861         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28862         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28863         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28864         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28865         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28866
28867         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28868
28869 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28870
28871         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28872
28873 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28874
28875         Sync up with gettext.
28876         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28877         [_MSC_VER]: Include malloc.h
28878         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28879         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28880         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28881         TEMP_FAILURE_RETRY.  Cast return of alloca.
28882         [!_LIBC] Call gl_rwlock_init.
28883         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28884
28885 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28886
28887         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28888         before checking its value.
28889
28890 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28891
28892         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28893
28894         * debug/memcpy_chk.c: Don't include pagecopy.h.
28895         * debug/mempcpy_chk.c: Likewise.
28896         * string/memcpy.c: Likewise.
28897         * string/memmove.c: Likewise.
28898         * sysdeps/powerpc/memmove.c: Likewise.
28899         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28900         definition of PAGE_COPY_FWD_MAYBE here...
28901         * sysdeps/generic/pagecopy.h: ... from here.
28902         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28903
28904 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28905             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28906
28907         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28908         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28909         optimizations.
28910         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28911         (__libc_ifunc_impl_list): Likewise.
28912         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28913         multiarch strcat for PPC64.
28914         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28915         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28916
28917 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28918
28919         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28920
28921 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28922
28923         * intl/loadmsgcat.c: Remove declaration of
28924         get_sysdep_segment_value.
28925         (get_sysdep_segment_value): Use ISO C style.
28926         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28927         semicolon.  Fix typo and formatting in comment.
28928         (_nl_unload_domain): Use ISO C style.
28929
28930         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28931
28932 2014-07-02  Will Newton  <will.newton@linaro.org>
28933
28934         * malloc/obstack.c: Merge from gnulib master.
28935         [HAVE_CONFIG_H]: Remove conditional code.
28936         [!_LIBC]: Include config.h.
28937         [!ELIDE_CODE]: Don't include inttypes.h, include
28938         stdint.h unconditionally.
28939         (print_and_abort): Mark as _Noreturn.
28940         (_obstack_allocated_p): Mark as __attribute_pure__.
28941         (obstack_free): Rename to __obstack_free.
28942         [!__attribute__]: Remove conditional code.
28943         * malloc/obstack.h: Merge from gnulib master.
28944         [__cplusplus]: Move conditional down.
28945         [!__attribute_pure__]: Define __attribute_pure__ here
28946         if it is not already defined.
28947         (_obstack_memory_used): Mark as __attribute_pure__.
28948         [!__obstack_free]: Define as obstack_free.
28949         [__GNUC__]: Remove check for ancient NeXT gcc.
28950
28951 2014-07-02  Will Newton  <will.newton@linaro.org>
28952             Paul Eggert  <eggert@cs.ucla.edu>
28953
28954         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28955
28956 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28957
28958         * resolv/gethnamaddr.c: Add comment warning that the file is
28959         not maintained.
28960
28961 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28962
28963         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28964         entries.
28965
28966         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28967         entry for aio_cancel and aio_cancel64.
28968         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28969         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28970         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28971         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28972         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28973         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28974         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28975         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28976         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28977         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28978         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28979         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28980         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28981
28982 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28983
28984         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28985         * nptl/pthread_mutex_lock.c: Likewise.
28986         * nptl/pthread_mutex_timedlock.c: Likewise.
28987         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28988
28989 2014-07-01  Richard henderson  <rth@redhat.com>
28990
28991         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28992         (__isnan, __isnanl): Remove.
28993         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28994
28995         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28996
28997 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28998
28999         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
29000
29001 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29002
29003         * resolv/nss_dns/dns-host.c (getanswer_r)
29004         [MULTI_PTRS_ARE_ALIASES]: Remove code.
29005
29006 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
29007
29008         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29009         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
29010         undefine.
29011         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
29012         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
29013
29014 2014-07-01  Roland McGrath <roland@hack.frob.com>
29015
29016         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
29017         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
29018
29019         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
29020         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
29021
29022         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
29023         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
29024         ... here.
29025         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
29026         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
29027
29028         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
29029         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
29030         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
29031         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
29032
29033         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
29034         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
29035         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
29036         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
29037         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
29038         Moved ...
29039         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
29040         ... here.
29041         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
29042         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
29043         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
29044         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
29045         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
29046         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
29047         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
29048         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
29049         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
29050         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
29051         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
29052         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
29053         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
29054         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
29055         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
29056         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
29057         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
29058         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
29059         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
29060         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
29061         ... here.
29062         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
29063         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
29064         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
29065         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
29066         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
29067         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
29068         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
29069         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
29070
29071 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
29072
29073         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
29074         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
29075         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
29076         Add sysdep.
29077
29078 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29079
29080         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29081
29082 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29083
29084         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
29085         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29086
29087         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
29088
29089         * sysdeps/arm/libm-test-ulps: Regenerated.
29090
29091 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29092             Roland McGrath <roland@hack.frob.com>
29093
29094         * test-skeleton.c (signal_handler): Kill the whole process group
29095         before killing the child individually.
29096         (main): Report any failure on `setpgid'.
29097
29098 2014-06-30  Roland McGrath  <roland@hack.frob.com>
29099
29100         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
29101         from _TLS_H to _ARM_NPTL_TLS_H.
29102         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
29103         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
29104
29105 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29106
29107         [BZ #16539]
29108         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
29109         (__expm1l): Return argument unchanged when small but not
29110         subnormal.
29111
29112         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
29113         include macro name.
29114         (_FP_UNPACK_RAW_1_P): Likewise.
29115         (_FP_PACK_RAW_1): Likewise.
29116         (_FP_PACK_RAW_1_P): Likewise.
29117         (_FP_MUL_MEAT_1_wide): Likewise.
29118         (_FP_MUL_MEAT_DW_1_hard): Likewise.
29119         (_FP_MUL_MEAT_1_hard): Likewise.
29120         (_FP_DIV_MEAT_1_imm): Likewise.
29121         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
29122         (_FP_DIV_MEAT_1_udiv): Likewise.
29123         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
29124         (_FP_UNPACK_RAW_2): Likewise.
29125         (_FP_UNPACK_RAW_2_P): Likewise.
29126         (_FP_PACK_RAW_2): Likewise.
29127         (_FP_PACK_RAW_2_P): Likewise.
29128         (_FP_MUL_MEAT_DW_2_wide): Likewise.
29129         (_FP_MUL_MEAT_2_wide): Likewise.
29130         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
29131         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
29132         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
29133         (_FP_MUL_MEAT_2_gmp): Likewise.
29134         (_FP_DIV_MEAT_2_udiv): Likewise.
29135         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
29136         (_FP_FRAC_SRL_4): Likewise.
29137         (_FP_FRAC_SRST_4): Likewise.
29138         (_FP_FRAC_SRS_4): Likewise.
29139         (_FP_UNPACK_RAW_4): Likewise.
29140         (_FP_UNPACK_RAW_4_P): Likewise.
29141         (_FP_PACK_RAW_4): Likewise.
29142         (_FP_PACK_RAW_4_P): Likewise.
29143         (_FP_MUL_MEAT_DW_4_wide): Likewise.
29144         (_FP_MUL_MEAT_4_wide): Likewise.
29145         (_FP_MUL_MEAT_4_gmp): Likewise.
29146         (umul_ppppmnnn): Likewise.
29147         (_FP_DIV_MEAT_4_udiv): Likewise.
29148         (__FP_FRAC_ADD_4): Likewise.
29149         (__FP_FRAC_SUB_3): Likewise.
29150         (__FP_FRAC_SUB_4): Likewise.
29151         (__FP_FRAC_DEC_3): Likewise.
29152         (__FP_FRAC_DEC_4): Likewise.
29153         (__FP_FRAC_ADDI_4): Likewise.
29154         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
29155         (_FP_FRAC_SRL_8): Likewise.
29156         (_FP_FRAC_SRS_8): Likewise.
29157
29158         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
29159         include macro name.
29160         (FP_UNPACK_RAW_EP): Likewise.
29161         (FP_PACK_RAW_E): Likewise.
29162         (FP_PACK_RAW_EP): Likewise.
29163         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
29164         (_FP_ISSIGNAN): Likewise.
29165         (_FP_ADD_INTERNAL): Likewise.
29166         (_FP_FMA): Likewise.
29167         (_FP_CMP): Likewise.
29168         (_FP_SQRT): Likewise.
29169         (_FP_TO_INT): Likewise.
29170         (_FP_FROM_INT): Likewise.
29171         (FP_EXTEND): Likewise.
29172         (_FP_DIV_MEAT_N_loop): Likewise.
29173
29174 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29175
29176         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
29177         throughout.
29178
29179 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
29180
29181         [BZ #17097]
29182         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
29183         result with correct sign in case of exponents that produce
29184         overflow except for X very close to 1.
29185
29186 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
29187
29188         mktime: merge #if/#ifdef usage from glibc
29189         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29190         as that works with both Glibc's and Gnulib's style.
29191         See thread starting at Siddhesh Poyarekar's bug report at:
29192         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
29193
29194 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
29195
29196         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
29197         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
29198         * sysdeps/tile/tilegx/memmove.c: Remove file.
29199
29200 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29201
29202         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
29203         abi-name definition.
29204         * scripts/soversions.awk: Do not handle or generate ABI lines.
29205         * shlib-versions: Remove ABI entries.
29206         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
29207         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
29208
29209 2014-06-27  Roland McGrath  <roland@hack.frob.com>
29210
29211         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
29212         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
29213         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
29214         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
29215         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
29216         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
29217         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
29218         Moved ...
29219         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
29220         ... here.
29221         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
29222         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
29223         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
29224         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
29225         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
29226         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
29227         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
29228         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
29229         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
29230         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
29231         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
29232         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
29233         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
29234         Moved ...
29235         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
29236         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
29237         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
29238         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
29239         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
29240         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
29241         Moved ...
29242         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
29243         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
29244         Moved ...
29245         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
29246         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
29247         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
29248         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
29249         Moved ...
29250         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
29251         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
29252         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
29253         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
29254         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
29255         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
29256         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
29257         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
29258         Moved ...
29259         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
29260         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
29261         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
29262         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
29263         Moved ...
29264         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
29265         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
29266         Moved ...
29267         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
29268         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
29269         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
29270         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
29271         Moved ...
29272         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
29273         ... here.
29274         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
29275         Identical file removed.
29276         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
29277         Moved ...
29278         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
29279         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
29280         Identical file removed.
29281         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
29282         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
29283         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
29284         Moved ...
29285         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
29286         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
29287         Identical file removed.
29288         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
29289         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
29290         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
29291         Identical file removed.
29292         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
29293         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
29294         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
29295         Identical file removed.
29296         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
29297         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
29298         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
29299         Identical file removed.
29300         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
29301         Moved ...
29302         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
29303         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
29304         Identical file removed.
29305         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
29306         Moved ...
29307         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
29308         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
29309         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
29310         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
29311         Identical file removed.
29312         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
29313         Moved ...
29314         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
29315         ... here.
29316         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
29317         Identical file removed.
29318         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
29319         Moved ...
29320         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
29321         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
29322         Identical file removed.
29323         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
29324         Moved ...
29325         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
29326         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
29327         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
29328         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
29329         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
29330         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
29331         Moved ...
29332         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
29333         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
29334         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
29335
29336         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
29337         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
29338         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
29339         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
29340         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
29341
29342 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
29343
29344         [BZ #17092]
29345         * nscd/nscd.c (monitor_child): Return exit status of child
29346         instead of return value from wait syscall.
29347
29348 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29349
29350         * configure.ac (libc_commonpagesize): Remove variable.
29351         (libc_relro_required): Likewise.
29352         (libc_cv_z_relro): Remove configure test.
29353         * configure: Regenerated.
29354         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
29355         variable.
29356         (libc_relro_required): Likewise.
29357         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
29358         (libc_relro_required): Likewise.
29359         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
29360         (libc_relro_required): Likewise.
29361         * sysdeps/arm/preconfigure: Regenerated.
29362         * sysdeps/ia64/preconfigure: Remove file.
29363         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
29364         variable.
29365         (libc_relro_required): Likewise.
29366
29367         [BZ #16561]
29368         [BZ #16562]
29369         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
29370         (__ieee754_yn): Set FE_TONEAREST mode internally and then
29371         recompute overflowing results in original rounding mode.
29372         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
29373         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
29374         recompute overflowing results in original rounding mode.
29375         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
29376         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29377         recompute overflowing results in original rounding mode.
29378         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
29379         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29380         recompute overflowing results in original rounding mode.
29381         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
29382         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29383         recompute overflowing results in original rounding mode.
29384         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
29385         (libc_feholdsetround_ctx): New macro.
29386         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
29387         * sysdeps/i386/fpu/libm-test-ulps: Update.
29388         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
29389
29390 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29391
29392         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
29393         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
29394         corresponding .cpsetup call.
29395
29396 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29397
29398         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
29399         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
29400         * sysdeps/arm/Makefile [$(subdir) = csu]
29401         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
29402         (static-only-routines): Add aeabi_read_tp here.
29403         (shared-only-routines): Add libc-aeabi_read_tp here.
29404         (CFLAGS-libc-start.c): Add -fexceptions here.
29405         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
29406         (sysdep_routines, static-only-routines, shared-only-routines):
29407         Don't add to these here.
29408         (CFLAGS-libc-start.c): Likewise.
29409
29410         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
29411         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
29412         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
29413         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
29414         * sysdeps/arm/Makefile [$(subdir) = rt]
29415         (librt-sysdep_routines, librt-shared-only-routines):
29416         Append rt-aeabi_unwind_cpp_pr1 here.
29417         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
29418         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
29419         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
29420         (libpthread-sysdep_routines, libpthread-shared-only-routines):
29421         Append nptl-aeabi_unwind_cpp_pr1 here.
29422         (tests): Filter out tst-cleanupx4 here.
29423         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
29424         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
29425         Don't do those here.
29426
29427 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29428
29429         * scripts/list-sources.sh: Do not handle ports specially.
29430
29431 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29432
29433         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
29434         * sysdeps/arm/feupdateenv.c: Likewise.
29435
29436         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
29437
29438 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29439
29440         * manual/texinfo.tex: Update to version 2014-05-05.10 with
29441         trailing whitespace removed.
29442         * scripts/config.guess: Update to version 2014-03-23.
29443         * scripts/config.sub: Update to version 2014-05-01
29444         * scripts/install-sh: Update to version 2013-12-25.23.
29445         * scripts/move-if-change: Update from gnulib.
29446
29447 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29448
29449         * debug/memmove_chk.c: Remove pagecopy.h include.
29450
29451 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
29452
29453         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
29454         identical to gnulib mktime.
29455
29456 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29457
29458         * configure.ac: Do not test for machine being rs6000.  Do not test
29459         for powerpc*-*soft.
29460         * configure: Regenerated.
29461
29462         [BZ #11505]
29463         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
29464         test.
29465         * configure: Regenerated.
29466         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
29467         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
29468         Remove configure test.
29469         * sysdeps/arm/configure: Regenerated.
29470         * sysdeps/nptl/configure.ac: Do not check
29471         libc_cv_asm_cfi_directives.
29472         * sysdeps/nptl/configure: Regenerated.
29473         * sysdeps/x86_64/nptl/configure.ac: Remove file.
29474         * sysdeps/x86_64/nptl/configure: Remove generated file.
29475         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
29476         unconditional.
29477         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
29478
29479 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29480
29481         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
29482         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
29483         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
29484         it is defined.
29485
29486         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
29487         instead of whether it is defined.
29488         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
29489         * sysdeps/hppa/dl-machine.h: Likewise.
29490         * sysdeps/ia64/dl-machine.h: Likewise.
29491         * sysdeps/m68k/dl-machine.h: Likewise.
29492         * sysdeps/microblaze/dl-machine.h: Likewise.
29493         * sysdeps/mips/dl-machine.: Likewise.
29494         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29495         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29496         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29497         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29498         * sysdeps/sh/dl-machine.h: Likewise.
29499         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29500         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29501         * sysdeps/tile/dl-machine.h: Likewise.
29502         * sysdeps/x86_64/dl-machine.h: Likewise.
29503
29504         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
29505         code.
29506         (verify_persistent_db): Likewise.
29507
29508 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29509
29510         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
29511         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
29512         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
29513         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
29514         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
29515         Moved ...
29516         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
29517         ... here.
29518         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
29519         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
29520         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
29521         Identical file removed.
29522         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
29523         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
29524         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
29525         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
29526         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
29527         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
29528         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
29529         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29530         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
29531         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
29532         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29533         Moved ...
29534         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
29535         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
29536         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
29537         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
29538         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
29539         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
29540         Moved ...
29541         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
29542         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
29543         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
29544         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
29545         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
29546         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29547         Identical file removed.
29548         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
29549         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
29550         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
29551         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
29552         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
29553         Moved ...
29554         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
29555         ... here.
29556         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
29557         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
29558         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
29559         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
29560         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
29561         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
29562         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
29563         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
29564         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
29565         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
29566         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29567         Moved ...
29568         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
29569         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
29570         Moved ...
29571         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
29572         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
29573         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
29574         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
29575         Moved ...
29576         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
29577         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
29578         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
29579
29580         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
29581         folded into ...
29582         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
29583         * sysdeps/unix/sysv/linux/s390/Versions
29584         (libpthread: GLIBC_2.19): New version set.
29585         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
29586         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
29587         (librt: GLIBC_2.3.3): New version set.
29588         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
29589         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
29590         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
29591         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
29592         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
29593         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
29594         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
29595         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
29596         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
29597         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
29598         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
29599         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
29600         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
29601         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
29602         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
29603         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
29604         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
29605         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29606         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
29607         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
29608         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
29609         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
29610         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
29611         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
29612         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
29613         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
29614         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
29615         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
29616         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
29617         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
29618         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
29619         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
29620         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
29621         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29622         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29623         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29624         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29625         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29626         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29627         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29628         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29629         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29630         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29631         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29632         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29633
29634         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29635         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29636         (__libc_vfork): Define the function under this name.
29637         [!NOT_IN_libc] (__vfork): Make this an alias.
29638         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29639         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29640         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29641         (__libc_vfork): Define the function under this name.
29642         [!NOT_IN_libc] (__vfork): Make this an alias.
29643         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29644         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29645         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29646         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29647         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29648         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29649
29650         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29651         code that was previously under [RESET_PID].
29652         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29653         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29654         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29655
29656         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29657         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29658         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29659         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29660         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29661         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29662         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29663         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29664         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29665         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29666         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29667         Moved ...
29668         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29669         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29670         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29671         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29672         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29673         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29674         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29675         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29676         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29677         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29678         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29679         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29680         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29681         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29682         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29683         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29684         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29685         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29686         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29687         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29688         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29689         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29690         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29691         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29692         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29693         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29694         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29695         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29696         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29697
29698 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29699
29700         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29701         that was previously under [RESET_PID].
29702         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29703
29704 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29705
29706         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29707         not undefine and redefine.
29708         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29709         [O_CLOEXEC]: Make code unconditional.
29710         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29711         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29712         <kernel-features.h>.
29713         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29714         conditional variable definition.
29715         (shm_open) [O_CLOEXEC]: Make code unconditional.
29716         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29717         code.
29718
29719         * configure.ac (USE_REGPARMS): Don't define here.
29720         * configure: Regenerated.
29721         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29722         * sysdeps/i386/configure: Regenerated.
29723
29724         * nptl/createthread.c: Don't include kernel-features.h.
29725         * nptl/pthread_cancel.c: Likewise.
29726         * nptl/pthread_condattr_setclock.c: Likewise.
29727         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29728         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29729         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29730         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29731         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29732         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29733         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29734         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29735         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29736         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29737         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29738         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29739         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29740         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29741         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29742         * nscd/gai.c: Likewise.
29743         * nss/nss_db/db-open.c: Likewise.
29744         * sysdeps/generic/ldsodefs.h: Likewise.
29745         * sysdeps/sh/nptl/tls.h: Likewise.
29746         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29747         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29748         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29749         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29750         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29751         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29752         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29753         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29754         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29755         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29756         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29757         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29758         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29759         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29760         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29761         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29762         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29763         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29764         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29765         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29766         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29767         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29768         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29769         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29770         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29771         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29772         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29773         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29774         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29775         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29776         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29777         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29778         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29779         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29780         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29781         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29782         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29783         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29784         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29785         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29786         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29787         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29788         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29789         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29790         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29791         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29792         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29793         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29794         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29795         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29796         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29797         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29798         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29799         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29800         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29801         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29802         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29803         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29826         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29827         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29828         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29829         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29830         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29831         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29832         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29833         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29834         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29835         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29836         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29837         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29838         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29839         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29840         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29841         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29842         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29843         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29844         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29845         * sysdeps/unix/sysv/linux/system.c: Likewise.
29846         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29847         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29848         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29849         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29850         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29851         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29852         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29853
29854         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29855         * configure: Regenerated.
29856         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29857
29858         * configure.ac (base_machine): Do not set specially for particular
29859         machines here.
29860         * configure: Regenerated.
29861         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29862         settings from configure.ac.
29863         * sysdeps/i386/preconfigure: New file.
29864         * sysdeps/s390/preconfigure: Likewise.
29865         * sysdeps/sh/preconfigure: Likewise.
29866         * sysdeps/sparc/preconfigure: Likewise.
29867
29868 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29869
29870         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29871         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29872         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29873         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29874         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29875         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29876         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29877         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29878         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29879         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29880         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29881         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29882         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29883         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29884         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29885         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29886         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29887         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29888         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29889
29890         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29891         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29892         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29893         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29894         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29895         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29896         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29897         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29898         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29899         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29900         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29901         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29902         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29903         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29904         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29905         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29906         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29907         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29908         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29909         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29910         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29911         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29912         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29913         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29914         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29915         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29916         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29917         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29918         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29919         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29920         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29921         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29922         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29923         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29924         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29925         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29926         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29927         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29928
29929         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29930         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29931         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29932         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29933         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29934         Moved ...
29935         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29936         ... here.
29937         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29938         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29939         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29940         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29941         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29942         Moved ...
29943         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29944         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29945         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29946         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29947         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29948         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29949         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29950         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29951         Moved ...
29952         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29953         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29954         Moved ...
29955         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29956         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29957         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29958         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29959         Moved ...
29960         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29961         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29962         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29963         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29964         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29965         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29966         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29967         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29968         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29969         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29970         Moved ...
29971         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29972         ... here.
29973         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29974         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29975         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29976         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29977         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29978         Moved ...
29979         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29980         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29981         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29982         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29983         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29984         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29985         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29986         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29987         Moved ...
29988         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29989         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29990         Moved ...
29991         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29992         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29993         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29994         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29995         Moved ...
29996         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29997         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29998         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29999         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
30000         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
30001
30002 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
30003
30004         * timezone/checktab.awk: Update from tzcode 2014e.
30005         * timezone/private.h: Likewise.
30006         * timezone/tzfile.h: Likewise.
30007         * timezone/zdump.c: Likewise.
30008         * timezone/zic.c: Likewise.
30009
30010         * sysdeps/unix/sysv/linux/kernel-features.h
30011         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
30012         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
30013         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
30014         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
30015         Remove conditional code.
30016
30017 2014-06-25  Will Newton  <will.newton@linaro.org>
30018
30019         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
30020         (_dl_arm_cap_flags): Add HWCAP2 values.
30021         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
30022         (_DL_HWCAP_COUNT): Increase to 37.
30023         (_DL_HWCAP_LAST): New define.
30024         (_DL_HWCAP2_LAST): New define.
30025         (_dl_procinfo): Add support for printing
30026         AT_HWCAP2 entries.
30027         (_dl_string_hwcap): Use _dl_hwcap_string.
30028
30029 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30030
30031         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30032
30033 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
30034
30035         * README: Do not mention ports directory.
30036
30037         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
30038         Remove macro.
30039         * sysdeps/unix/sysv/linux/futimes.c: Do not include
30040         <kernel-features.h>.
30041         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
30042         conditional variable definition.
30043         (__futimes): Update comment.
30044         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
30045         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
30046
30047         [BZ #16560]
30048         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
30049         arguments close to 0.
30050         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
30051         Likewise.
30052         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
30053         Likewise.
30054         * math/auto-libm-test-in: Add more tests of exp10.
30055         * math/auto-libm-test-out: Regenerated.
30056         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
30057
30058         * sysdeps/unix/sysv/linux/kernel-features.h
30059         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
30060         * sysdeps/unix/sysv/linux/readv.c: Do not include
30061         <kernel-features.h>.
30062         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
30063         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
30064         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
30065         unconditional.
30066         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
30067         conditional code.
30068         * sysdeps/unix/sysv/linux/writev.c: Do not include
30069         <kernel-features.h>.
30070         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
30071         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
30072         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
30073         unconditional.
30074         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
30075         conditional code.
30076
30077 2014-06-25  Will Newton  <will.newton@linaro.org>
30078
30079         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
30080         comment changes throughout the file.  Remove checks
30081         for HAVE_*_H definitions that are not required.
30082         (__gen_tempname): Call abort if an unknown kind value is
30083         passed.
30084
30085 2014-06-25  Andreas Schwab  <schwab@suse.de>
30086
30087         [BZ #17086]
30088         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
30089         scalbln, scalblnf, scalblnl in libc.
30090
30091 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
30092
30093         [BZ #17086]
30094         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
30095         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30096         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30097
30098 2014-06-24  Roland McGrath  <roland@hack.frob.com>
30099
30100         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
30101         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
30102         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
30103         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
30104         Update #include.
30105         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
30106         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
30107         Update #include.
30108         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
30109         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
30110         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
30111         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
30112         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
30113         * sysdeps/x86/bits/pthreadtypes.h: ... here.
30114         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
30115         * sysdeps/x86/bits/semaphore.h: ... here.
30116         * sysdeps/x86/nptl/elide.h: Moved ...
30117         * sysdeps/x86/elide.h: ... here.
30118         * sysdeps/x86_64/nptl/Implies: File removed.
30119         * sysdeps/i386/nptl/Implies: File removed.
30120
30121 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
30122
30123         [BZ #16539]
30124         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
30125         return the argument for normal arguments with exponent below -64.
30126         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
30127         Likewise.
30128         * math/auto-libm-test-in: Add another test of expm1.
30129         * math/auto-libm-test-out: Regenerated.
30130
30131         [BZ #16287]
30132         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
30133         calling __erfcl for arguments at least 16.
30134         * math/auto-libm-test-in: Add more tests of erf.
30135         * math/auto-libm-test-out: Regenerated.
30136
30137         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
30138         individual architectures.
30139         * sysdeps/unix/sysv/linux/configure: Regenerated.
30140         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
30141         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
30142         * sysdeps/unix/sysv/linux/powerpc/configure.ac
30143         (ldd_rewrite_script): Define variable.
30144         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
30145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
30146         file.
30147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
30148         generated file.
30149         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
30150         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
30151         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
30152         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
30153         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
30154         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
30155         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
30156         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
30157
30158 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30159
30160         [BZ #17084]
30161         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
30162         Rename member __data.d to __data.__elision_data.
30163
30164 2014-06-24  Wilco  <wdijkstr@arm.com>
30165
30166         * NEWS: Add 16918 to fixed bug list.
30167
30168 2014-06-24  Wilco  <wdijkstr@arm.com>
30169
30170         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
30171
30172 2014-06-24  Wilco  <wdijkstr@arm.com>
30173
30174         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
30175         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
30176         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
30177         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
30178         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
30179         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
30180         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
30181         Use _FPU_MASK_RM.
30182
30183 2014-06-24  Wilco  <wdijkstr@arm.com>
30184
30185         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
30186
30187 2014-06-24  Wilco  <wdijkstr@arm.com>
30188
30189         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
30190         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
30191         * sysdeps/arm/fesetround.c (fesetround): Remove space.
30192         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
30193
30194 2014-06-24  Wilco  <wdijkstr@arm.com>
30195
30196         [BZ #16918]
30197         * sysdeps/arm/feupdateenv.c (feupdateenv):
30198         Rewrite to reduce FPSCR accesses and fix return value.
30199
30200 2014-06-24  Wilco  <wdijkstr@arm.com>
30201
30202         * sysdeps/arm/fclrexcpt.c (feclearexcept):
30203         Optimize to avoid unnecessary FPSCR writes.
30204         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
30205         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
30206         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
30207         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
30208
30209 2014-06-24  Wilco  <wdijkstr@arm.com>
30210
30211         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
30212         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
30213         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
30214         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
30215         Call libc_fetestexcept_vfp.
30216         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
30217         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
30218         __SOFTFP__ ifdef so that they can be built for softfp.
30219
30220 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30221
30222         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
30223         argument type signed char.
30224
30225         * Makerules (check-abi): Dump diff of symlist if the test
30226         fails.
30227
30228 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30229
30230         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
30231         using abort.
30232
30233         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
30234         Remove unused variable ST.
30235
30236 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30237
30238         [BZ #16354]
30239         [BZ #17061]
30240         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
30241         small arguments before calling __expm1.
30242         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
30243         small arguments before calling __expm1f.
30244         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
30245         small arguments before calling __expm1l.
30246         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
30247         Likewise.
30248         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
30249         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
30250         spurious underflow for some cosh tests.
30251         * math/auto-libm-test-out: Regenerated.
30252         * sysdeps/i386/fpu/libm-test-ulps: Update.
30253
30254         [BZ #17050]
30255         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
30256         (__ieee754_y1): Set errno if return value overflows.
30257         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
30258         (__ieee754_y1f): Set errno if return value overflows.
30259         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
30260         (__ieee754_y1l): Set errno if return value overflows.
30261         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
30262         (__ieee754_y1l): Set errno if return value overflows.
30263         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
30264         * math/auto-libm-test-out: Regenerated.
30265
30266         * math/gen-auto-libm-tests.c: Document use of
30267         ignore-zero-inf-sign.
30268         (input_flag_type): Add value flag_ignore_zero_inf_sign.
30269         (input_flags): Add ignore-zero-inf-sign.
30270         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
30271         * math/gen-libm-test.pl (generate_testfile): Handle
30272         ignore-zero-inf-sign.
30273         * math/auto-libm-test-in: Mark some cpow tests with
30274         ignore-zero-inf-sign and some with xfail-rounding.
30275         * math/auto-libm-test-out: Regenerated.
30276         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
30277         * sysdeps/i386/fpu/libm-test-ulps: Update.
30278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30279
30280         [BZ #16315]
30281         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
30282         overflowing or underflowing operations take place with sign of
30283         result.
30284         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
30285         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
30286         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
30287         (__ieee754_pow): Recompute overflowing and underflowing results in
30288         original rounding mode.
30289         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
30290         (__powl_helper): Allow negative argument X and scale negated value
30291         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
30292         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
30293         overflowing or underflowing operations take place with sign of
30294         result.
30295         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
30296         Include <math.h>.
30297         * math/auto-libm-test-in: Add more tests of pow.
30298         * math/auto-libm-test-out: Regenerated.
30299         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
30300         (pow_tonearest_test_data): Remove.
30301         (pow_test_tonearest): Likewise.
30302         (pow_towardzero_test_data): Likewise.
30303         (pow_test_towardzero): Likewise.
30304         (pow_downward_test_data): Likewise.
30305         (pow_test_downward): Likewise.
30306         (pow_upward_test_data): Likewise.
30307         (pow_test_upward): Likewise.
30308         (main): Don't call removed functions.
30309         * sysdeps/i386/fpu/libm-test-ulps: Update.
30310         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30311
30312 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30313
30314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
30315         Moved ...
30316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
30317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30318         Moved ...
30319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
30320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
30321         Moved ...
30322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
30323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30324         Moved ...
30325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
30326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30327         File removed.
30328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
30329         File removed.
30330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
30331         File removed.
30332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
30333         File removed.
30334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
30335         File removed.
30336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
30337         File removed.
30338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
30339         File removed.
30340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
30341         File removed.
30342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
30343         File removed.
30344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
30345         File removed.
30346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
30347         File removed.
30348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
30349         File removed.
30350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
30351         Moved ...
30352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
30353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
30354         Moved ...
30355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
30356         ... here.
30357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
30358         Moved ...
30359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
30360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
30361         Moved ...
30362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
30363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
30364         Moved ...
30365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
30366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
30367         Moved ...
30368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
30369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
30370         Moved ...
30371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
30372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
30373         Moved ...
30374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
30375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
30376         Moved ...
30377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
30378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
30379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
30380         ... here.
30381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
30382         Moved ...
30383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
30384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
30385         Moved ...
30386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
30387         ... here.
30388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
30389         Moved ...
30390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30391         ... here.
30392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
30393         Moved ...
30394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
30395         ... here.
30396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30397         Moved ...
30398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
30399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
30400         Moved ...
30401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
30402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
30403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
30404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
30405         Moved ...
30406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
30407         ... here.
30408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
30409         Moved ...
30410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
30411         ... here.
30412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
30413         Moved ...
30414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
30415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
30416         Moved ...
30417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
30418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
30419         Moved ...
30420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
30421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30422         Moved ...
30423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
30424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
30425         Moved ...
30426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
30427         ... here.
30428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
30429         Moved ...
30430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
30431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
30432         Moved ...
30433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
30434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
30435         Moved ...
30436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
30437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
30438         Moved ...
30439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
30440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
30441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
30442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
30443         Moved ...
30444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
30445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
30446         Moved ...
30447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
30448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
30449         Moved ...
30450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
30451         ... here.
30452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
30453         Moved ...
30454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
30455         ... here.
30456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
30457         Moved ...
30458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
30459         ... here.
30460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
30461         Moved ...
30462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
30463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
30464         Moved ...
30465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
30466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
30467         Moved ...
30468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
30469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
30470         Moved ...
30471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
30472         ... here.
30473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
30474         Moved ...
30475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
30476         ... here.
30477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
30478         Moved ...
30479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
30480         ... here.
30481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
30482         Moved ...
30483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
30484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30485         Moved ...
30486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
30487
30488 2014-06-23  Will Newton  <will.newton@linaro.org>
30489             Wilco  <wdijkstr@arm.com>
30490
30491         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
30492         implementation.  Include get-rounding-mode.h.
30493         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
30494         [!libc_feholdsetround_noex_ctx]: Define
30495         libc_feholdsetround_noex_ctx.
30496         [!libc_feholdsetround_noexf_ctx]: Define
30497         libc_feholdsetround_noexf_ctx.
30498         [!libc_feholdsetround_noexl_ctx]: Define
30499         libc_feholdsetround_noexl_ctx.
30500         (libc_feholdsetround_ctx): New function.
30501         (libc_feresetround_ctx): New function.
30502         (libc_feholdsetround_noex_ctx): New function.
30503         (libc_feresetround_noex_ctx): New function.
30504
30505 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30506
30507         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
30508         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
30509         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
30510         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
30511         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
30512         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
30513
30514         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
30515         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
30516         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30517         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
30518         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
30519         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
30520         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
30521         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
30522         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
30523         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
30524         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
30525         Moved ...
30526         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
30527         ... here.
30528         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
30529         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
30530         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
30531         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
30532         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
30533         Moved ...
30534         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
30535         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
30536         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
30537         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
30538         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
30539         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
30540         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
30541         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
30542         Moved ...
30543         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
30544         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
30545         Moved ...
30546         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
30547         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
30548         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
30549         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
30550         Moved ...
30551         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
30552         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
30553         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
30554         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
30555         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
30556         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
30557         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
30558         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
30559         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
30560         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
30561         Moved ...
30562         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
30563         ... here.
30564         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
30565         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
30566         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
30567         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
30568         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
30569         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
30570         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
30571         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
30572         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
30573         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
30574         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
30575         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
30576         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
30577         Moved ...
30578         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
30579         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
30580         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
30581         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
30582         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
30583         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
30584         Moved ...
30585         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
30586         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
30587         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
30588         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
30589         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
30590
30591         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
30592         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
30593         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
30594         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
30595         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
30596         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
30597         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
30598         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
30599         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
30600         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
30601         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
30602         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
30603         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
30604         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
30605         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
30606         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
30607         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
30608         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
30609         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
30610         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
30611         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
30612         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
30613         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
30614         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
30615         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
30616         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
30617         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
30618         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
30619
30620 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30621
30622         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30623         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30624         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30625         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30626         (IPV6_PMTUDISC_INTERFACE): Likewise.
30627         (IPV6_PMTUDISC_OMIT): Likewise.
30628
30629 2014-06-23  Andreas Schwab  <schwab@suse.de>
30630
30631         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30632         Remove unused errout label.
30633
30634 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30635
30636         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30637         macro: hardware supports Vector Crypto instructions.
30638
30639 2014-06-23  Will Newton  <will.newton@linaro.org>
30640
30641         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30642         rather than __builtin_expect.
30643
30644         * elf/dl-lookup.c (undefined_msg): Remove variable.
30645         (_dl_lookup_symbol_x): Replace undefined_msg with string
30646         literal.
30647
30648         * elf/dl-lookup.c (do_lookup_unique): New function.
30649         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30650         to a separate function.
30651
30652 2014-06-23  Andreas Schwab  <schwab@suse.de>
30653
30654         [BZ #17079]
30655         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30656         before reading the next line.
30657
30658 2014-06-23  Will Newton  <will.newton@linaro.org>
30659
30660         * test-skeleton.c (signal_handler): Use printf and %m
30661         rather than perror.  Use printf rather than fprintf to
30662         stderr.  Use puts rather than fputs to stderr.
30663         (main): Likewise.
30664
30665 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30666
30667         * nscd/nscd.c (thread_info_t): Remove typedef.
30668         (thread_info): Remove variable.
30669
30670 2014-06-21  Allan McRae  <allan@archlinux.org>
30671
30672         * NEWS: Mention CVE-2014-4043.
30673
30674 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30675
30676         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30677         * nptl/smp.h: ... here.
30678
30679         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30680
30681         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30682         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30683         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30684         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30685
30686         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30687         * nptl/stack-aliasing.h: New file.
30688         * sysdeps/i386/i686/stack-aliasing.h: New file.
30689         * sysdeps/i386/i686/nptl/Makefile: File removed.
30690         * sysdeps/x86_64/stack-aliasing.h: New file.
30691         * sysdeps/x86_64/nptl/Makefile
30692         (CFLAGS-pthread_create.c): Variable removed.
30693
30694         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30695         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30696         old file.
30697         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30698         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30699         old file.
30700
30701 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30702
30703         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30704         (__ASSUME_SIGFRAME_V2): Remove macro.
30705         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30706         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30707         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30708         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30709         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30710         Declare as function.  Remove conditional macro definitions.
30711         (__default_rt_sa_restorer): Likewise.
30712         (__default_sa_restorer_v1): Remove declaration.
30713         (__default_sa_restorer_v2): Likewise.
30714         (__default_rt_sa_restorer_v1): Likewise.
30715         (__default_rt_sa_restorer_v2): Likewise.
30716         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30717         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30718         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30719
30720 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30721
30722         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30723         (libpthread-routines): Add sysdep.
30724         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30725         * sysdeps/unix/sysv/linux/sparc/Versions
30726         (libpthread: GLIBC_2.3.3): New version set.
30727         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30728         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30729         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30730         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30731         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30732         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30733         Moved ...
30734         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30735         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30736         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30737         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30738         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30739         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30740         * sysdeps/sparc/nptl/sem_init.c: ... here.
30741         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30742         * sysdeps/sparc/nptl/sem_post.c: ... here.
30743         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30744         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30745         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30746         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30747         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30748         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30749         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30750         (libpthread-routines): Add cpu_relax.
30751         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30752         File removed.
30753         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30754         (librt: GLIBC_2.3.3): New version set.
30755         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30756         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30757         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30758         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30759         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30760         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30761         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30762         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30763         Moved ...
30764         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30765         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30766         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30767         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30768         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30769         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30770         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30771         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30772         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30773         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30774         Moved ...
30775         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30776         Update #include.
30777         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30778         Moved ...
30779         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30780         Update #include.
30781         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30782         Moved ...
30783         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30784         Update #include.
30785         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30786         Moved ...
30787         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30788         Update #include.
30789         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30790         Moved ...
30791         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30792         Update #include.
30793         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30794         Moved ...
30795         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30796         Update #include.
30797         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30798         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30799         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30800         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30801         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30802         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30803         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30804         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30805         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30806         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30807         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30808         Moved ...
30809         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30810         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30811         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30812         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30813         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30814
30815 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30816
30817         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30818         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30819         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30820         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30821         * nscd/nscd.c: Likewise.
30822         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30823         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30824         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30825         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30826
30827         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30828         <kernel-features.h>.
30829         (init_mq_netlink): Remove conditional have_sock_cloexec
30830         definitions.  Remove code conditional on have_sock_cloexec < 0.
30831         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30832         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30833         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30834         <kernel-features.h>.
30835         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30836         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30837
30838 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30839
30840         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30841         Add tests for memset_chk and memset.
30842
30843         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30844         with AVX2_Usable.
30845
30846 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30847
30848         [BZ #16046]
30849         * elf/tst-dl-iter-static.c: New file.
30850         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30851
30852         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30853         error.
30854
30855 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30856
30857         * sysdeps/unix/sysv/linux/kernel-features.h
30858         (__ASSUME_F_GETOWN_EX): Remove macro.
30859         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30860         <kernel-features.h>.
30861         (miss_F_GETOWN_EX): Remove variable or macro.
30862         (do_fcntl): Do not check miss_F_GETOWN_EX.
30863         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30864
30865         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30866         Remove macro.
30867         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30868         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30869         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30870
30871         * sysdeps/unix/sysv/linux/kernel-features.h
30872         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30873         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30874         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30875         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30876
30877 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30878
30879         [BZ #17075]
30880         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30881         Fix calculation of the symbol's value.
30882         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30883         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30884         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30885         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30886         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30887         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30888         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30889         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30890         (modules-names): Add `tst-armtlsdescmod',
30891         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30892         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30893         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30894         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30895         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30896         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30897         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30898         ($(objpfx)tst-armtlsdescloc): New dependency.
30899         ($(objpfx)tst-armtlsdescextnow): Likewise.
30900         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30901         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30902         TLS scheme support.
30903         * sysdeps/arm/configure: Regenerate.
30904
30905 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30906
30907         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30908         (__atfct_seterrno_2): Likewise.
30909         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30910         <kernel-features.h>.
30911         (__ASSUME_ATFCTS): Do not undefine and redefine.
30912         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30913         (__have_atfcts): Remove conditional definition.
30914         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30915         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30916         unreachable if [__ASSUME_ATFCTS].
30917         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30918         not undefine and redefine.
30919         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30920         <kernel-features.h>.
30921         (faccessat) [__NR_faccessat]: Make code unconditional.
30922         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30923         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30924         <kernel-features.h>.
30925         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30926         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30927         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30928         <kernel-features.h>.
30929         (fchownat) [__NR_fchownat]: Make code unconditional.
30930         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30931         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30932         <kernel-features.h>.
30933         (futimesat) [__NR_futimesat]: Make code unconditional.
30934         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30935         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30936         <kernel-features.h>.
30937         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30938         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30939         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30940         <kernel-features.h>.
30941         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30942         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30943         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30944         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30945         <kernel-features.h>.
30946         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30947         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30948         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30949         <kernel-features.h>.
30950         (linkat) [__NR_linkat]: Make code unconditional.
30951         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30952         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30953         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30954         <kernel-features.h>.
30955         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30956         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30957         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30958         <kernel-features.h>.
30959         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30960         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30961         * sysdeps/unix/sysv/linux/openat.c: Do not include
30962         <kernel-features.h>.
30963         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30964         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30965         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30966         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30967         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30968         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30969         <kernel-features.h>.
30970         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30971         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30972         result of INLINE_SYSCALL directly, not via int variable.
30973         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30974         <kernel-features.h>.
30975         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30976         (renameat) [__NR_renameat]: Make code unconditional.
30977         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30978         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30979         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30980         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30981         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30982         (__ASSUME_ATFCTS): Do not undefine and redefine.
30983         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30984         <kernel-features.h>.
30985         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30986         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30987         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30988         <kernel-features.h>.
30989         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30990         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30991         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30992         (__ASSUME_ATFCTS): Do not undefine and redefine.
30993         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30994         <kernel-features.h>.
30995         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30996         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30997         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30998         <kernel-features.h>.
30999         (__xmknodat) [__NR_mknodat]: Make code unconditional.
31000         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
31001
31002 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
31003
31004         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
31005
31006 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
31007
31008         [BZ #17069]
31009         * posix/regcomp.c (parse_reg_exp): Deallocate partially
31010         constructed tree before returning error.
31011         * posix/bug-regexp36.c: Expand test case.
31012
31013 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
31014
31015         [BZ #6803]
31016         * math/libm-test.inc (scalbln_test_date):
31017         Add errno expectations.
31018         * math/w_scalblnf.c: New File.
31019         Add wrapper which checks for setting errno to ERANGE.
31020         Add weak_alias for corresponding scalbln function.
31021         * math/w_scalbln.c: Likewise.
31022         * math/w_scalblnl.c: Likewise.
31023         * math/Makefile (libm-calls): Add w_scalbln.
31024         * sysdeps/ieee754/flt-32/s_scalblnf.c:
31025         Remove weak_alias for corresponding scalbln function.
31026         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
31027         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
31028         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31029         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31030         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
31031         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
31032         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
31033         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
31034         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
31035         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
31036         Remove long_double_symbol for scalblnl function in libm, libc.
31037         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
31038         Add wrapper which checks for setting errno to ERANGE.
31039         Add long_double_symbol for scalblnl function in libm, libc.
31040         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
31041         Remove long_double_symbol for scalblnl in libm.
31042         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
31043         Add wrapper which checks for setting errno to ERANGE.
31044         Add long_double_symbol for scalblnl function in libm.
31045         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
31046         Do not use wrapper because of own implementation.
31047
31048 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
31049
31050         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
31051         3 bytes for __pad1 for x32.
31052         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
31053
31054 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
31055             H.J. Lu  <hongjiu.lu@intel.com>
31056
31057         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
31058         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
31059         * sysdeps/x86_64/multiarch/memset.S: Likewise.
31060         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
31061         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
31062
31063 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
31064
31065         [BZ #17069]
31066         * posix/regcomp.c (parse_expression): Deallocate partially
31067         constructed tree before returning error.
31068         * posix/Makefile.c (tests): Add bug-regex36.
31069         (generated): Add bug-regex36.mtrace.
31070         (tests-special): Add $(objpfx)bug-regex36-mem.out
31071         (bug-regex36-ENV): New variable.
31072         ($(objpfx)bug-regex36-mem.out): New rule.
31073         * posix/bug-regex36.c: New file.
31074
31075 2014-06-19  Will Newton  <will.newton@linaro.org>
31076
31077         * malloc/malloc.c (systrim): If extra is zero then return
31078         early.
31079
31080 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31081
31082         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
31083
31084 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
31085
31086         * sysdeps/aarch64/strchr.S: New file.
31087
31088 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31089
31090         [BZ #17022]
31091         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
31092         from arguments -2 or below.
31093         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
31094         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
31095
31096 2014-06-18  Andreas Schwab  <schwab@suse.de>
31097
31098         [BZ #17062]
31099         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
31100         of a bracket expr not to run off the end of the string.
31101         * posix/Makefile (tests): Add tst-fnmatch3.
31102         * posix/tst-fnmatch3.c: New file.
31103
31104 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31105
31106         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
31107         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31108         [$(cross-compiling) = no]: Likewise.
31109         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31110         [$(cross-compiling) = no]: Likewise.
31111
31112 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31113
31114         [BZ #17031]
31115         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
31116         double, adjusted for any remainder from the high double.
31117         * math/libm-test.inc (nearbyint): Add tests.
31118         (rint): Likewise.
31119
31120 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31121
31122         * nptl/sysdeps/powerpc/Makefile: Moved ...
31123         * sysdeps/powerpc/nptl/Makefile: ... here.
31124         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
31125         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
31126         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
31127         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
31128         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
31129         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
31130         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
31131         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
31132         * nptl/sysdeps/powerpc/tls.h: Moved ...
31133         * sysdeps/powerpc/nptl/tls.h: ... here.
31134
31135 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
31136
31137         [BZ #16681]
31138         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
31139         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
31140         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
31141         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
31142         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
31143         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
31144         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
31145         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
31146         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
31147
31148 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
31149
31150         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
31151
31152 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
31153
31154         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
31155         defined operator.
31156
31157         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
31158         $TIMEOUTFACTOR.
31159
31160 2014-06-16  Florian Weimer  <fweimer@redhat.com>
31161
31162         [BZ #17058]
31163         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
31164         non-executed part of the test.
31165
31166 2014-06-16  Andreas Schwab  <schwab@suse.de>
31167
31168         * string/bits/string2.h (strdup, strndup): Update feature guard.
31169
31170 2014-06-14  David S. Miller  <davem@davemloft.net>
31171
31172         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31173
31174 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
31175
31176         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
31177         that was previously under [RESET_PID].
31178         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
31179
31180         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
31181         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
31182         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
31183         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31184         (__libc_vfork): New strong alias.
31185         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
31186
31187 2014-06-14 Andi Kleen  <ak@linux.intel.com>
31188
31189         * sysdeps/generic/elide.h: New file.
31190
31191 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31192
31193         * Makefile (installed-headers): Adjust path of pthread.h header.
31194
31195 2014-06-13  Roland McGrath  <roland@hack.frob.com>
31196
31197         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
31198         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
31199         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
31200         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
31201
31202         * nptl/sysdeps/s390/Makefile: Moved ...
31203         * sysdeps/s390/nptl/Makefile: ... here.
31204         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
31205         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
31206         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
31207         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
31208         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
31209         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
31210         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
31211         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
31212         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
31213         * sysdeps/s390/nptl/pthreaddef.h: ... here.
31214         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
31215         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
31216         * nptl/sysdeps/s390/tls.h: Moved ...
31217         * sysdeps/s390/nptl/tls.h: ... here.
31218
31219         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
31220         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
31221
31222 2014-06-13  David S. Miller  <davem@davemloft.net>
31223
31224         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
31225         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
31226         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
31227         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
31228         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
31229         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
31230         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
31231         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
31232         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
31233         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
31234         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
31235         Remove RESET_PID cpp guards.
31236         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
31237         Remove RESET_PID cpp guards.
31238         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
31239
31240 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
31241
31242         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
31243         __sp to uintptr_t.
31244
31245 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31246
31247         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
31248         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
31249         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
31250         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
31251         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
31252         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
31253         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
31254         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
31255         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
31256         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
31257         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
31258         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
31259         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
31260         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
31261         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
31262         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
31263         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
31264         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
31265         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
31266         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
31267
31268         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
31269         (pthread_rwlock_rdlock): Add elision.
31270         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
31271         (pthread_rwlock_wrlock): Add elision.
31272         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
31273         (pthread_rwlock_trywrlock): Add elision.
31274         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
31275         (pthread_rwlock_tryrdlock): Add elision.
31276         * nptl/pthread_rwlock_unlock.c: Include elide.h.
31277         (pthread_rwlock_tryrdlock): Add elision unlock.
31278         * nptl/sysdeps/pthread/pthread.h:
31279         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
31280         (PTHREAD_RWLOCK_INITIALIZER,
31281         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
31282         Handle new elision field.
31283         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
31284         * sysdeps/arm/nptl/bits/pthreadtypes.h
31285         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31286         * sysdeps/sh/nptl/bits/pthreadtypes.h
31287         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31288         * sysdeps/tile/nptl/bits/pthreadtypes.h
31289         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31290         * sysdeps/a/nptl/bits/pthreadtypes.h
31291         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31292         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
31293         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31294         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
31295         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31296         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
31297         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31298         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
31299         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31300         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
31301         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31302         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
31303         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31304         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
31305         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31306         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
31307         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31308         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
31309         (elision_init): Set try_xbegin to zero when no RTM.
31310         * sysdeps/x86/nptl/bits/pthreadtypes.h
31311         (pthread_rwlock_t): Change __pad1 to __rwelision.
31312         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31313
31314 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31315
31316         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
31317         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
31318         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
31319         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
31320
31321 2014-06-13  Meador Inge  <meadori@codesourcery.com>
31322
31323         [BZ #16996]
31324         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
31325         that the cached result has been set before returning it.
31326
31327 2014-06-12  Roland McGrath  <roland@hack.frob.com>
31328
31329         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
31330         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
31331         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
31332         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
31333         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
31334         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
31335
31336         * nptl/sysdeps/sparc/Makefile: Moved ...
31337         * sysdeps/sparc/nptl/Makefile: ... here.
31338         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
31339         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
31340         * nptl/sysdeps/sparc/tls.h: Moved ...
31341         * sysdeps/sparc/nptl/tls.h: ... here.
31342         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
31343         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
31344         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
31345         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
31346         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
31347         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
31348         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
31349         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
31350         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
31351         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
31352         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
31353         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
31354         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
31355         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
31356         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
31357         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
31358         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
31359         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
31360         Update #include.
31361         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
31362         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
31363         Update #include.
31364         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
31365         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
31366         Update #include.
31367         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
31368         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
31369         Update #include.
31370
31371         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31372
31373         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
31374         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
31375
31376         * sysdeps/pthread/posix-timer.h: Include <list.h>.
31377         (struct list_links): Type removed.
31378         (struct thread_node, struct timer_node): Replace struct list_links
31379         with struct list_head.
31380         (list_unlink_ip): Likewise.
31381         * sysdeps/pthread/timer_routines.c
31382         (timer_free_list, thread_free_list, thread_active_list): Likewise.
31383         (list_append, list_insbefore): Likewise.
31384         (list_init): Function removed.
31385         (thread_init, init_module): Use INIT_LIST_HEAD instead.
31386         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
31387         * sysdeps/pthread/Makefile: ... here, new file.
31388
31389         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
31390         * sysdeps/nptl/Implies: ... here.
31391         * sysdeps/unix/sysv/linux/Implies: Add nptl.
31392         * nptl/sysdeps/pthread/list.h: Moved ...
31393         * include/list.h: ... here.
31394         * nptl/sysdeps/pthread/createthread.c: Moved ...
31395         * nptl/createthread.c: ... here.
31396         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
31397         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
31398         * nptl/pt-longjmp.c: ... here.
31399         * nptl/sysdeps/pthread/Makefile: Moved ...
31400         * sysdeps/nptl/Makefile: ... here.
31401         * nptl/sysdeps/pthread/Subdirs: Moved ...
31402         * sysdeps/nptl/Subdirs: ... here.
31403         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
31404         * sysdeps/nptl/aio_misc.h: ... here.
31405         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
31406         * sysdeps/nptl/bits/libc-lock.h: ... here.
31407         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
31408         * sysdeps/nptl/bits/libc-lockP.h: ... here.
31409         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
31410         * sysdeps/nptl/bits/stdio-lock.h: ... here.
31411         * nptl/sysdeps/pthread/configure: Moved ...
31412         * sysdeps/nptl/configure: ... here.
31413         * nptl/sysdeps/pthread/configure.ac: Moved ...
31414         * sysdeps/nptl/configure.ac: ... here.
31415         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
31416         * sysdeps/nptl/gai_misc.h: ... here.
31417         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
31418         * sysdeps/nptl/librt-cancellation.c: ... here.
31419         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
31420         * sysdeps/nptl/malloc-machine.h: ... here.
31421         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
31422         * sysdeps/nptl/pthread-functions.h: ... here.
31423         * nptl/sysdeps/pthread/pthread.h: Moved ...
31424         * sysdeps/nptl/pthread.h: ... here.
31425         * nptl/sysdeps/pthread/setxid.h: Moved ...
31426         * sysdeps/nptl/setxid.h: ... here.
31427         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
31428         * sysdeps/nptl/sigfillset.c: ... here.
31429         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
31430         * sysdeps/nptl/tcb-offsets.h: ... here.
31431         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
31432         * sysdeps/nptl/tst-mqueue8x.c: ... here.
31433         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
31434         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
31435         * nptl/sysdeps/pthread/allocalim.h: Moved ...
31436         * sysdeps/pthread/allocalim.h: ... here.
31437         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
31438         * sysdeps/pthread/bits/sigthread.h: ... here.
31439         * nptl/sysdeps/pthread/flockfile.c: Moved ...
31440         * sysdeps/pthread/flockfile.c: ... here.
31441         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
31442         * sysdeps/pthread/ftrylockfile.c: ... here.
31443         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
31444         * sysdeps/pthread/funlockfile.c: ... here.
31445         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
31446         * sysdeps/pthread/posix-timer.h: ... here.
31447         * nptl/sysdeps/pthread/timer_create.c: Moved ...
31448         * sysdeps/pthread/timer_create.c: ... here.
31449         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
31450         * sysdeps/pthread/timer_delete.c: ... here.
31451         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
31452         * sysdeps/pthread/timer_getoverr.c: ... here.
31453         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
31454         * sysdeps/pthread/timer_gettime.c: ... here.
31455         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
31456         * sysdeps/pthread/timer_routines.c: ... here.
31457         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
31458         * sysdeps/pthread/timer_settime.c: ... here.
31459         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
31460         * sysdeps/pthread/tst-timer.c: ... here.
31461         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
31462         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
31463
31464         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
31465         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
31466
31467         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
31468         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
31469         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
31470         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
31471         Update #include target.
31472         * nptl/sysdeps/i386/i686/Makefile: Moved ...
31473         * sysdeps/i386/i686/nptl/Makefile: ... here.
31474         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
31475         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
31476         Update #include target.
31477         * nptl/sysdeps/i386/i686/tls.h: Moved ...
31478         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
31479         * nptl/sysdeps/i386/Makefile: Moved ...
31480         * sysdeps/i386/nptl/Makefile: ... here.
31481         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
31482         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
31483         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
31484         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
31485         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
31486         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
31487         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
31488         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
31489         * sysdeps/i386/nptl/pthreaddef.h: ... here.
31490         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
31491         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
31492         * nptl/sysdeps/i386/tls.h: Moved ...
31493         * sysdeps/i386/nptl/tls.h: ... here.
31494
31495         * sysdeps/sh/Makefile [$(subdir) = csu]
31496         (gen-as-const-headers): Add tcb-offsets.sym.
31497         * nptl/sysdeps/sh/Makefile: File removed.
31498         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
31499         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
31500         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
31501         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
31502         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
31503         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
31504         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
31505         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
31506         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
31507         * sysdeps/sh/nptl/pthreaddef.h: ... here.
31508         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
31509         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
31510         * nptl/sysdeps/sh/tls.h: Moved ...
31511         * sysdeps/sh/nptl/tls.h: ... here.
31512         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
31513         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
31514         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
31515         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
31516         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
31517         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
31518         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
31519         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
31520         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
31521         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
31522         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
31523         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
31524         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
31525         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
31526         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
31527         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
31528         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
31529         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
31530         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
31531         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
31532         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
31533         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
31534         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
31535         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
31536         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
31537         Moved ...
31538         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
31539         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
31540         Moved ...
31541         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
31542         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
31543         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
31544         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
31545         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
31546         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
31547         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
31548         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
31549         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
31550         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
31551         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
31552         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
31553         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
31554         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
31555         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
31556         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
31557         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
31558         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
31559         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
31560
31561 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
31562
31563         * posix/spawn_faction_addopen.c: Include string.h.
31564
31565 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31566
31567         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
31568         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
31569         * nptl/sysdeps/x86_64/Makefile: Moved ...
31570         * sysdeps/x86_64/nptl/Makefile: ... here.
31571         * nptl/sysdeps/x86_64/configure: Moved ...
31572         * sysdeps/x86_64/nptl/configure: ... here.
31573         * nptl/sysdeps/x86_64/configure.ac: Moved ...
31574         * sysdeps/x86_64/nptl/configure.ac: ... here.
31575         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
31576         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
31577         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
31578         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
31579         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
31580         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
31581         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
31582         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
31583         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
31584         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
31585         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
31586         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
31587         * nptl/sysdeps/x86_64/tls.h: Moved ...
31588         * sysdeps/x86_64/nptl/tls.h: ... here.
31589         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
31590         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
31591         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
31592         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
31593
31594         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
31595
31596 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31597
31598         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31599
31600 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
31601
31602         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
31603         type.
31604         [POSIX] (off_t): Likewise.
31605         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
31606         [POSIX] (S_ISBLK): Require macro.
31607         [POSIX] (S_ISCHR): Likewise.
31608         [POSIX] (S_ISDIR): Likewise.
31609         [POSIX] (S_ISFIFO): Likewise.
31610         [POSIX] (S_ISREG): Likewise.
31611         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
31612         optional-macro.
31613         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
31614         type.
31615         [POSIX] (time_t): Likewise.
31616         [POSIX] (timer_t): Likewise.
31617
31618 2014-06-11  Florian Weimer  <fweimer@redhat.com>
31619
31620         [BZ #17048]
31621         * posix/spawn_int.h (struct __spawn_action): Make the path string
31622         non-const to support deallocation.
31623         * posix/spawn_faction_addopen.c
31624         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31625         * posix/spawn_faction_destroy.c
31626         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31627         path in all spawn_do_open actions.
31628         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31629         posix_spawn_file_actions_addopen.
31630
31631 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31632
31633         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31634         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31635         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31636         conditional code always true.
31637         (__libc_vfork): New alias.
31638
31639 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31640
31641         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31642         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31643
31644         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31645
31646         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31647         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31648
31649         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31650         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31651
31652         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31653         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31654
31655 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31656
31657         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31658         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31659         multiarch strcmp for PPC64.
31660         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31661         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31662         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31663         multiarch optimizations.
31664         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31665         (__libc_ifunc_impl_list): Likewise.
31666
31667 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31668
31669         * benchtests/scripts/validate_benchout.py: New script.
31670         * benchtests/Makefile (bench-func): Call it.
31671         * benchtests/scripts/benchout.schema.json: New file.
31672
31673 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31674
31675         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31676         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31677         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31678         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31679         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31680         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31681         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31682         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31683         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31684         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31685         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31686         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31687         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31688         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31689         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31690         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31691         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31692         Moved ...
31693         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31694         ... here.
31695         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31696         Moved ...
31697         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31698         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31699         Moved ...
31700         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31701         ... here.
31702         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31703         Moved ...
31704         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31705         ... here.
31706         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31707         Moved ...
31708         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31709         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31710         Moved ...
31711         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31712         ... here.
31713         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31714         Moved ...
31715         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31716         ... here.
31717         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31718         Moved ...
31719         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31720         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31721         Moved ...
31722         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31723         ... here.
31724         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31725         Moved ...
31726         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31727         ... here.
31728         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31729         Moved ...
31730         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31731         ... here.
31732         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31733         Moved ...
31734         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31735         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31736         Moved ...
31737         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31738         ... here.
31739         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31740         Moved ...
31741         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31742         ... here.
31743         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31744         Moved ...
31745         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31746         ... here.
31747         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31748         Moved ...
31749         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31750         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31751         Moved ...
31752         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31753         ... here.
31754         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31755         Moved ...
31756         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31757         ... here.
31758         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31759         Moved ...
31760         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31761         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31762         Moved ...
31763         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31764         ... here.
31765         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31766         Moved ...
31767         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31768         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31769         Moved ...
31770         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31771         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31772         Moved ...
31773         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31774         ... here.
31775         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31776         Moved ...
31777         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31778         ... here.
31779         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31780         Moved ...
31781         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31782         ... here.
31783         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31784         Moved ...
31785         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31786         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31787         Moved ...
31788         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31789         ... here.
31790         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31791         Moved ...
31792         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31793         ... here.
31794         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31795         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31796         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31797         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31798         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31799         Moved ...
31800         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31801         ... here.
31802         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31803         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31804         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31805         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31806         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31807         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31808         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31809         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31810         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31811         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31812         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31813         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31814         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31815         Moved ...
31816         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31817         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31818         Moved ...
31819         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31820         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31821         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31822         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31823         Moved ...
31824         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31825         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31826         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31827         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31828         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31829         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31830         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31831
31832 2014-06-10  Wilco  <wdijkstr@arm.com>
31833
31834         * math/test-fenv-return.c: New file.
31835         * math/Makefile: Add new test test-fenv-return.
31836
31837 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31838
31839         [BZ #17042]
31840         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31841         when x - 1 is zero.
31842         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31843         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31844         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31845         0.0L for an argument of 1.0L.
31846         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31847         Likewise.
31848         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31849         value when x - 1 is zero.
31850         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31851         * sysdeps/i386/fpu/libm-test-ulps: Update.
31852         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31853
31854 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31855
31856         [BZ #15119]
31857         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31858
31859 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31860
31861         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31862         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31863
31864 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31865
31866         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31867         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31868
31869         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31870         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31871
31872         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31873         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31874
31875         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31876         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31877
31878         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31879         if not already defined.
31880         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31881         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31882         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31883         (TLS_INIT_TP): Use it.
31884         (TLS_DEFINE_INIT_TP): New macro.
31885         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31886
31887 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31888
31889         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31890         constant.
31891         [POSIX] (IXANY): Likewise.
31892         [POSIX] (OLCUC): Likewise.
31893         [POSIX || POSIX2008] (CBAUD): Do not allow.
31894         [POSIX || POSIX2008] (DEFECHO): Likewise.
31895         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31896         [POSIX || POSIX2008] (ECHOKE): Likewise.
31897         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31898         [POSIX || POSIX2008] (EXTA): Likewise.
31899         [POSIX || POSIX2008] (EXTB): Likewise.
31900         [POSIX || POSIX2008] (FLUSHO): Likewise.
31901         [POSIX || POSIX2008] (LOBLK): Likewise.
31902         [POSIX || POSIX2008] (PENDIN): Likewise.
31903         [POSIX || POSIX2008] (SWTCH): Likewise.
31904         [POSIX || POSIX2008] (VDISCARD): Likewise.
31905         [POSIX || POSIX2008] (VDSUSP): Likewise.
31906         [POSIX || POSIX2008] (VLNEXT): Likewise.
31907         [POSIX || POSIX2008] (VREPRINT): Likewise.
31908         [POSIX || POSIX2008] (VSTATUS): Likewise.
31909         [POSIX || POSIX2008] (VWERASE): Likewise.
31910         (B*): Change to B[0123456789]*.
31911         * conform/data/time.h-data [POSIX || UNIX98]
31912         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31913         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31914         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31915         [POSIX] (tm_*): Do not allow.
31916
31917 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31918
31919         * Makefile (install): Don't set LANGUAGE.
31920         * Makefile.in (install): Likewise.
31921         * assert/Makefile (test-assert-ENV): Remove variable.
31922         (test-assert-perr-ENV): Likewise.
31923         * elf/Makefile (neededtest4-ENV): Likewise.
31924         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31925         [$(cross-compiling) = no]: Don't set LANGUAGE.
31926         * io/ftwtest-sh (LANG): Remove variable.
31927         * libio/Makefile (tst-widetext-ENV): Likewise.
31928         * manual/install.texi (Running make install): Don't refer to
31929         environment settings for make install.
31930         * INSTALL: Regenerated.
31931         * nptl/tst-tls6.sh: Don't set LANG.
31932         * posix/globtest.sh (LANG): Remove variable.
31933         * string/Makefile (tester-ENV): Likewise.
31934         (inl-tester-ENV): Likewise.
31935         (noinl-tester-ENV): Likewise.
31936         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31937         [$(cross-compiling) = no]: Don't set LANGUAGE.
31938         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31939         without explicit environment settings.
31940
31941 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31942
31943         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31944         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31945         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31946         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31947
31948 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31949
31950         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31951         other files in the crypt directory.
31952         * crypt/crypt.c: Remove duplicate includes.
31953         * crypt/crypt-entry.c: Likewise.
31954         * crypt/crypt_util.c: Likewise.
31955
31956 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31957
31958         * Makeconfig (run-program-env): New variable.
31959         (run-program-prefix-before-env): Likewise.
31960         (run-program-prefix-after-env): Likewise.
31961         (run-program-prefix): Define in terms of new variables.
31962         (built-program-cmd-before-env): New variable.
31963         (built-program-cmd-after-env): Likewise.
31964         (built-program-cmd): Define in terms of new variables.
31965         (test-program-prefix-before-env): New variable.
31966         (test-program-prefix-after-env): Likewise.
31967         (test-program-prefix): Define in terms of new variables.
31968         (test-program-cmd-before-env): New variable.
31969         (test-program-cmd-after-env): Likewise.
31970         (test-program-cmd): Define in terms of new variables.
31971         * Rules (make-test-out): Use $(run-program-env).
31972         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31973         (help): Do not mention environment variables.  Mention
31974         --timeoutfactor option.
31975         (timeoutfactor): New variable.
31976         (blacklist_exports): Remove function.
31977         (exports): Remove variable.
31978         (command): Do not include ${exports}.
31979         * manual/install.texi (Configuring and compiling): Do not mention
31980         test wrappers preserving environment variables.  Mention that last
31981         assignment to a variable must take precedence.
31982         * INSTALL: Regenerated.
31983         * benchtests/Makefile (run-bench): Use $(run-program-env).
31984         * catgets/Makefile ($(objpfx)test1.cat): Use
31985         $(built-program-cmd-before-env), $(run-program-env) and
31986         $(built-program-cmd-after-env).
31987         ($(objpfx)test2.cat): Do not specify environment variables
31988         explicitly.
31989         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31990         $(run-program-env) and $(built-program-cmd-after-env).
31991         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31992         $(run-program-env) and $(test-program-cmd-after-env).
31993         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31994         explicitly.
31995         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31996         run_program_env and test_program_cmd_after_env arguments.
31997         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31998         * elf/tst-pathopt.sh: Use run_program_env argument.
31999         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
32000         $(test-wrapper-env) and $(run-program-env).
32001         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
32002         run_program_env arguments.
32003         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
32004         * intl/Makefile ($(objpfx)tst-gettext.out): Use
32005         $(test-program-prefix-before-env), $(run-program-env) and
32006         $(test-program-prefix-after-env).
32007         ($(objpfx)tst-gettext2.out): Likewise.
32008         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
32009         run_program_env and test_program_prefix_after_env arguments.
32010         * intl/tst-gettext2.sh: Likewise.
32011         * intl/tst-gettext4.sh: Do not set environment variables
32012         explicitly.
32013         * intl/tst-gettext6.sh: Likewise.
32014         * intl/tst-translit.sh: Likewise.
32015         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
32016         $(test-program-prefix-before-env), $(run-program-env) and
32017         $(test-program-prefix-after-env).
32018         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
32019         run_program_env and test_program_prefix_after_env arguments.
32020         * math/Makefile (run-regen-ulps): Use $(run-program-env).
32021         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
32022         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
32023         explicitly with each use of ${test_wrapper_env}.
32024         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
32025         $(test-program-prefix-before-env), $(run-program-env) and
32026         $(test-program-prefix-after-env).
32027         * posix/tst-getconf.sh: Do not set environment variables
32028         explicitly.
32029         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
32030         run_program_env and test_program_prefix_after_env arguments.
32031         * stdio-common/tst-printf.sh: Do not set environment variables
32032         explicitly.
32033         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
32034         $(test-program-prefix-before-env), $(run-program-env) and
32035         $(test-program-prefix-after-env).
32036         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
32037         run_program_env and test_program_prefix_after_env arguments.
32038         Split $test calls into $test_pre and $test.
32039         * timezone/Makefile (build-testdata): Use
32040         $(built-program-cmd-before-env), $(run-program-env) and
32041         $(built-program-cmd-after-env).
32042
32043 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32044
32045         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
32046         strlen for non SHARED builds.
32047
32048 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
32049
32050         * nptl/allocatestack.c (check_list): Inlined function...
32051         (__reclaim_stacks): ... here.
32052
32053 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
32054
32055         [BZ #15698]
32056         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
32057         memory overrun.
32058
32059 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
32060
32061         * Rules (make-test-out): Include
32062         LOCPATH=$(common-objpfx)localedata in default environment.
32063         * debug/Makefile (tst-chk1-ENV): Remove variable.
32064         (tst-chk2-ENV): Likewise.
32065         (tst-chk3-ENV): Likewise.
32066         (tst-chk4-ENV): Likewise.
32067         (tst-chk5-ENV): Likewise.
32068         (tst-chk6-ENV): Likewise.
32069         (tst-lfschk1-ENV): Likewise.
32070         (tst-lfschk2-ENV): Likewise.
32071         (tst-lfschk3-ENV): Likewise.
32072         (tst-lfschk4-ENV): Likewise.
32073         (tst-lfschk5-ENV): Likewise.
32074         (tst-lfschk6-ENV): Likewise.
32075         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
32076         (tst-iconv7-ENV): Likewise.
32077         * intl/Makefile (LOCPATH-ENV): Likewise.
32078         (tst-codeset-ENV): Likewise.
32079         (tst-gettext3-ENV): Likewise.
32080         (tst-gettext5-ENV): Likewise.
32081         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
32082         (tst-fopenloc-ENV): Likewise.
32083         (tst-fgetws-ENV): Remove variable.
32084         (tst-ungetwc1-ENV): Likewise.
32085         (tst-ungetwc2-ENV): Likewise.
32086         (bug-ungetwc2-ENV): Likewise.
32087         (tst-swscanf-ENV): Likewise.
32088         (bug-ftell-ENV): Likewise.
32089         (tst-fgetwc-ENV): Likewise.
32090         (tst-fseek-ENV): Likewise.
32091         (tst-ftell-partial-wide-ENV): Likewise.
32092         (tst-ftell-active-handler-ENV): Likewise.
32093         (tst-ftell-append-ENV): Likewise.
32094         * posix/Makefile (tst-fnmatch-ENV): Likewise.
32095         (tst-regexloc-ENV): Likewise.
32096         (bug-regex1-ENV): Likewise.
32097         (tst-regex-ENV): Likewise.
32098         (tst-regex2-ENV): Likewise.
32099         (bug-regex5-ENV): Likewise.
32100         (bug-regex6-ENV): Likewise.
32101         (bug-regex17-ENV): Likewise.
32102         (bug-regex18-ENV): Likewise.
32103         (bug-regex19-ENV): Likewise.
32104         (bug-regex20-ENV): Likewise.
32105         (bug-regex22-ENV): Likewise.
32106         (bug-regex23-ENV): Likewise.
32107         (bug-regex25-ENV): Likewise.
32108         (bug-regex26-ENV): Likewise.
32109         (bug-regex30-ENV): Likewise.
32110         (bug-regex32-ENV): Likewise.
32111         (bug-regex33-ENV): Likewise.
32112         (bug-regex34-ENV): Likewise.
32113         (bug-regex35-ENV): Likewise.
32114         (tst-rxspencer-ENV): Likewise.
32115         (tst-rxspencer-no-utf8-ENV): Likewise.
32116         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
32117         (tst-sscanf-ENV): Likewise.
32118         (tst-swprintf-ENV): Likewise.
32119         (tst-swscanf-ENV): Likewise.
32120         (test-vfprintf-ENV): Likewise.
32121         (scanf13-ENV): Likewise.
32122         (bug14-ENV): Likewise.
32123         (tst-grouping-ENV): Likewise.
32124         * stdlib/Makefile (tst-strtod-ENV): Likewise.
32125         (tst-strtod3-ENV): Likewise.
32126         (tst-strtod4-ENV): Likewise.
32127         (tst-strtod5-ENV): Likewise.
32128         (testmb2-ENV): Likewise./
32129         * string/Makefile (tst-strxfrm-ENV): Likewise.
32130         (tst-strxfrm2-ENV): Likewise.
32131         (bug-strcoll1-ENV): Likewise.
32132         (test-strcasecmp-ENV): Likewise.
32133         (test-strncasecmp-ENV): Likewise.
32134         * time/Makefile (tst-strptime-ENV): Likewise.
32135         (tst-ftime_l-ENV): Likewise.
32136         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
32137         (tst-mbrtowc-ENV): Likewise.
32138         (tst-wcrtomb-ENV): Likewise.
32139         (tst-mbrtowc2-ENV): Likewise.
32140         (tst-c16c32-1-ENV): Likewise.
32141         (tst-mbsnrtowcs-ENV): Likewise.
32142
32143 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
32144
32145         * manual/resource.texi (How to get information about the memory
32146         subsystem?): Fix typo.
32147         Reported by Peon de la Parra Ivan <peon@keba.com>
32148
32149 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
32150
32151         [BZ #16882]
32152         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
32153         (pthread_spin_lock): Branch out of spin loop to proper location.
32154         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
32155         (pthread_spin_lock): Likewise.
32156
32157         * nptl/tst-spin4.c: New test.
32158         * nptl/Makefile (tests): Add tst-spin4.
32159
32160 2014-06-03  Andreas Schwab  <schwab@suse.de>
32161
32162         [BZ #15946]
32163         * resolv/res_send.c (send_dg): Reload file descriptor after
32164         calling reopen.
32165
32166 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
32167
32168         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
32169
32170 2014-06-03  Richard Henderson  <rth@redhat.com>
32171
32172         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
32173         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
32174         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
32175         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
32176         in the SAVE_PID block.
32177         (__libc_vfork): New alias.
32178         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
32179
32180         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
32181         child in registers, not on the stack.  Remove RESET_PID conditionals.
32182         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
32183
32184 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32185
32186         * sysdeps/aarch64/libm-test-ulps: Regenerate.
32187
32188 2014-06-03  Wilco  <wdijkstr@arm.com>
32189
32190         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
32191         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
32192         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32193         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
32194         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
32195         Likewise.
32196
32197 2014-06-03  Wilco  <wdijkstr@arm.com>
32198
32199         * sysdeps/aarch64/fpu/math_private.h
32200         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
32201         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
32202         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
32203         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32204         Fix declarations.
32205
32206 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32207
32208         * crypt/crypt-private.h: Include ufc-crypt.h.
32209         (__b64_from_24bit): Declare extern.
32210         * crypt/crypt_util.c(__b64_from_24bit): New function.
32211         (b64t): New static const variable.
32212         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
32213         (b64t): Remove variable.
32214         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
32215         * crypt/sha256-crypt.c: Include crypt-private.h.
32216         (b64t): Remove variable.
32217         (__sha256_crypt_r): Remove b64_from_24bit and replace
32218         with __b64_from_24bit.
32219         * crypt/sha512-crypt.c: Likewise.
32220
32221 2014-06-02  Roland McGrath  <roland@hack.frob.com>
32222
32223         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
32224         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
32225         Label the code __libc_vfork rather than __vfork.
32226         [!NOT_IN_libc] (vfork): Define as weak alias.
32227         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
32228         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
32229         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
32230
32231 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
32232
32233         * malloc/malloc.c (malloc_info): Fix format specifier for
32234         n_mmaps.
32235
32236 2014-06-02  Wilco  <wdijkstr@arm.com>
32237
32238         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
32239         FPCR write.
32240
32241 2014-06-02  Wilco  <wdijkstr@arm.com>
32242
32243         [BZ #17009]
32244         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
32245         Rewrite to reduce FPCR/FPSR accesses.
32246
32247 2014-06-01  David S. Miller  <davem@davemloft.net>
32248
32249         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32250
32251 2014-05-31  David S. Miller  <davem@davemloft.net>
32252
32253         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
32254         to occur in round to nearest mode when |x| >= 2.0
32255
32256 2014-05-30  Richard Henderson  <rth@twiddle.net>
32257
32258         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
32259         (PSEUDO_RET_NOERRNO): Remove.
32260         (ret): Don't redefine.
32261         (ret_NOERRNO): Define in terms of ret.
32262         (ret_ERRVAL): Likewise.
32263
32264         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
32265         use of PSEUDO_RET; perform the error check directly.
32266
32267 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
32268
32269         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
32270         with __int128_t.
32271
32272 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32273
32274         * malloc/malloc (malloc_info): Fix formatting.
32275
32276 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32277             Roland McGrath  <roland@hack.frob.com>
32278
32279         * malloc/malloc (malloc_info): Also print mmapped statistics.
32280
32281 2014-05-30  Roland McGrath  <roland@hack.frob.com>
32282
32283         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
32284         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
32285
32286 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
32287
32288         * malloc/malloc.c (malloc_info): Inline mi_arena.
32289
32290 2014-05-29  Richard Henderson  <rth@twiddle.net>
32291
32292         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
32293         Remove comma before expanding ASM_ARGS_##nr.
32294         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
32295         Make _x0 a strict output; make _x8 a strict input; adjust expansion
32296         of ASM_ARGS_##nr.
32297         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
32298         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
32299         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
32300         (ASM_ARGS_1): Add leading comma.
32301
32302         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
32303         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
32304         to __errno_location.
32305         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
32306         Remove the expected plt for __errno_location.
32307
32308         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32309         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
32310         call to __read_tp.
32311
32312         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32313         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
32314         it and break it down.
32315         (DOCARGS_0, DOCARGS_1): Do nothing.
32316         (DOCARGS_2): Update to store into the new stack frame.
32317         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
32318         (UNDOCARGS_1): Update to restore from the new stack frame.
32319         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
32320         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
32321
32322         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32323         (SINGLE_THREAD_P): New parameter for result regno.
32324         (PSEUDO): Update to match; use cbz instead of beq.
32325
32326         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32327         Use ENTRY to define the _nocancel entry point.  Share the syscall
32328         and syscall error check paths with the cancel path.
32329         (PSEUDO_END): New.
32330
32331         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
32332         whitespace; tabs before and after asm mnemonics.
32333
32334 2014-05-29  Eric Wong  <normalperson@yhbt.net>
32335
32336         [BZ #15132]
32337         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32338         Call fstat64 or stat64 internally, depending on arguments passed.
32339         Replace stat buffer argument with file descriptor argument.
32340         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
32341         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
32342         Pass fd to __internal_statvfs instead of calling fstat64.
32343         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
32344         Pass fd to __internal_statvfs64 instead of calling fstat64.
32345         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
32346         Pass -1 to __internal_statvfs instead of calling stat64.
32347         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
32348         Pass -1 to __internal_statvfs64 instead of calling stat64.
32349
32350 2014-05-28  Roland McGrath  <roland@hack.frob.com>
32351
32352         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
32353         that was previously under [RESET_PID].
32354         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
32355
32356         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
32357         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
32358
32359 2014-05-27  Roland McGrath  <roland@hack.frob.com>
32360
32361         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
32362
32363         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
32364         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
32365
32366 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
32367
32368         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
32369
32370 2014-05-27  Andreas Schwab  <schwab@suse.de>
32371
32372         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
32373         TLS_INIT_TP macro.
32374         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
32375         * elf/rtld.c (init_tls, dl_main): Likewise.
32376         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
32377         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
32378         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
32379         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
32380         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
32381         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
32382         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
32383         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
32384         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
32385         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
32386         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
32387         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
32388         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
32389         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
32390         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
32391         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
32392         * sysdeps/generic/tls.h: Update description.
32393
32394 2014-05-27  Will Newton  <will.newton@linaro.org>
32395
32396         [BZ #16990]
32397         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
32398         and restore r2 rather than just restoring.
32399
32400 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
32401
32402         [BZ #16724]
32403         * libio/tst-ftell-append.c: New test case.
32404         * libio/Makefile (tests): Add test case.
32405         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
32406         append mode.
32407         * libio/wfileops.c (do_ftell_wide): Likewise.
32408
32409 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32410
32411         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32412
32413         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
32414         ...
32415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
32416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
32417         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
32418         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
32419         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
32420         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
32421         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
32422         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
32423         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
32424         Moved ...
32425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
32426         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
32427         Moved ...
32428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
32429         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
32430         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
32431         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
32432         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
32433         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
32434         ...
32435         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
32436         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
32437         Moved ...
32438         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
32439         here.
32440         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
32441         ...
32442         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
32443         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
32444         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
32445
32446         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
32447         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
32448         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
32449         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
32450
32451         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
32452         merge into ...
32453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
32454         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
32455         ...
32456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
32457         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
32458         ...
32459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
32460         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32461         Moved ...
32462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
32463         here.
32464         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32465         Moved ...
32466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
32467         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32468         Moved ...
32469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
32470
32471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
32472         conditional [RESET_PID].
32473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
32474         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
32475         removed.
32476         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
32477         removed.
32478
32479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
32480         <tcb-offsets.h>.
32481         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32482         (__libc_vfork): New strong alias.
32483         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
32484         removed.
32485         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
32486         Removed.
32487
32488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
32489         <tcb-offsets.h>.
32490         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
32491         (__libc_vfork): New strong alias.
32492         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
32493         removed.
32494         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
32495         removed.
32496
32497 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
32498
32499         * malloc/malloc.c (mi_arena): New function.
32500         (malloc_info): Remove nested function mi_arena. Call non-nosted
32501         function mi_arena.
32502
32503 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32504
32505         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
32506         by insrwi.
32507         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32508         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32509         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
32510         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
32511         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
32512         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
32513         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
32514
32515 2014-05-26  Andreas Schwab  <schwab@suse.de>
32516
32517         [BZ #16984]
32518         * locale/programs/repertoire.c (repertoire_read): Add slash
32519         between I18NPATH element and file name.
32520         * locale/programs/locfile.c (locfile_read): Likewise.
32521
32522 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32523
32524         * nptl/pthread_mutexattr_settype.c
32525         (__pthread_mutexattr_settype):
32526         Disable lock elision for PTHREAD_MUTEX_NORMAL.
32527
32528 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32529
32530         * nptl/tst-mutex5 (do_test):
32531         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
32532
32533 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32534
32535         * benchtests/README: Document 'init' directive.
32536         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
32537         BENCH_INIT.
32538         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
32539         (parse_file): Recognize 'init' directive.
32540
32541 2014-05-26  Kyle McMartin  <kyle@redhat.com>
32542
32543         [BZ #16796]
32544         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
32545         alignment of struct pthread.
32546
32547 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32548
32549         [BZ #16878]
32550         * nscd/netgroupcache.c (addgetnetgrentX): Look for
32551         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32552         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
32553         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32554
32555 2014-05-25  Richard Henderson  <rth@twiddle.net>
32556
32557         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32558         (SINGLE_THREAD_P_PIC): Remove.
32559         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
32560         (SINGLE_THREAD_P_PIC): Remove.
32561
32562         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
32563         branch to syscall error ...
32564         (PSEUDO): ... here.
32565         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
32566         from __local_syscall_error to .Lsyscall_error.
32567         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
32568         (SYSCALL_ERROR): Update label name.
32569
32570         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32571         Do not use DOARGS/UNDOARGS.
32572         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
32573         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
32574         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
32575         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
32576         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
32577
32578         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
32579         block comment.
32580
32581         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
32582         define if !NOT_IN_libc.
32583         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
32584         define with non-default symbol versions.
32585
32586 2014-05-23  Richard Henderson  <rth@twiddle.net>
32587
32588         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
32589         (vfork, __vfork): Define via compat_symbol.
32590
32591         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
32592         [!HAVE_IFUNC] (vfork_compat): Remove.
32593         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
32594
32595 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32596
32597         [BZ #16978]
32598         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
32599         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
32600         variable.
32601
32602 2014-05-23  Richard Henderson  <rth@twiddle.net>
32603
32604         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
32605         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
32606         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
32607         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
32608
32609         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
32610         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
32611         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
32612         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
32613         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
32614         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
32615         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
32616         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
32617         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
32618         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
32619         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
32620         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
32621         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32622         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32623         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32624         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32625         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32626         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32627         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32628         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32629         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32630         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32631         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32632         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32633         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32634         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32635         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32636         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32637         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32638         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32639         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32640         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32641         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32642         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32643         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32644         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32645         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32646         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32647         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32648         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32649         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32650         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32651         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32652         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32653         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32654         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32655         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32656         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32657         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32658         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32659         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32660         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32661         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32662         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32663         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32664         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32665
32666         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32667         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32668         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32669         before exiting on error.
32670         (__libc_vfork): New strong alias.
32671         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32672         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32673
32674         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32675         that was previously under [RESET_PID].
32676         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32677
32678         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32679
32680 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32681
32682         [BZ #16977]
32683         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32684         value when x - 1 is zero.
32685         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32686         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32687         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32688         0.0L for an argument of 1.0L.
32689         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32690         Likewise.
32691         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32692         value when x - 1 is zero.
32693         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32694         * sysdeps/i386/fpu/libm-test-ulps: Update.
32695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32696
32697 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32698
32699         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32700         alphasort and versionsort.
32701
32702 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32703
32704         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32705         macro.
32706         [copysignf]: Likewise.
32707
32708 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32709
32710         * crypt/md5-crypt.c: Fix formatting.
32711
32712 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32713
32714         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32715         (b64_from_24bit): New function.
32716
32717 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32718
32719         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32720         libc_hidden_builtin_def to ifunc.
32721         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32722         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32723
32724 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32725
32726         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32727         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32728
32729 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32730
32731         * nscd/Depend (linuxthreads): Remove.
32732         (nptl): Add.
32733         * resolv/Depend (linuxthreads): Remove.
32734         * rt/Depend (linuxthreads): Remove.
32735
32736         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32737         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32738         $(common-objpfx)elf/.
32739         (link-libc-before-gnulib): Likewise.
32740         (elfobjdir): Remove variable.
32741         * Makefile (install): Use $(elf-objpfx) instead of
32742         $(common-objpfx)elf/.
32743         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32744         $(elfobjdir)/.
32745         (link-libc-deps): Likewise.
32746         ($(common-objpfx)libc.so): Likewise.
32747         ($(common-objpfx)linkobj/libc.so): Likewise.
32748         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32749         instead of $(common-objpfx)elf/.
32750         (symbolic-link-list): Likewise.
32751         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32752         [$(cross-compiling) = no]: Likewise.
32753         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32754         $(elfobjdir)/.
32755         (static-gnulib-arch): Likewise.
32756         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32757         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32758         $(common-objpfx)elf/.
32759
32760 2014-05-21  Richard Henderson  <rth@redhat.com>
32761
32762         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32763         (SINGLE_THREAD_P): Use the correct width load.  Fold
32764         into the ldr offset.
32765
32766         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32767         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32768
32769 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32770
32771         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32772         (libgcc_s_resume): Use __attribute_used__.
32773         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32774         Likewise.
32775
32776 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32777
32778         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32779         optimization when used with float constants.
32780
32781         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32782
32783 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32784
32785         [BZ #16915]
32786         * locale/nl_langinfo_l.c: Make direct reference to every
32787         _nl_current_CATEGORY symbol.
32788         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32789         (tests-static): Add tst-langinfo-static.
32790         (tests-special): Add tst-langinfo-static.out.
32791         ($(objpfx)tst-langinfo.out): Redirect output.
32792         ($(objpfx)tst-langinfo-static.out): New.
32793         * localedata/tst-langinfo.sh: Send output to stdout.
32794         * localedata/tst-langinfo-static.c: New file.
32795
32796         [BZ #16965]
32797         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32798         when the shift amount is modulo the limb size.
32799
32800 2014-05-20  Richard Henderson  <rth@redhat.com>
32801
32802         [BZ #16967]
32803         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32804         Change type of sa_flags from unsigned int to int.
32805
32806         [BZ #16966]
32807         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32808
32809         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32810
32811 2014-05-20  Will Newton  <will.newton@linaro.org>
32812
32813         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32814         Test the return value of the system call in the nocancel case.
32815
32816 2014-05-20  Will Newton  <will.newton@linaro.org>
32817             Yvan Roux  <yvan.roux@linaro.org>
32818
32819         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32820         #include of asm/ptrace.h.
32821         (PTRACE_GET_THREAD_AREA): Remove #undef.
32822         (PTRACE_GETHBPREGS): Likewise.
32823         (PTRACE_SETHBPREGS): Likewise.
32824         (struct user_regs_struct): New structure.
32825         (struct user_fpsimd_struct): New structure.
32826         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32827         #include of asm/ptrace.h and second #include of sys/user.h.
32828         (PTRACE_GET_THREAD_AREA): Remove #undef.
32829         (PTRACE_GETHBPREGS): Likewise.
32830         (PTRACE_SETHBPREGS): Likewise.
32831         (ELF_NGREG): Use new struct user_regs_struct.
32832         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32833
32834 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32835
32836         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32837         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32838
32839 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32840
32841         [BZ #16958]
32842         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32843         membar to avoid block loads/stores to overlap previous stores.
32844
32845 2014-05-17  Richard Henderson  <rth@redhat.com>
32846
32847         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32848         Create the __##syscall_name##_nocancel entry point.
32849         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32850         Remove; let the sysdep-cancel.h code create it.
32851
32852 2014-05-17  David S. Miller  <davem@davemloft.net>
32853
32854         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32855         Protect with __USE_GNU.
32856         (TIOCSET_TEMPT): Likewise.
32857         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32858         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32859         these are already provided in bits/ioctl-types.h
32860
32861 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32862
32863         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32864         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32865
32866         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32867         Use wait4 regardless of [__NR_waitpid].
32868
32869 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32870
32871         PR libgcc/60166
32872         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32873         (_FP_NANSIGN_Q): Set the quiet bit.
32874
32875 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32876
32877         * benchtests/Makefile
32878         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32879         not $(common-objpfx)math/libm.so.
32880         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32881         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32882         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32883         $(common-objpfx)dlfcn/libdl.so.
32884         ($(objpfx)tst-audit8): Depend on $(libm), not
32885         $(common-objpfx)math/libm.so.
32886         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32887         not $(common-objpfx)dlfcn/libdl.so.
32888         * math/Makefile
32889         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32890         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32891         [$(build-shared) = yes].
32892         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32893         $(common-objpfx)nptl/libpthread.so.
32894         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32895         $(common-objpfx)math/libm.so$(libm.so-version) or
32896         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32897         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32898         $(common-objpfx)dlfcn/libdl.so.
32899         * setjmp/Makefile (link-libm): Remove variable.
32900         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32901         * stdio-common/Makefile (link-libm): Remove variable.
32902         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32903         * stdlib/Makefile (link-libm): Remove variable.
32904         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32905         ($(objpfx)tst-strtod-round): Likewise.
32906         ($(objpfx)tst-tininess): Likewise.
32907         ($(objpfx)tst-strtod-underflow): Likewise.
32908         ($(objpfx)tst-strtod6): Likewise.
32909         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32910         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32911         $(common-objpfx)dlfcn/libdl.so.
32912
32913 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32914
32915         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32916         BSD terminal modes definitions.
32917
32918 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32919
32920         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32921         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32922
32923         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32924         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32925         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32926         Don't do #include_next.
32927         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32928         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32929         Don't do #include_next.
32930         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32931         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32932         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32933         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32934
32935 2014-05-16  Allan McRae  <allan@archlinux.org>
32936
32937         * po/sv.po: Update Swedish translation from translation project.
32938
32939         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32940         in sed expression.
32941
32942 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32943
32944         [BZ #16917]
32945         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32946         errno if the TIOCGPTN ioctl fails with an error different than
32947         EINVAL.
32948         * login/tst-ptsname.c: New file.
32949         * login/Makefile (tests): Add tst-ptsname.
32950
32951         [BZ #16943]
32952         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32953         and prlimit64.
32954
32955 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32956
32957         [BZ #16849]
32958         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32959         herrno to return EAI_AGAIN.
32960
32961 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32962
32963         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32964         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32965         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32966         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32967         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32968         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32969         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32970         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32971         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32972         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32973         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32974         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32975         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32976         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32977         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32978         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32979         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32980         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32981         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32982         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32983         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32984         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32985         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32986         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32987         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32988         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32989         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32990         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32991         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32992         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32993         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32994         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32995         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32996         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32997         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32998         Moved ...
32999         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
33000         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
33001         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
33002         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
33003         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
33004         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
33005         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
33006         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
33007         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
33008         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
33009         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
33010         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
33011         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
33012         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
33013         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
33014         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
33015         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
33016         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
33017         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
33018         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
33019         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
33020         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
33021         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
33022         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
33023         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
33024         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
33025         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
33026         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
33027         Moved ...
33028         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
33029         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
33030         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
33031         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
33032         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
33033         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
33034         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
33035         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
33036         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
33037         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
33038         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
33039         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
33040         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
33041         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
33042         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
33043         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
33044         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
33045         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
33046         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
33047         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
33048         Moved ...
33049         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
33050         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
33051         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
33052
33053         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
33054         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
33055         (libpthread-sysdep_routines): Add elision-related stuff here instead.
33056         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
33057         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
33058         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
33059         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
33060         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
33061         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
33062         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
33063         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
33064         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
33065         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
33066         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
33067         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
33068         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
33069         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
33070         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
33071         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
33072         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
33073         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
33074         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
33075         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
33076         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
33077         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
33078         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
33079         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
33080         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
33081         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
33082         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
33083         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
33084
33085         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
33086         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
33087
33088         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
33089         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
33090         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
33091         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
33092         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
33093         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
33094         Moved ...
33095         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
33096         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
33097         Moved ...
33098         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
33099         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
33100         Moved ...
33101         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
33102         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
33103         Moved ...
33104         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
33105         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
33106         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
33107         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
33108         Moved ...
33109         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
33110         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
33111         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
33112         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
33113         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
33114         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
33115         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
33116         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
33117         Moved ...
33118         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
33119         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33120         Moved ...
33121         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33122         ... here.
33123         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
33124         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
33125         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
33126         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
33127         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33128         Moved ...
33129         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33130         ... here.
33131         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
33132         Moved ...
33133         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
33134         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
33135         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
33136         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
33137         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
33138         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
33139         Moved ...
33140         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
33141         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
33142         Moved ...
33143         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
33144         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
33145         Moved ...
33146         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
33147         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
33148         Moved ...
33149         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
33150         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
33151         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
33152         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
33153         Moved ...
33154         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
33155         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
33156         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
33157         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
33158         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
33159         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
33160         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
33161         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
33162         Moved ...
33163         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
33164         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33165         Moved ...
33166         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33167         ... here.
33168         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
33169         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
33170         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
33171         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
33172         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33173         Moved ...
33174         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33175         ... here.
33176         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
33177         Moved ...
33178         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
33179         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
33180         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
33181         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
33182         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
33183         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
33184         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
33185         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
33186         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
33187         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
33188         Moved ...
33189         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
33190         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
33191         Moved ...
33192         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
33193         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
33194         Moved ...
33195         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
33196         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
33197         Moved ...
33198         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
33199         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
33200         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
33201         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
33202         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
33203         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
33204         Moved ...
33205         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
33206         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
33207         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
33208         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
33209         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
33210         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
33211         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
33212         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
33213         Moved ...
33214         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
33215         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33216         Moved ...
33217         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33218         ... here.
33219         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
33220         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
33221         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
33222         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
33223         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33224         Moved ...
33225         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33226         ... here.
33227         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
33228         Moved ...
33229         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
33230         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
33231         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
33232         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
33233         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
33234         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
33235         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
33236         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
33237         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
33238         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
33239         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
33240
33241         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
33242         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
33243
33244         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
33245         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
33246
33247         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
33248         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
33249         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
33250         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
33251         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
33252         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
33253         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
33254         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
33255         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
33256         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
33257         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
33258         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
33259         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
33260         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
33261         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
33262         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
33263         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
33264         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
33265         Moved ...
33266         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
33267         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
33268         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
33269         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
33270         Moved ...
33271         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
33272         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
33273         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
33274         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
33275         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
33276         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
33277         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
33278         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
33279         Moved ...
33280         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
33281         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
33282         Moved ...
33283         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
33284         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
33285         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
33286         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
33287         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
33288         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
33289         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
33290         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
33291         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
33292         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
33293         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
33294         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
33295         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
33296         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
33297         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
33298         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
33299         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
33300
33301         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
33302         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
33303         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
33304         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
33305         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
33306
33307         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
33308         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
33309         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
33310         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
33311         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
33312         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
33313         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
33314         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
33315         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
33316         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
33317
33318         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
33319         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
33320
33321         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
33322         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
33323         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
33324         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
33325         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
33326         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
33327         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
33328         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
33329         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
33330         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
33331         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
33332         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
33333         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
33334         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
33335         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
33336         Update #include.
33337         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
33338         Likewise.
33339         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
33340         Likewise.
33341         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
33342         Likewise.
33343         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
33344         Likewise.
33345         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
33346         Likewise.
33347         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
33348         Likewise.
33349         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
33350         Likewise.
33351         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
33352         Likewise.
33353         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
33354         Likewise.
33355         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
33356         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
33357         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
33358         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
33359         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
33360         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
33361         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
33362         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
33363         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
33364         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
33365         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
33366         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
33367         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
33368         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
33369         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
33370
33371         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
33372         that was previously under [RESET_PID].
33373         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
33374         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
33375         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
33376
33377         * sysdeps/i386/nptl/Implies: New file.
33378         * sysdeps/x86_64/nptl/Implies: New file.
33379         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
33380         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
33381         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
33382         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
33383
33384         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
33385         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33386         (__libc_vfork): New strong alias.
33387         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
33388         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
33389
33390         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
33391         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33392         (__libc_vfork): New strong alias.
33393         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
33394         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
33395
33396         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
33397         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33398         (__libc_vfork): New strong alias.
33399         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
33400         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
33401         * nptl/pt-vfork.c: New file.
33402         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
33403         (libpthread: GLIBC_2.20): New version set (empty).
33404
33405 2014-05-14  Will Newton  <will.newton@linaro.org>
33406
33407         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
33408         rather than #if.
33409
33410 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33411
33412         [BZ #16564]
33413         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
33414         arguments with exponent 65 or above.
33415         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
33416         arguments 0x1p113L or above.
33417         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
33418         to arguments 0x1p107L or above.
33419         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
33420         positive arguments with exponent 65 or above.
33421         * math/auto-libm-test-in: Add more tests of log1p.
33422         * math/auto-libm-test-out: Regenerated.
33423
33424         [BZ #16928]
33425         * math/s_cacos.c (__cacos): Ensure zero real part of result from
33426         non-finite arguments is +0.
33427         * math/s_cacosf.c (__cacosf): Likewise.
33428         * math/s_cacosl.c (__cacosl): Likewise.
33429         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
33430         * sysdeps/i386/fpu/libm-test-ulps: Update.
33431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33432
33433         [BZ #16927]
33434         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
33435         value.
33436         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
33437         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
33438         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
33439         for explicit high bit of mantissa when testing for argument equal
33440         to 1.
33441         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
33442         * sysdeps/i386/fpu/libm-test-ulps: Update.
33443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33444
33445         [BZ #16516]
33446         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
33447         (__erf): Scale by 16 instead of 8 in potentially underflowing
33448         case.  Ensure exception if result actually underflows.
33449         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
33450         (__erff): Scale by 16 instead of 8 in potentially underflowing
33451         case.  Ensure exception if result actually underflows.
33452         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
33453         (efx8): Remove variable.
33454         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33455         case.  Ensure exception if result actually underflows.
33456         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
33457         (efx8): Remove variable.
33458         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33459         case.  Ensure exception if result actually underflows.
33460         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
33461         (efx8): Remove variable.
33462         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33463         case.  Ensure exception if result actually underflows.
33464         * math/auto-libm-test-in: Add more tests of erf.
33465         * math/auto-libm-test-out: Regenerated.
33466
33467 2014-05-14  Andreas Schwab  <schwab@suse.de>
33468
33469         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
33470         Remove code conditionalized on USE___THREAD.
33471
33472         * config.h.in (HAVE_PT_CHOWN): Define as 0.
33473         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
33474         not definedness.
33475
33476 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33477
33478         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
33479         Define unconditionally.
33480         (__ASSUME_O_CLOEXEC): Likewise.
33481         (__ASSUME_SOCK_CLOEXEC): Likewise.
33482         (__ASSUME_IN_NONBLOCK): Likewise.
33483         (__ASSUME_PIPE2): Likewise.
33484         (__ASSUME_EVENTFD2): Likewise.
33485         (__ASSUME_SIGNALFD4): Likewise.
33486         (__ASSUME_DUP3): Likewise.
33487         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
33488         (__ASSUME_DUP3): Do not define.
33489         (__ASSUME_EVENTFD2): Likewise.
33490         (__ASSUME_IN_NONBLOCK): Likewise.
33491         (__ASSUME_O_CLOEXEC): Likewise.
33492         (__ASSUME_PIPE2): Likewise.
33493         (__ASSUME_SIGNALFD4): Likewise.
33494         (__ASSUME_SOCK_CLOEXEC): Likewise.
33495         (__ASSUME_UTIMES): Undefine.
33496         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33497         (__ASSUME_UTIMES): Do not define.
33498         (__ASSUME_O_CLOEXEC): Likewise.
33499         (__ASSUME_SOCK_CLOEXEC): Likewise.
33500         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
33501         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
33502         0x020621].
33503         (__ASSUME_PIPE2): Likewise.
33504         (__ASSUME_EVENTFD2): Likewise.
33505         (__ASSUME_SIGNALFD4): Likewise.
33506         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
33507         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
33508         Do not define.
33509         (__ASSUME_EVENTFD2): Likewise.
33510         (__ASSUME_SIGNALFD4): Likewise.
33511         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33512         (__ASSUME_32BITUIDS): Likewise.
33513         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33514         (__ASSUME_IPC64): Likewise.
33515         (__ASSUME_ST_INO_64_BIT): Likewise.
33516         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
33517         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
33518         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33519         (__ASSUME_UTIMES): Do not define.
33520         (__ASSUME_PSELECT): Likewise.
33521         (__ASSUME_PPOLL): Likewise.
33522         (__ASSUME_O_CLOEXEC): Likewise.
33523         (__ASSUME_SOCK_CLOEXEC): Likewise.
33524         (__ASSUME_IN_NONBLOCK): Likewise.
33525         (__ASSUME_PIPE2): Likewise.
33526         (__ASSUME_EVENTFD2): Likewise.
33527         (__ASSUME_SIGNALFD4): Likewise.
33528         (__ASSUME_DUP3): Likewise.
33529         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33530         (__ASSUME_UTIMES): Likewise.
33531         (__ASSUME_O_CLOEXEC): Likewise.
33532         (__ASSUME_SOCK_CLOEXEC): Likewise.
33533         (__ASSUME_IN_NONBLOCK): Likewise.
33534         (__ASSUME_PIPE2): Likewise.
33535         (__ASSUME_EVENTFD2): Likewise.
33536         (__ASSUME_SIGNALFD4): Likewise.
33537         (__ASSUME_DUP3): Likewise.
33538         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33539         (__ASSUME_UTIMES): Likewise.
33540         (__ASSUME_O_CLOEXEC): Likewise.
33541         (__ASSUME_SOCK_CLOEXEC): Likewise.
33542         (__ASSUME_IN_NONBLOCK): Likewise.
33543         (__ASSUME_PIPE2): Likewise.
33544         (__ASSUME_EVENTFD2): Likewise.
33545         (__ASSUME_SIGNALFD4): Likewise.
33546         (__ASSUME_DUP3): Likewise.
33547         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
33548         Likewise.
33549         (__ASSUME_UTIMES): Likewise.
33550         (__ASSUME_EVENTFD2): Likewise.
33551         (__ASSUME_SIGNALFD4): Likewise.
33552         * sysdeps/unix/sysv/linux/tile/kernel-features.h
33553         (__ASSUME_O_CLOEXEC): Likewise.
33554         (__ASSUME_SOCK_CLOEXEC): Likewise.
33555         (__ASSUME_IN_NONBLOCK): Likewise.
33556         (__ASSUME_PIPE2): Likewise.
33557         (__ASSUME_EVENTFD2): Likewise.
33558         (__ASSUME_SIGNALFD4): Likewise.
33559         (__ASSUME_DUP3): Likewise.
33560         (__ASSUME_UTIMES): Undefine.
33561
33562         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
33563         feclearexcept.  Remove symbol versioning code.
33564         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
33565         symbol versioning code.
33566         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
33567         symbol versioning code.
33568         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
33569         feupdateenv.  Remove symbol versioning code.
33570         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
33571         fegetexceptflag.  Remove symbol versioning code.
33572         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
33573         fesetexceptflag.  Remove symbol versioning code.
33574         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
33575         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
33576         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
33577         (__posix_fadvise64_l32): Remove prototype.
33578         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
33579         code.
33580
33581 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33582
33583         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
33584         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
33585         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
33586         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
33587
33588 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
33589
33590         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
33591         current working directory
33592
33593 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33594
33595         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
33596         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
33597         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
33598         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
33599         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
33600         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
33601         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
33602         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
33603         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
33604         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
33605         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
33606         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
33607         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
33608         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
33609         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
33610         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
33611         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
33612         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
33613         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
33614         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
33615         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
33616         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
33617         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
33618         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
33619         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
33620         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
33621         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33622         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33623         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33624         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33625         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33626         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33627         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33628         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33629         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33630         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33631         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33632         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33633         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33634         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33635         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33636         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33637
33638         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33639         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33640
33641         * sysdeps/unix/sysv/linux/arm/Makefile
33642         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33643         Add rt-aeabi_unwind_cpp_pr1.
33644         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33645         Add nptl-aeabi_unwind_cpp_pr1.
33646         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33647         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33648         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33649         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33650         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33651         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33652
33653         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33654         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33655         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33656         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33657
33658         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33659         Deconditionalize the code that was previously under [RESET_PID].
33660         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33661
33662         * sysdeps/generic/exit-thread.h: New file.
33663         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33664         * include/unistd.h (__exit_thread): Remove declaration.
33665         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33666         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33667         * csu/libc-start.c: Include <exit-thread.h>.
33668         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33669         * nptl/pthread_create.c: Include <exit-thread.h>.
33670         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33671         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33672         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33673         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33674         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33675         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33676         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33677         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33678         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33679         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33680         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33681         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33682         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33683         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33684         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33685         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33686         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33687
33688 2014-05-13  Andreas Schwab  <schwab@suse.de>
33689
33690         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33691
33692 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33693
33694         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33695         (__ASSUME_UTIMES): Do not condition on kernel version.
33696         (__ASSUME_PSELECT): Define unconditionally.
33697         (__ASSUME_PPOLL): Likewise.
33698         (__ASSUME_ATFCTS): Likewise.
33699         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33700         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33701         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33702         (__ASSUME_UTIMENSAT): Define unconditionally.
33703         (__ASSUME_PRIVATE_FUTEX): Likewise.
33704         (__ASSUME_FALLOCATE): Likewise.
33705         (__ASSUME_O_CLOEXEC): Likewise.
33706         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33707         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33708         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33709         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33710         (__ASSUME_IN_NONBLOCK): Likewise.
33711         (__ASSUME_PIPE2): Likewise.
33712         (__ASSUME_EVENTFD2): Likewise.
33713         (__ASSUME_SIGNALFD4): Likewise.
33714         (__ASSUME_DUP3): Likewise.
33715         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33716         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33717         (__ASSUME_AT_RANDOM): Likewise.
33718         (__ASSUME_PREADV): Likewise.
33719         (__ASSUME_PWRITEV): Likewise.
33720         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33721         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33722         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33723         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33724         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33725         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33726         (__ASSUME_O_CLOEXEC): Define unconditionally.
33727         (__ASSUME_PSELECT): Do not undefine conditionally.
33728         (__ASSUME_PPOLL): Likewise.
33729         (__ASSUME_ATFCTS): Likewise.
33730         (__ASSUME_SET_ROBUST_LIST): Likewise.
33731         (__ASSUME_UTIMENSAT): Likewise.
33732         (__ASSUME_FDATASYNC): Define unconditionally.
33733         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33734         (__ASSUME_SIGFRAME_V2): Likewise.
33735         )__ASSUME_EVENTFD2): Likewise.
33736         (__ASSUME_SIGNALFD4): Likewise.
33737         (__ASSUME_PSELECT): Do not undefine conditionally.
33738         (__ASSUME_PPOLL): Likewise.
33739         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33740         (__ASSUME_PSELECT): Define unconditionally.
33741         (__ASSUME_PPOLL): Likewise.
33742         (__ASSUME_O_CLOEXEC): Likewise.
33743         (__ASSUME_SOCK_CLOEXEC): Likewise.
33744         (__ASSUME_IN_NONBLOCK): Likewise.
33745         (__ASSUME_PIPE2): Likewise.
33746         (__ASSUME_EVENTFD2): Likewise.
33747         (__ASSUME_SIGNALFD4): Likewise.
33748         (__ASSUME_DUP3): Likewise.
33749         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33750         (__ASSUME_O_CLOEXEC): Likewise.
33751         (__ASSUME_SOCK_CLOEXEC): Likewise.
33752         (__ASSUME_IN_NONBLOCK): Likewise.
33753         (__ASSUME_PIPE2): Likewise.
33754         (__ASSUME_EVENTFD2): Likewise.
33755         (__ASSUME_SIGNALFD4): Likewise.
33756         (__ASSUME_DUP3): Likewise.
33757         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33758         (__ASSUME_EVENTFD2): Likewise.
33759         (__ASSUME_SIGNALFD4): Likewise.
33760         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33761
33762 2014-05-12  Andreas Schwab  <schwab@suse.de>
33763
33764         [BZ #16932]
33765         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33766         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33767         than maximum RPC packet size.
33768         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33769         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33770         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33771         (_nss_nis_getservbyport_r): Likewise.
33772
33773 2014-05-12  Will Newton  <will.newton@linaro.org>
33774
33775         * malloc/Makefile (tests): Add tst-mallopt.
33776         * malloc/tst-mallopt.c: New file.
33777
33778 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33779
33780         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33781         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33782
33783 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33784
33785         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33786         (tst-tlsmod6.so): Likewise.
33787
33788 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33789
33790         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33791
33792 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33793
33794         [BZ #16064]
33795         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33796         and <dl-procinfo.h>.
33797         (__fegetenv): Save SSE state in envp->__eip if supported.
33798         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33799         envp->__eip if supported.
33800         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33801         and <dl-procinfo.h>.
33802         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33803         __data_offset and __data_selector in environment to 0.  Set SSE
33804         state if supported.
33805         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33806         test-fenv-sse.
33807         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33808         -mfpmath=sse.
33809         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33810
33811 2014-05-09  Will Newton  <will.newton@linaro.org>
33812
33813         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33814         and libc_relro_required for ARM.
33815         * sysdeps/arm/preconfigure: Regenerate.
33816
33817 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33818             Stefan Liebler  <stli@linux.vnet.ibm.com>
33819
33820         * config.make.in (enable-lock-elision): New Makefile variable.
33821         * configure.ac: Likewise.
33822         * configure: Regenerate.
33823         * sysdeps/s390/configure.ac:
33824         Add check for gcc transactions support.
33825         * sysdeps/s390/configure: Regenerate.
33826         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33827         Build elision files if enabled.
33828         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33829         Add lock elision support for s390.
33830         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33831         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33832         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33833         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33834         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33835         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33836         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33837         Likewise.
33838         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33839         Likewise.
33840         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33841         Likewise.
33842         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33843         Likewise.
33844         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33845         (__lll_timedlock_elision, __lll_lock_elision)
33846         (__lll_unlock_elision, __lll_trylock_elision)
33847         (lll_timedlock_elision, lll_lock_elision)
33848         (lll_unlock_elision, lll_trylock_elision): Add.
33849         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33850         (pthread_mutex_t): Add lock elision support for s390.
33851
33852 2014-05-14  Wilco  <wdijkstr@arm.com>
33853
33854         * sysdeps/arm/fclrexcpt.c: Cleanup.
33855         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33856         * sysdeps/arm/feenablxcpt.c: Cleanup.
33857         * sysdeps/arm/fegetenv.c: Cleanup.
33858         * sysdeps/arm/fegetexcept.c: Cleanup.
33859         * sysdeps/arm/fegetround.c: Cleanup.
33860         * sysdeps/arm/feholdexcpt.c: Cleanup.
33861         * sysdeps/arm/fesetenv.c: Cleanup.
33862         * sysdeps/arm/fesetround.c: Cleanup.
33863         * sysdeps/arm/feupdateenv.c: Cleanup.
33864         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33865         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33866         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33867         * sysdeps/arm/ftestexcept.c: Cleanup.
33868         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33869         * sysdeps/arm/setfpucw.c: Cleanup.
33870
33871 2014-05-09  Will Newton  <will.newton@linaro.org>
33872
33873         * sysdeps/arm/armv7/strcmp.S: New file.
33874         * NEWS: Mention addition of ARMv7 optimized strcmp.
33875
33876 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33877
33878         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33879         look for %.ac rather than %.in.
33880
33881         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33882         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33883         * sysdeps/mach/hurd/configure: Regenerated.
33884         * sysdeps/unix/sysv/linux/configure: Regenerated.
33885
33886         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33887
33888 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33889
33890         [BZ# 16922]
33891         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33892         (LONG_SUB): Ditto.
33893         (PTR_SUB): Ditto.
33894
33895 2014-05-07  Andreas Schwab  <schwab@suse.de>
33896
33897         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33898         when skipping over non-matching result from nscd.
33899
33900 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33901
33902         [BZ #16876]
33903         * nptl/sockperf.c (client): Check socket return value.
33904
33905         [BZ #16877]
33906         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33907         nscd security class.
33908
33909 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33910
33911         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33912         * sysdeps/arm/unwind.h: ... here.
33913
33914 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33915
33916         [BZ# 16916]
33917         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33918         Define.
33919
33920 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33921
33922         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33923         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33924         multiarch strncpy for PPC64.
33925         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33926         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33927         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33928         multiarch optimizations.
33929         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33930         (__libc_ifunc_impl_list): Likewise.
33931         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33932         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33933         multiarch stpncpy for PPC64.
33934         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33935         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33936
33937 2014-05-06  Andreas Schwab  <schwab@suse.de>
33938
33939         [BZ #16912]
33940         * gmon/mcount.c (_MCOUNT_DECL): Use
33941         atomic_compare_and_exchange_bool_acq instead of
33942         catomic_compare_and_exchange_bool_acq.
33943
33944 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33945
33946         * elf/Makefile (others, install-bin): Remove pldd.
33947         (pldd-modules): Variable removed.
33948         ($(objpfx)pldd): Target removed.
33949         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33950         (others, install-bin): Append pldd here.
33951         ($(objpfx)pldd): New target.
33952
33953         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33954         to 0, so the first #if test emitted later doesn't see it undefined.
33955         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33956         * sysdeps/gnu/errlist.c: Regenerated.
33957
33958 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33959
33960         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33961         [libc_hidden_builtin_def]: Define to empty value.
33962         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33963         [libc_hidden_builtin_def]: Likewise.
33964         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33965         [libc_hidden_builtin_def]: Likewise.
33966         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33967         [libc_hidden_builtin_def]: Likewise.
33968         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33969         __redirect_memcpy and define ifunc as default hidden symbol.
33970         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33971         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33972
33973 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33974
33975         * locale/iso-4217.def: Reintroduce XDR currency.
33976
33977 2014-05-04  Allan McRae  <allan@archlinux.org>
33978
33979         * po/eo.po: Update Esperanto translation from translation project.
33980
33981 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33982
33983         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33984         and FEATURE_INDEX_MAX to 1.
33985         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33986
33987 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33988
33989         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33990         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33991         * iconvdata/big5.c (ONE_DIRECTION): Define.
33992         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33993         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33994         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33995         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33996         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33997         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33998         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33999         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
34000         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
34001         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
34002         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
34003         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
34004         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
34005         * iconvdata/gbk.c (ONE_DIRECTION): Define.
34006         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
34007         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
34008         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
34009         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
34010         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
34011         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
34012         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
34013         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
34014         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
34015         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
34016         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
34017         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
34018         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
34019         * iconvdata/iso646.c (ONE_DIRECTION): Define.
34020         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
34021         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
34022         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
34023         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
34024         * iconvdata/johab.c (ONE_DIRECTION): Define.
34025         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
34026         * iconvdata/sjis.c (ONE_DIRECTION): Define.
34027         * iconvdata/t.61.c (ONE_DIRECTION): Define.
34028         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
34029         * iconvdata/tscii.c (ONE_DIRECTION): Define.
34030         * iconvdata/uhc.c (ONE_DIRECTION): Define.
34031         * iconvdata/unicode.c (ONE_DIRECTION): Define.
34032         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
34033         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
34034         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
34035
34036 2014-05-01  Roland McGrath  <roland@hack.frob.com>
34037
34038         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
34039         (_IO_JUMPS_OFFSET): Define to 0.
34040
34041         * nptl/sysdeps/pthread/bits/libc-lock.h
34042         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
34043         (__libc_lock_define_initialized_recursive): Always define using
34044         initializer.  Modern compilers treat uninitialized (implicit zero) and
34045         explicit zero initializers the same (i.e. put the datum in bss).
34046
34047 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34048
34049         * nscd/nscd-client.h: Include <string.h>.
34050
34051 2014-05-01  David S. Miller  <davem@davemloft.net>
34052
34053         [BZ #16885]
34054         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
34055         multiple zero bytes exist at the end of a string.
34056         Reported by Aurelien Jarno <aurelien@aurel32.net>
34057
34058         * string/test-strcmp.c (check): Add explicit test for situations where
34059         there are multiple zero bytes after the first.
34060
34061 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34062
34063         [BZ #16890]
34064         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
34065         when compiling wprintf.
34066         * stdio-common/tstdiomisc.c (t3): New function.
34067         (main): Call it.
34068
34069 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34070
34071         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
34072         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
34073         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
34074         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
34075
34076 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34077
34078         * stdlib/longlong.h: Updated from GCC.
34079
34080 2014-05-01  Will Newton  <will.newton@linaro.org>
34081             Bernard Ogden  <bernie.ogden@linaro.org>
34082
34083         * NEWS: Update fixed bug list.
34084
34085         [BZ #15119]
34086         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
34087
34088 2014-04-30  David S. Miller  <davem@davemloft.net>
34089
34090         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
34091         (libc_feholdexcept_setround_sparc_ctx): New function.
34092         (libc_fesetenv_sparc_ctx): Likewise.
34093         (libc_feupdateenv_sparc_ctx): Likewise.
34094         (libc_feholdsetround_sparc_ctx): Likewise.
34095         (libc_feholdexcept_setround_ctx): Define.
34096         (libc_feholdexcept_setroundf_ctx): Likewise.
34097         (libc_feholdexcept_setroundl_ctx): Likewise.
34098         (libc_fesetenv_ctx): Likewise.
34099         (libc_fesetenvf_ctx): Likewise.
34100         (libc_fesetenvl_ctx): Likewise.
34101         (libc_feupdateenv_ctx): Likewise.
34102         (libc_feupdateenvf_ctx): Likewise.
34103         (libc_feupdateenvl_ctx): Likewise.
34104         (libc_feresetround_ctx): Likewise.
34105         (libc_feresetroundf_ctx): Likewise.
34106         (libc_feresetroundl_ctx): Likewise.
34107         (libc_feholdsetround_ctx): Likewise.
34108         (libc_feholdsetroundf_ctx): Likewise.
34109         (libc_feholdsetroundl_ctx): Likewise.
34110
34111         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34112         with __USE_GNU instead of XOPEN cpp guards.
34113
34114         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
34115         0.
34116
34117         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34118         with XOPEN cpp guards.
34119
34120 2014-04-30  Julian Brown  <julian@codesourcery.com>
34121
34122         [BZ #16888]
34123         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
34124         handling.
34125
34126 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
34127
34128         [BZ #9894]
34129         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
34130         Change to 2.6.32.
34131         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
34132         * sysdeps/unix/sysv/linux/configure: Regenerated.
34133         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
34134         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
34135         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
34136         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
34137         * README: Update reference to required Linux kernel version.
34138         * manual/install.texi (Linux): Update reference to required Linux
34139         kernel headers version.
34140         * INSTALL: Regenerated.
34141
34142         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
34143         header inclusion.
34144         [POSIX] (limits.h): Likewise.
34145         [POSIX] (math.h): Likewise.
34146         [POSIX] (sys/wait.h): Likewise.
34147         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
34148         function.
34149         [POSIX] (stddef.h): Do not allow header inclusion.
34150
34151 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34152
34153         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
34154
34155 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
34156
34157         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
34158         Return immediately after lll_futex_wake.
34159
34160 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34161
34162         [BZ #16791]
34163         * nscd/nscd-client.h (datahead_init_common): Initialize entire
34164         structure.
34165         (datahead_init_pos): Call datahead_init_common early.
34166         (datahead_init_neg): Likewise.
34167
34168         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
34169         datahead_init_neg): New functions.
34170         * nscd/aicache.c (addhstaiX): Use them.
34171         * nscd/grpcache.c (cache_addgr): Likewise.
34172         * nscd/hstcache.c (cache_addhst): Likewise.
34173         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34174         * nscd/netgroupcache.c (do_notfound): Likewise.
34175         (addgetnetgrentX): Likewise.
34176         (addinnetgrX): Likewise.
34177         * nscd/pwdcache.c (cache_addpw): Likewise.
34178         * nscd/servicescache.c (cache_addserv): Likewise.
34179
34180 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34181             Atsushi Onoe  <atsushi@onoe.org>
34182
34183         [BZ #14308]
34184         [BZ #12994]
34185         [BZ #13651]
34186         * resolv/res_query.c (__libc_res_nsearch): Return if at least
34187         one response is valid.
34188         * resolv/res_send.c (send_dg): Check for validity of other
34189         response if the current response is a referral.
34190
34191 2014-04-29  Steve Ellcey  <sellcey@mips.com>
34192
34193         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
34194
34195 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
34196
34197         [BZ #16823]
34198         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
34199         Always divide by positive zero when computing -Inf result.
34200         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
34201         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
34202
34203 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34204
34205         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
34206         FPSCR if value do not change.
34207         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
34208         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
34209         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
34210         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
34211         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
34212         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
34213         function.
34214
34215 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
34216
34217         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
34218         * sysdeps/unix/sysv/linux/hppa: Move directory from
34219         ports/systeps/unix/sysv/linux/hppa.
34220         * README: Update listing for hppa-*-linux-gnu.
34221
34222 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
34223
34224         [BZ #16754]
34225         * manual/stdio.texi (Hook functions): Fix types of stream hook
34226         functions.
34227         [BZ #16854]
34228         * socket/sys/socket.h: Fix typo in comment.
34229
34230 2014-04-28  Wilco  <wdijkstr@arm.com>
34231
34232         * sysdeps/arm/fenv_private.h: New file.
34233         * sysdeps/arm/math_private.h: New file.
34234         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
34235
34236 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
34237
34238         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
34239         with __int128_t.
34240         (La_x86_64_retval): Likewise.
34241
34242 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
34243
34244         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
34245         fpsr if value didn't change.
34246         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
34247         to fpcr if value didn't change.
34248         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
34249         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
34250         fpsr or fpcr if value didn't change.
34251         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
34252         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
34253         fpcr if value didn't change.
34254         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
34255         to fpsr if value didn't change.
34256
34257 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
34258
34259         * nptl/tst-sem3.c: Use test-skeleton.c
34260         (main): Rename to do_test.  Use return instead of
34261         exit.
34262         * nptl/tst-sem4.c: Use test-skeleton.c
34263         (main): Rename to do_test.
34264
34265 2014-04-22  David S. Miller  <davem@davemloft.net>
34266
34267         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34268         (struct sigaction): New struct member __glibc_reserved0, change
34269         type of sa_flags to int.
34270
34271 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
34272
34273         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
34274         (COUNT_LEADING_ZEROS_0): Define for AArch64.
34275
34276 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
34277
34278         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
34279         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
34280
34281 2014-04-22  Will Newton  <will.newton@linaro.org>
34282             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
34283
34284         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
34285         (__longjmp): Add longjmp and longjmp_target SystemTap
34286         probes.
34287         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
34288         (__sigsetjmp): Add setjmp SystemTap probe.
34289
34290 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
34291
34292         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
34293         match manual order.
34294
34295 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34296
34297         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
34298
34299         * sysdeps/powerpc/fpu/fenv_private.h
34300         (libc_feholdexcept_setroundl_ctx): Define to
34301         libc_feholdexcept_setround_ppc_ctx.
34302         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
34303         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
34304         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
34305         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
34306
34307 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34308
34309         * sysdeps/aarch64/math-tests.h: New file.
34310
34311 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
34312
34313         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
34314         New.
34315         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34316         Check and set bit_AVX2_Usable.
34317         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
34318         macro.
34319         (bit_AVX2): Likewise.
34320         (index_AVX2_Usable): Likewise.
34321         (CPUID_AVX2): Likewise.
34322         (HAS_AVX2): Likewise.
34323
34324 2014-04-17  Will Newton  <will.newton@linaro.org>
34325
34326         * manual/setjmp.texi (System V contexts): Add note that
34327         calling setcontext on a context created by a call to a
34328         signal handler is undefined.  Update text to note that
34329         setcontext from a signal handler is possible but not
34330         recommended.
34331
34332         [BZ #16629]
34333         * stdlib/tst-setcontext.c: Include signal.h.
34334         (main): Check that the signal stack before and
34335         after swapcontext is the same.
34336
34337         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
34338         Re-implement to restore registers in user code and avoid
34339         rt_sigreturn system call.
34340
34341 2014-04-17  Wilco  <wdijkstr@arm.com>
34342
34343         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
34344         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
34345         * math/test-fenv.c: Skip exception trap tests on targets which only
34346         support non-stop mode.
34347
34348 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34349             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34350
34351         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
34352         (libc_feholdsetround_aarch64_ctx)
34353         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
34354         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
34355         (libc_feresetround_ctx, libc_feresetroundf_ctx)
34356         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
34357         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
34358         (libc_feresetround_noexl_ctx): Define.
34359
34360 2014-04-16  Richard Henderson  <rth@redhat.com>
34361
34362         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
34363
34364         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
34365         unwind tables.
34366
34367         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
34368         const from the non-libc, non-ldso copy.
34369
34370         * sysdeps/alpha/libm-test-ulps: Regenerate.
34371
34372 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
34373             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34374
34375         * sysdeps/aarch64/fpu/math_private.h: New file.
34376
34377 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34378
34379         * sysdeps/aarch64/libm-test-ulps: Regenerate.
34380
34381 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
34382
34383         [BZ #16275]
34384         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
34385         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
34386         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
34387         Intel MPX bound registers before _dl_profile_fixup.
34388         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
34389         registers after _dl_profile_fixup.  Save and restore bound
34390         registers bnd0/bnd1 when calling _dl_call_pltexit.
34391         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
34392         (LR_BND_OFFSET): Likewise.
34393         (LRV_BND0_OFFSET): Likewise.
34394         (LRV_BND1_OFFSET): Likewise.
34395
34396 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34397
34398         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
34399         to...
34400         * sysdeps/mach/hurd/i386/tls.h: ... here.
34401         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
34402         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
34403         fields.
34404
34405 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34406
34407         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
34408
34409 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34410
34411         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34412
34413 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34414
34415         [BZ #14770]
34416         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
34417         * sysdeps/s390/configure: Regenerate.
34418
34419         [BZ #16824]
34420         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
34421         Set round-to-nearest internally to reduce error accumulation.
34422
34423 2014-04-16  Alan Modra  <amodra@gmail.com>
34424
34425         [BZ #16740]
34426         [BZ #16619]
34427         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
34428         * math/libm-test.inc (frexp_test_data): Add tests.
34429         * NEWS: Update fixed bug list.
34430
34431 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
34432
34433         * benchtests/Makefile: Depend on libraries in build directory.
34434         (bench-math): Separate out math tests.
34435         (bench-pthread): Separate out pthread tests.
34436         (bench): Include math and pthread tests.
34437
34438 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
34439
34440         [BZ #16831]
34441         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
34442         _dl_debug_initialize.
34443
34444         * configure.ac: Remove SELinux header check.
34445         * configure: Regenerate.
34446         * nscd/selinux.c (perms): Array of const char* to permission names.
34447         (nscd_request_avc_has_perm): Call security_deny_unknown to find
34448         default policy. Call string_to_security_class and string_to_av_perm to
34449         translate strings. Enforce default policy and call avs_has_perm with
34450         results of translated strings.
34451
34452 2014-04-13  David S. Miller  <davem@davemloft.net>
34453
34454         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34455
34456 2014-04-12  Allan McRae  <allan@archlinux.org>
34457
34458         [BZ #16838]
34459         * manual/string.texi (Collation Functions): Fix qsort argument
34460         order in example.
34461         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
34462
34463 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
34464
34465         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
34466         Make the test a no-op if there are no exceptions defined.
34467
34468 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
34469
34470         * elf/Makefile (tests): make tst-dlopen-aout conditional on
34471         enable-hardcoded-path-in-tests
34472
34473 2014-04-11  Will Newton  <will.newton@linaro.org>
34474
34475         * benchtests/Makefile (extra-objs): Add json-lib.o.
34476         (bench-func): Tidy up JSON output.
34477         * benchtests/bench-skeleton.c: Include json-lib.h.
34478         (main): Use JSON library functions to do output of
34479         benchmark results.
34480         * benchtests/bench-timing-type.c (main): Output the
34481         timing type simply, leaving formatting to the user.
34482         * benchtests/json-lib.c: New file.
34483         * benchtests/json-lib.h: Likewise.
34484
34485 2014-04-11  Torvald Riegel  <triegel@redhat.com>
34486
34487         [BZ #15215]
34488         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
34489         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
34490         memory barriers.  Add comments.
34491         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
34492         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
34493         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
34494         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
34495         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
34496         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
34497
34498 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
34499
34500         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
34501         * sysdeps/s390/s390-64/configure.ac: ... this ...
34502         * sysdeps/s390/configure.ac: ... to here.
34503         * sysdeps/s390/s390-32/configure: Delete file.
34504         * sysdeps/s390/s390-64/configure: Delete file.
34505         * sysdeps/s390/configure: Regenerate.
34506
34507 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
34508
34509         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
34510
34511 2014-04-11  Will Newton  <will.newton@linaro.org>
34512
34513         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
34514         to zero if it is not defined elsewhere.  (mtrim): Test
34515         the value of MALLOC_DEBUG with #if rather than #ifdef.
34516
34517 2014-04-10 Torvald Riegel  <triegel@redhat.com>
34518
34519         * benchtests/pthread_once-inputs: New file.
34520         * benchtests/pthread_once-source.c: New file.
34521         * benchtests/README: Update documentation.
34522
34523 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
34524             H.J. Lu  <hongjiu.lu@intel.com>
34525
34526         [BZ #16275]
34527         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
34528         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
34529         * sysdeps/x86_64/configure: Regenerated.
34530         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
34531         macro.
34532         (REGISTER_SAVE_RAX): Likewise.
34533         (REGISTER_SAVE_RCX): Likewise.
34534         (REGISTER_SAVE_RDX): Likewise.
34535         (REGISTER_SAVE_RSI): Likewise.
34536         (REGISTER_SAVE_RDI): Likewise.
34537         (REGISTER_SAVE_R8): Likewise.
34538         (REGISTER_SAVE_R9): Likewise.
34539         (REGISTER_SAVE_BND0): Likewise.
34540         (REGISTER_SAVE_BND1): Likewise.
34541         (REGISTER_SAVE_BND2): Likewise.
34542         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
34543         bound registers when calling _dl_fixup.
34544
34545 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34546
34547         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
34548         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
34549         of its definition.
34550         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
34551         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
34552         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
34553         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
34554         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
34555         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
34556         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
34557
34558 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
34559
34560         [BZ #15514]
34561         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
34562         pathconf(_PC_NAME_MAX).
34563
34564 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34565
34566         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
34567         Remove macro usage.
34568         (__PTHREAD_SPINS): Move definition to ...
34569         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34570         (__PTHREAD_SPINS): ... here.
34571         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34572         (__PTHREAD_SPIN): Likewise.
34573         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
34574         (__PTHREAD_SPIN): Likewise.
34575         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
34576         (__PTHREAD_SPIN): Likewise.
34577         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
34578         (__PTHREAD_SPIN): Likewise.
34579         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34580         (__PTHREAD_SPIN): Likewise.
34581         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34582         (__PTHREAD_SPIN): Likewise.
34583         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
34584         (__PTHREAD_SPIN): Likewise.
34585         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34586         (__PTHREAD_SPIN): Likewise.
34587         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34588         (__PTHREAD_SPIN): Likewise.
34589         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34590         (__PTHREAD_SPIN): Likewise.
34591         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34592         (__PTHREAD_SPIN): Likewise.
34593         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
34594         (__PTHREAD_SPIN): Likewise.
34595
34596         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
34597         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
34598         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
34599         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
34600         imply folder.
34601         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
34602         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
34603         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
34604         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
34605         correct imply path.
34606         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
34607         strlen symbol for non multi-arch builds.
34608         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
34609         missing hidden_def and weak_alias.
34610
34611 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
34612
34613         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
34614
34615 2014-04-07  Will Newton  <will.newton@linaro.org>
34616
34617         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
34618         and contents.  [!_LIBC] Remove #ifndef and contents.
34619         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
34620         * string/memccpy.c (__memccpy): Use ANSI prototype.
34621         * string/memfrob.c (memfrob): Likewise.
34622         * string/strcoll.c (STRCOLL): Likewise.
34623         * string/strlen.c (strlen): Likewise.
34624         * string/strtok.c (STRTOK): Likewise.
34625         * string/strcat.c: Remove unused #include of memcopy.h.
34626         (strcat): Use ANSI prototype.
34627         * string/strchr.c: Remove unused #include of memcopy.h.
34628         (strchr): Use ANSI prototype.
34629         * string/strcmp.c: Remove unused #include of memcopy.h.
34630         (strcmp): Use ANSI prototype.
34631         * string/strcpy.c: Remove unused #include of memcopy.h.
34632         (strcpy): Use ANSI prototype.
34633
34634 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34635
34636         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34637         * config.make.in (config-extra-cppflags): Set it from
34638         libc_extra_cppflags.
34639         * configure.ac (libc_extra_cflags): Make it accumulate over
34640         configure fragments.
34641         (libc_extra_cppflags): New flag.
34642         * configure. Regenerate.
34643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34644         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34645         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34647
34648         [BZ #16815]
34649         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34650         result for FE_DOWNWARD rounding mode.
34651         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34652         Likewise.
34653         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34654
34655 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34656
34657         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34658         in function argument name.
34659
34660 2014-04-03  David Svoboda  <svoboda@cert.org>
34661
34662         [BZ #5666]
34663         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34664         explicitly.
34665
34666 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34667
34668         * elf/dl-unmap-segments.h: New file.
34669         * sysdeps/generic/ldsodefs.h
34670         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34671         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34672         * elf/dl-fptr.c: Likewise.
34673         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34674         * sysdeps/aarch64/tlsdesc.c: Likewise.
34675         * sysdeps/arm/tlsdesc.c: Likewise.
34676         * sysdeps/i386/tlsdesc.c: Likewise.
34677         * sysdeps/tile/dl-runtime.c: Likewise.
34678         * sysdeps/x86_64/tlsdesc.c: Likewise.
34679         * elf/dl-load.h: New file.
34680         * elf/dl-load.c: Include it.
34681         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34682         Macros moved to dl-load.h.
34683         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34684         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34685         Use _dl_unmap_segments in place of __munmap.
34686         Break out segment-mapping loop into ...
34687         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34688
34689 2014-04-03  Will Newton  <will.newton@linaro.org>
34690
34691         * elf/dl-lookup.c (do_lookup_x): Remove comment
34692         referring to nested function and move variable
34693         declarations down to before first use.
34694
34695 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34696
34697         [BZ #16799]
34698         [BZ #16800]
34699         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34700         with 0 numerator.
34701         * math/s_catanf.c (__catanf): Likewise.
34702         * math/s_catanh.c (__catanh): Likewise.
34703         * math/s_catanhf.c (__catanhf): Likewise.
34704         * math/s_catanhl.c (__catanhl): Likewise.
34705         * math/s_catanl.c (__catanl): Likewise.
34706         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34707         by positive zero when computing -Inf result.
34708         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34709         (catanh_test): Likewise.
34710         * sysdeps/i386/fpu/libm-test-ulps: Update.
34711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34712
34713         [BZ #16789]
34714         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34715         instead of using underflowing value in computing result.
34716         * math/s_clog10.c (__clog10): Likewise.
34717         * math/s_clog10f.c (__clog10f): Likewise.
34718         * math/s_clog10l.c (__clog10l): Likewise.
34719         * math/s_clogf.c (__clogf): Likewise.
34720         * math/s_clogl.c (__clogl): Likewise.
34721         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34722         (clog10_test): Likewise.
34723         * sysdeps/i386/fpu/libm-test-ulps: Update.
34724         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34725
34726 2014-04-02  Alan Modra  <amodra@gmail.com>
34727
34728         [BZ #16739]
34729         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34730         output when value is near a power of two.  Use int64_t for lx and
34731         remove casts.  Use decimal rather than hex exponent constants.
34732         Don't use long double multiplication when double will suffice.
34733         * math/libm-test.inc (nextafter_test_data): Add tests.
34734         * NEWS: Add 16739 and 16786 to bug list.
34735
34736         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34737
34738         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34739
34740 2014-04-01  Will Newton  <will.newton@linaro.org>
34741
34742         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34743         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34744
34745 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34746
34747         [BZ #13347]
34748         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34749         * nptl/tst-setuid2.c: New file.
34750         * nptl/Makefile (xtests): Add tst-setuid2.
34751
34752 2014-04-01  Alan Modra  <amodra@gmail.com>
34753
34754         [BZ #16786]
34755         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34756
34757 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34758
34759         [BZ #6803]
34760         [BZ #6804]
34761         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34762         set errno as appropriate.
34763         * math/w_scalbf.c (__scalbf): Likewise.
34764         * math/w_scalbl.c (__scalbl): Likewise.
34765         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34766         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34767         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34768         Add more NaN tests.
34769
34770         [BZ #16349]
34771         * math/w_atan2.c: Include <errno.h>.
34772         (__atan2): Set errno for result underflowing to zero.
34773         * math/w_atan2f.c: Include <errno.h>.
34774         (__atan2f): Set errno for result underflowing to zero.
34775         * math/w_atan2l.c: Include <errno.h>.
34776         (__atan2l): Set errno for result underflowing to zero.
34777         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34778         tests.
34779         * math/auto-libm-test-out: Regenerated.
34780
34781 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34782
34783         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34784         Encode instruction correctly in little endian.
34785         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34786         Likewise.
34787         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34788         Likewise.
34789         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34790         Likewise.
34791         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34792         Likewise.
34793
34794 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34795
34796         [BZ #9894]
34797         * sysdeps/unix/sysv/linux/kernel-features.h
34798         [__sparc__ && !__arch64__ && !__sparc_v9__]
34799         (__ASSUME_SET_ROBUST_LIST): Do not define.
34800         [__sparc__ && !__arch64__ && !__sparc_v9__]
34801         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34802         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34803         Likewise.
34804         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34805         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34806         (__ASSUME_REQUEUE_PI): Likewise.
34807         (__ASSUME_SET_ROBUST_LIST): Likewise.
34808         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34809         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34810         Undefine.
34811         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34812         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34813         Likewise.
34814         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34815         Likewise.
34816         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34817         Likewise.
34818         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34819         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34820         Undefine.
34821         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34822         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34823         Likewise.
34824
34825         [BZ #16648]
34826         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34827         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34828         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34829
34830 2014-03-31  Will Newton  <will.newton@linaro.org>
34831
34832         * benchtests/Makefile (bench): Add ffs and ffsll to list
34833         of tests.
34834         * benchtests/ffs-inputs: New file.
34835         * benchtests/ffsll-inputs: Likewise.
34836
34837 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34838
34839         [BZ #16770]
34840         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34841         too large before casting to int.
34842         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34843         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34844         * math/libm-test.inc (scalb_test_data): Add more tests.
34845
34846 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34847
34848         * benchtests/Makefile (DETAILED_OPT): New make option.
34849         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34850         set.
34851         * benchtests/bench-skeleton.c: Include stdbool.h.
34852         (main): Store and print timings per input.
34853         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34854         member to each argument value.
34855         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34856         (_print_arg_data): Initialize per-input timing to 0.
34857
34858         * benchtests/Makefile (timing-type): New binary.
34859         (bench-clean): Also remove bench-timing-type.
34860         (bench): New target for timing-type.
34861         (bench-func): Print output in JSON format.
34862         * benchtests/bench-skeleton.c (main): Print output in JSON
34863         format.
34864         * benchtests/bench-timing-type.c: New file.
34865         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34866         (TIMING_PRINT_STATS): Remove.
34867         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34868         name separately.
34869
34870         * benchtests/bench-modf.c: Remove.
34871         * benchtests/modf-inputs: New inputs file.
34872
34873 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34874
34875         [BZ #16362]
34876         * math/s_clog10.c (M_PI_LOG10E): New macro.
34877         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34878         imaginary parts are 0.
34879         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34880         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34881         imaginary parts are 0.
34882         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34883         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34884         imaginary parts are 0.
34885         * math/libm-test.inc (clog10_test_data): Update expected results
34886         for when real and imaginary parts are 0.
34887
34888 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34889
34890         * elf/dl-load.c: Finish conversion of __builtin_expect into
34891         __glibc_{un}likely.
34892
34893 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34894
34895         [BZ #16348]
34896         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34897         1+x for argument with exponent below -67.
34898         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34899         Likewise.
34900         * math/auto-libm-test-in: Add more tests of exp.
34901         * math/auto-libm-test-out: Regenerated.
34902
34903 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34904
34905         [BZ #16759]
34906         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34907         (nscd_getnetgrent): Use it.
34908
34909         [BZ #16760]
34910         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34911         of stpcpy.
34912
34913 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34914
34915         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34916         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34917         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34918         (lll_robust_unlock): Remove out of line section. Use cfi
34919         intrinsics.
34920         (LLL_STUB_UNWIND_INFO*): Remove.
34921         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34922         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34923         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34924         (lll_robust_unlock): Remove out of line section. Use cfi
34925         intrinsics.
34926         (LLL_STUB_UNWIND_INFO*): Remove.
34927
34928 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34929
34930         [BZ #16758]
34931         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34932         blank values.
34933
34934 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34935
34936         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34937
34938 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34939
34940         [BZ #16198]
34941         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34942         fnstenv.
34943         * math/test-fenv-preserve.c: New file.
34944         * math/Makefile (tests): Add test-fenv-preserve.
34945
34946 2014-03-26  Will Newton <will.newton@linaro.org>
34947
34948         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34949
34950 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34951
34952         * scripts/versionlist.awk: Partition the version sets and emit all
34953         GLIBC_* (sorted) before all others (sorted).
34954
34955 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34956
34957         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34958         GLIBC_2.2.5 version.
34959
34960 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34961
34962         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34963         calls.
34964
34965         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34966         previous change.
34967
34968         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34969
34970 2014-03-25  Andreas Schwab  <schwab@suse.de>
34971
34972         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34973         label to be used after in6ailist is initialized.
34974
34975 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34976
34977         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34978         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34979
34980 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34981
34982         [BZ #16357]
34983         [BZ #16599]
34984         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34985         min_plus_half.
34986         (fp_formats): Update initializers.
34987         (init_fp_formats): Initialize new field.
34988         (output_for_one_input_case): Allow underflow for results up to
34989         min_plus_half.
34990         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34991         * math/auto-libm-test-in: Don't mark some underflows from asin and
34992         atanh as spurious.
34993         * math/auto-libm-test-out: Regenerated.
34994         * sysdeps/i386/fpu/libm-test-ulps: Update.
34995         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34996
34997 2014-03-25  Andreas Schwab  <schwab@suse.de>
34998
34999         * libio/Makefile (tst-ftell-partial-wide-ENV)
35000         (tst-ftell-active-handler-ENV): Define.
35001
35002 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
35003
35004         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
35005
35006 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
35007
35008         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
35009
35010 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
35011
35012         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
35013         * sysdeps/x86_64/fpu/multiarch/e_exp.c
35014         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
35015
35016 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
35017
35018         [BZ #16634]
35019         * elf/dl-load.c (open_verify): Add mode parameter.
35020         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
35021         (open_path): Change from boolean 'secure' to complete flag 'mode'
35022         (_dl_map_object): Adjust.
35023         * elf/Makefile (tests): Add tst-dlopen-aout.
35024         * elf/tst-dlopen-aout.c: New test.
35025
35026 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
35027
35028         [BZ #16714]
35029         * sysdeps/unix/sysv/linux/s390/bits/stat.h
35030         (struct stat): Rename member pad0 to __glibc_reserved0.
35031
35032         [BZ #16712]
35033         * sysdeps/s390/s390-32/bits/wordsize.h
35034         (__WORDSIZE32_SIZE_ULONG): New define.
35035         * sysdeps/s390/s390-64/bits/wordsize.h
35036         (__WORDSIZE32_SIZE_ULONG): Likewise.
35037         * sysdeps/generic/stdint.h (SIZE_MAX):
35038         Define as UL if __WORDSIZE32_SIZE_ULONG.
35039
35040         [BZ #16713]
35041         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
35042         (__glibc_reserved0): New variable.
35043         (sa_flags): Change type to int.
35044
35045         * posix/Makefile (before-compile): Use += before-compile instead
35046         of a :=.
35047
35048         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
35049         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
35050
35051 2014-03-20  Andreas Schwab  <schwab@suse.de>
35052
35053         [BZ #16743]
35054         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
35055         non-matching result from nscd.
35056
35057 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
35058
35059         * scripts/bench.py: Moved to ...
35060         * benchtests/scripts/bench.py: ... here.
35061         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
35062
35063 2014-03-24  Andreas Schwab  <schwab@suse.de>
35064
35065         [BZ #16002]
35066         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
35067         alloca_account and account alloca use for struct in6ailist.
35068
35069 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
35070
35071         [BZ #16284]
35072         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
35073         rounding mode to recompute results that overflow to infinity or
35074         underflow to zero.
35075         * math/auto-libm-test-in: Don't mark tests as expected to fail for
35076         bug 16284.
35077         * math/auto-libm-test-out: Regenerated.
35078         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
35079         (ccosh_test): Likewise.
35080         (csin_test_data): Use plus_oflow.
35081         (csin_test): Use ALL_RM_TEST.
35082         (csinh_test_data): Use plus_oflow.
35083         (csinh_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  Joseph Myers  <joseph@codesourcery.com>
35088
35089         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
35090         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
35091         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
35092
35093         [BZ #16731]
35094         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
35095         when x - 1 is zero.
35096         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
35097         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
35098         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
35099         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
35100         argument is 1.
35101         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
35102         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
35103         zero.
35104         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
35105         * sysdeps/i386/fpu/libm-test-ulps: Update.
35106         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35107
35108 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
35109
35110         * scripts/bench.pl: Remove file.
35111         * scripts/bench.py: New benchmark script.
35112         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
35113         * benchtests/README: Mention python dependency.
35114         * scripts/pylintrc: New file.
35115         * scripts/pylint: New file.
35116
35117         * bits/mathdef.h: Use #ifdef instead of #if.
35118         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
35119         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35120         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
35121         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35122         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
35123         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35124
35125 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35126             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35127
35128         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
35129         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
35130         and strpbrk-ppc64 objects.
35131         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35132         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
35133         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
35134         multiarch strpbrk for POWER7.
35135         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
35136         multiarch strpbrk for PPC64.
35137         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
35138         ifunc selector.
35139         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
35140         strpbrk for POWER7.
35141
35142 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35143
35144         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
35145         (atan_test): Likewise.
35146         (atanh_test_data): Use NO_TEST_INLINE for two tests.
35147         (atanh_test): Use ALL_RM_TEST.
35148         (atan2_test_data): Likewise.
35149         (cabs_test): Likewise.
35150         (cacosh_test): Likewise.
35151         (carg_test): Likewise.
35152         (casin_test): Likewise.
35153         (casinh_test): Likewise.
35154         (cbrt_test): Likewise.
35155         (csqrt_test): Likewise.
35156         (erf_test): Likewise.
35157         (erfc_test): Likewise.
35158         (pow10_test): Likewise.
35159         (exp2_test): Likewise.
35160         (hypot_test): Likewise.
35161         (j0_test): Likewise.
35162         (j1_test): Likewise.
35163         (lgamma_test): Likewise.
35164         (gamma_test): Likewise.
35165         (sincos_test): Likewise.
35166         (tanh_test): Likewise.
35167         (y0_test): Likewise.
35168         (y1_test): Likewise.
35169         * sysdeps/i386/fpu/libm-test-ulps: Update.
35170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35171
35172 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35173
35174         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
35175         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
35176         and strcspn-ppc64 objects.
35177         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35178         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
35179         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
35180         multiarch strcspn for POWER7.
35181         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
35182         multiarch strcspn for PPC64.
35183         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
35184         ifunc selector.
35185         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
35186         strcspn for POWER7.
35187
35188 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35189
35190         * math/gen-libm-test.pl (generate_testfile): Expect only function
35191         name as argument to AUTO_TESTS_* and pass results for all rounding
35192         modes to parse_args.
35193         (parse_auto_input): Separate inputs of automatic tests from
35194         outputs before storing in %auto_tests.
35195         * math/libm-test.inc (acos_test_data): Update call to
35196         AUTO_TESTS_f_f.
35197         (acos_test): Use ALL_RM_TEST.
35198         (acos_tonearest_test_data): Remove.
35199         (acos_test_tonearest): Likewise.
35200         (acos_towardzero_test_data): Likewise.
35201         (acos_test_towardzero): Likewise.
35202         (acos_downward_test_data): Likewise.
35203         (acos_test_downward): Likewise.
35204         (acos_upward_test_data): Likewise.
35205         (acos_test_upward): Likewise.
35206         (acosh_test_data): Update call to AUTO_TESTS_f_f.
35207         (asin_test_data): Likewise.
35208         (asin_test): Use ALL_RM_TEST.
35209         (asin_tonearest_test_data): Remove.
35210         (asin_test_tonearest): Likewise.
35211         (asin_towardzero_test_data): Likewise.
35212         (asin_test_towardzero): Likewise.
35213         (asin_downward_test_data): Likewise.
35214         (asin_test_downward): Likewise.
35215         (asin_upward_test_data): Likewise.
35216         (asin_test_upward): Likewise.
35217         (asinh_test_data): Update call to AUTO_TESTS_f_f.
35218         (atan_test_data): Likewise.
35219         (atanh_test_data): Likewise.
35220         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
35221         (cabs_test_data): Update call to AUTO_TESTS_c_f.
35222         (carg_test_data): Likewise.
35223         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
35224         (ccos_test_data): Update call to AUTO_TESTS_c_c.
35225         (ccosh_test_data): Likewise.
35226         (cexp_test_data): Likewise.
35227         (clog_test_data): Likewise.
35228         (clog10_test_data): Likewise.
35229         (cos_test_data): Update call to AUTO_TESTS_f_f.
35230         (cos_test): Use ALL_RM_TEST.
35231         (cos_tonearest_test_data): Remove.
35232         (cos_test_tonearest): Likewise.
35233         (cos_towardzero_test_data): Likewise.
35234         (cos_test_towardzero): Likewise.
35235         (cos_downward_test_data): Likewise.
35236         (cos_test_downward): Likewise.
35237         (cos_upward_test_data): Likewise.
35238         (cos_test_upward): Likewise.
35239         (cosh_test_data): Update call to AUTO_TESTS_f_f.
35240         (cosh_test): Use ALL_RM_TEST.
35241         (cosh_tonearest_test_data): Remove.
35242         (cosh_test_tonearest): Likewise.
35243         (cosh_towardzero_test_data): Likewise.
35244         (cosh_test_towardzero): Likewise.
35245         (cosh_downward_test_data): Likewise.
35246         (cosh_test_downward): Likewise.
35247         (cosh_upward_test_data): Likewise.
35248         (cosh_test_upward): Likewise.
35249         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
35250         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
35251         (ctan_test_data): Likewise.
35252         (ctan_test): Use ALL_RM_TEST.
35253         (ctan_tonearest_test_data): Remove.
35254         (ctan_test_tonearest): Likewise.
35255         (ctan_towardzero_test_data): Likewise.
35256         (ctan_test_towardzero): Likewise.
35257         (ctan_downward_test_data): Likewise.
35258         (ctan_test_downward): Likewise.
35259         (ctan_upward_test_data): Likewise.
35260         (ctan_test_upward): Likewise.
35261         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
35262         (ctanh_test): Use ALL_RM_TEST.
35263         (ctanh_tonearest_test_data): Remove.
35264         (ctanh_test_tonearest): Likewise.
35265         (ctanh_towardzero_test_data): Likewise.
35266         (ctanh_test_towardzero): Likewise.
35267         (ctanh_downward_test_data): Likewise.
35268         (ctanh_test_downward): Likewise.
35269         (ctanh_upward_test_data): Likewise.
35270         (ctanh_test_upward): Likewise.
35271         (erf_test_data): Update call to AUTO_TESTS_f_f.
35272         (erfc_test_data): Likewise.
35273         (exp_test_data): Likewise.
35274         (exp_test): Use ALL_RM_TEST.
35275         (exp_tonearest_test_data): Remove.
35276         (exp_test_tonearest): Likewise.
35277         (exp_towardzero_test_data): Likewise.
35278         (exp_test_towardzero): Likewise.
35279         (exp_downward_test_data): Likewise.
35280         (exp_test_downward): Likewise.
35281         (exp_upward_test_data): Likewise.
35282         (exp_test_upward): Likewise.
35283         (exp10_test_data): Update call to AUTO_TESTS_f_f.
35284         (exp10_test): Use ALL_RM_TEST.
35285         (exp10_tonearest_test_data): Remove.
35286         (exp10_test_tonearest): Likewise.
35287         (exp10_towardzero_test_data): Likewise.
35288         (exp10_test_towardzero): Likewise.
35289         (exp10_downward_test_data): Likewise.
35290         (exp10_test_downward): Likewise.
35291         (exp10_upward_test_data): Likewise.
35292         (exp10_test_upward): Likewise.
35293         (exp2_test_data): Update call to AUTO_TESTS_f_f.
35294         (expm1_test_data): Likewise.
35295         (expm1_test): Use ALL_RM_TEST.
35296         (expm1_tonearest_test_data): Remove.
35297         (expm1_test_tonearest): Likewise.
35298         (expm1_towardzero_test_data): Likewise.
35299         (expm1_test_towardzero): Likewise.
35300         (expm1_downward_test_data): Likewise.
35301         (expm1_test_downward): Likewise.
35302         (expm1_upward_test_data): Likewise.
35303         (expm1_test_upward): Likewise.
35304         (fma_test_data): Update call to AUTO_TESTS_fff_f.
35305         (fma_test): Use ALL_RM_TEST.
35306         (fma_towardzero_test_data): Remove.
35307         (fma_test_towardzero): Likewise.
35308         (fma_downward_test_data): Likewise.
35309         (fma_test_downward): Likewise.
35310         (fma_upward_test_data): Likewise.
35311         (fma_test_upward): Likewise.
35312         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
35313         (j0_test_data): Update call to AUTO_TESTS_f_f.
35314         (j1_test_data): Likewise.
35315         (jn_test_data): Update call to AUTO_TESTS_if_f.
35316         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
35317         (log_test_data): Update call to AUTO_TESTS_f_f.
35318         (log10_test_data): Likewise.
35319         (log1p_test_data): Likewise.
35320         (log2_test_data): Likewise.
35321         (pow_test_data): Update call to AUTO_TESTS_ff_f.
35322         (pow_tonearest_test_data): Likewise.
35323         (sin_test_data): Update call to AUTO_TESTS_f_f.
35324         (sin_test): Use ALL_RM_TEST.
35325         (sin_tonearest_test_data): Remove.
35326         (sin_test_tonearest): Likewise.
35327         (sin_towardzero_test_data): Likewise.
35328         (sin_test_towardzero): Likewise.
35329         (sin_downward_test_data): Likewise.
35330         (sin_test_downward): Likewise.
35331         (sin_upward_test_data): Likewise.
35332         (sin_test_upward): Likewise.
35333         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
35334         (sinh_test_data): Update call to AUTO_TESTS_f_f.
35335         (sinh_test): Use ALL_RM_TEST.
35336         (sinh_tonearest_test_data): Remove.
35337         (sinh_test_tonearest): Likewise.
35338         (sinh_towardzero_test_data): Likewise.
35339         (sinh_test_towardzero): Likewise.
35340         (sinh_downward_test_data): Likewise.
35341         (sinh_test_downward): Likewise.
35342         (sinh_upward_test_data): Likewise.
35343         (sinh_test_upward): Likewise.
35344         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
35345         (sqrt_test): Use ALL_RM_TEST.
35346         (sqrt_tonearest_test_data): Remove.
35347         (sqrt_test_tonearest): Likewise.
35348         (sqrt_towardzero_test_data): Likewise.
35349         (sqrt_test_towardzero): Likewise.
35350         (sqrt_downward_test_data): Likewise.
35351         (sqrt_test_downward): Likewise.
35352         (sqrt_upward_test_data): Likewise.
35353         (sqrt_test_upward): Likewise.
35354         (tan_test_data): Update call to AUTO_TESTS_f_f.
35355         (tan_test): Use ALL_RM_TEST.
35356         (tan_tonearest_test_data): Remove.
35357         (tan_test_tonearest): Likewise.
35358         (tan_towardzero_test_data): Likewise.
35359         (tan_test_towardzero): Likewise.
35360         (tan_downward_test_data): Likewise.
35361         (tan_test_downward): Likewise.
35362         (tan_upward_test_data): Likewise.
35363         (tan_test_upward): Likewise.
35364         (tanh_test_data): Update call to AUTO_TESTS_f_f.
35365         (tgamma_test_data): Likewise.
35366         (y0_test_data): Likewise.
35367         (y1_test_data): Likewise.
35368         (yn_test_data): Update call to AUTO_TESTS_if_f.
35369         (main): Do not call removed functions.
35370
35371 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35372
35373         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
35374         (ldexp_test_data): Remove.
35375         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
35376         scalbn_test_data.
35377         (scalb_test): Use ALL_RM_TEST.
35378
35379 2014-03-19  Andreas Schwab  <schwab@suse.de>
35380
35381         * nscd/nscd.service: Also invalidate netgroup cache on reload.
35382
35383 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35384
35385         [BZ #16649]
35386         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
35387         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
35388         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
35389         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35390         (__ASSUME_PREADV): Undefine.
35391         (__ASSUME_PWRITEV): Likewise.
35392
35393 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35394
35395         * bits/mman-linux.h: Add comment about non-Linux use.
35396         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
35397         bits/mman-linux.h resting place.
35398
35399         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
35400         * bits/mman-linux.h: ... here.
35401
35402 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35403
35404         * conform/conformtest.pl: Add standard definition when calling C
35405         preprocessor on data files.
35406         (checknamespace): Remove unused variable.
35407
35408 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35409
35410         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
35411         minus_oflow, plus_uflow and minus_uflow in expected results.
35412         * math/libm-test.inc (scalbn_test_data): Add more tests of
35413         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
35414         minus_uflow.
35415         (scalbn_test): Use ALL_RM_TEST.
35416         (scalbln_test_data): Add more tests of negative arguments.  Use
35417         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
35418         (scalbln_test): Use ALL_RM_TEST.
35419
35420 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35421
35422         * scripts/abilist.awk: Ignore symbols marked with .hidden.
35423
35424 2014-03-18  Will Newton  <will.newton@linaro.org>
35425
35426         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
35427         inaccurate comment.
35428
35429 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35430
35431         * Makerules [!subdir] (check-abi): Exit with error status if a
35432         test failed.
35433
35434 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35435
35436         * math/libm-test.inc (nearbyint_test_data): Include all tests used
35437         for rint.  Include results for all rounding modes.
35438         (nearbyint_test): Use ALL_RM_TEST.
35439         (rint_test_data): Include all tests used for nearbyint.
35440
35441 2014-03-17  Will Newton  <will.newton@linaro.org>
35442
35443         * nptl/sysdeps/pthread/pthread.h: Revert previous
35444         change.
35445
35446         * sysdeps/generic/ldsodefs.h: Revert previous
35447         change.
35448
35449         * libio/genops.c: Revert previous change.
35450         * libio/libioP.h: Likewise.
35451         * stdio-common/vfprintf.c: Likewise.
35452
35453         * sysdeps/generic/math_private.h: Revert previous
35454         change.
35455
35456         * sysdeps/generic/math_private.h: Check whether
35457         HAVE_RM_CTX is defined with #ifdef rather
35458         than #if.
35459
35460         * argp/argp-fmtstream.h: Check whether
35461         __STRICT_ANSI__ is defined with #ifdef rather
35462         than #if.
35463         * argp/argp.h: Likewise.
35464
35465         * libio/genops.c: Check whether
35466         _IO_JUMPS_OFFSET is defined with #ifdef rather
35467         than #if.
35468         * libio/libioP.h: Likewise.
35469         * stdio-common/vfprintf.c: Likewise.
35470
35471         * sysdeps/generic/ldsodefs.h: Check whether
35472         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
35473         than #if.
35474
35475         * nptl/sysdeps/pthread/pthread.h: Check
35476         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
35477         its value.
35478
35479 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
35480
35481         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
35482         setting O_APPEND.
35483         * libio/tst-ftell-active-handler.c (do_append_test): Add a
35484         test case.
35485
35486         [BZ #16680]
35487         * libio/fileops.c (_IO_file_open): Seek to end of file but
35488         don't cache the offset.
35489         (get_file_offset): Remove function.
35490         (do_ftell): Use cached offset when available.
35491         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
35492         don't cache the offset.
35493         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
35494         case.
35495         (do_one_test): Call it.
35496         (do_ftell_test): Fix up expected old offset for a+ mode.
35497         * libio/wfileops.c (do_ftell_wide): Used cached offset when
35498         available.
35499
35500         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
35501         up test status with function return status.
35502         (do_write_test): Likewise.
35503         (do_append_test): Likewise.
35504
35505         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
35506         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
35507         Remove.
35508
35509 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35510
35511         * math/gen-libm-test.pl (parse_args): Handle results specified for
35512         each rounding mode separately.
35513         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
35514         tests and results from lrint_tonearest_test_data,
35515         lrint_towardzero_test_data, lrint_downward_test_data and
35516         lrint_upward_test_data.
35517         (lrint_test): Use ALL_RM_TEST.
35518         (lrint_tonearest_test_data): Remove.
35519         (lrint_test_tonearest): Likewise.
35520         (lrint_towardzero_test_data): Likewise.
35521         (lrint_test_towardzero): Likewise.
35522         (lrint_downward_test_data): Likewise.
35523         (lrint_test_downward): Likewise.
35524         (lrint_upward_test_data): Likewise.
35525         (lrint_test_upward): Likewise.
35526         (llrint_test_data): Merge in per-rounding-mode tests and results
35527         from llrint_tonearest_test_data, llrint_towardzero_test_data,
35528         llrint_downward_test_data and llrint_upward_test_data.
35529         (llrint_test): Use ALL_RM_TEST.
35530         (llrint_tonearest_test_data): Remove.
35531         (llrint_test_tonearest): Likewise.
35532         (llrint_towardzero_test_data): Likewise.
35533         (llrint_test_towardzero): Likewise.
35534         (llrint_downward_test_data): Likewise.
35535         (llrint_test_downward): Likewise.
35536         (llrint_upward_test_data): Likewise.
35537         (llrint_test_upward): Likewise.
35538         (rint_test_data): Merge in per-rounding-mode tests and results
35539         from rint_tonearest_test_data, rint_towardzero_test_data,
35540         rint_downward_test_data and rint_upward_test_data.  Add
35541         per-rounding-mode results for tests not in those arrays.
35542         (rint_test): Use ALL_RM_TEST.
35543         (rint_tonearest_test_data): Remove.
35544         (rint_test_tonearest): Likewise.
35545         (rint_towardzero_test_data): Likewise.
35546         (rint_test_towardzero): Likewise.
35547         (rint_downward_test_data): Likewise.
35548         (rint_test_downward): Likewise.
35549         (rint_upward_test_data): Likewise.
35550         (rint_test_upward): Likewise.
35551         (main): Don't call removed functions.
35552
35553 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35554
35555         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
35556         "Compiled on ..." crapola.  It is anti-useful.
35557
35558 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
35559
35560         * scripts/evaluate-test.sh: Handle fourth argument to determine
35561         whether test run should stop on failure.
35562         * Makeconfig (stop-on-test-failure): New variable.
35563         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
35564         $(stop-on-test-failure).
35565         * Makefile (tests): Give a summary of results from testing and
35566         exit with failure status if they include an ERROR or FAIL.
35567         (xtests): Likewise.
35568         * manual/install.texi (Configuring and compiling): Mention
35569         stop-on-test-failure=y.
35570         * INSTALL: Regenerated.
35571
35572 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35573
35574         * scripts/versionlist.awk: New file.
35575         * Makerules [$(build-shared) = yes]
35576         (postclean-generated): Add Versions.def, not Versions.def.v and
35577         Versions.def.v.i.
35578         ($(common-objpfx)Versions.def.v.i): Target removed.
35579         ($(common-objpfx)Versions.def): New target.
35580         ($(common-objpfx)Versions.all): Depend on that rather that
35581         $(common-objpfx)Versions.def.v.
35582         * Versions.def: File removed.
35583
35584         * Makeconfig (+gccwarn): Add -Wundef.
35585         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
35586         a dl-sysdep.h breaking its contract.
35587         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
35588         * include/stackinfo.h: New file.
35589         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
35590         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
35591         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
35592         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
35593         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
35594         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
35595         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35596         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35597         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35598         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35599         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35600         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
35601         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35602         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35603         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35604
35605 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35606
35607         [BZ #16707]
35608         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
35609         implementation.
35610         * math/libm-test.inc (round_test_data): Add more tests.
35611
35612         [BZ #16706]
35613         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
35614         implementation.
35615         * math/libm-test.inc (nearbyint_test_data): Add more tests.
35616
35617         [BZ #16701]
35618         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
35619         implementation.
35620         * math/libm-test.inc (ceil_test_data): Add more tests.
35621
35622         * math/libm-test.inc (trunc_test_data): Add more tests related to
35623         BZ#16414.
35624
35625 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35626
35627         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35628         with #if rather than #ifdef.
35629         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35630
35631 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35632
35633         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35634         first.  Disable AVX-512 GCC support if assembler doesn't support
35635         it.
35636         * sysdeps/x86_64/configure: Regenerated.
35637
35638 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35639
35640         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35641         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35642         (__old_pthread_attr_setstack): Likewise.
35643         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35644         [!_STACK_GROWS_DOWN]: Likewise.
35645
35646 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35647
35648         * config.make.in (have-bash2): Delete.
35649         * configure.ac (libc_cv_have_bash2): Delete.
35650         * configure: Regenerate.
35651         * elf/Makefile (common-ldd-rewrite): Rename to ...
35652         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35653         (sh-ldd-rewrite): Delete.
35654         (bash-ldd-rewrite): Delete.
35655         (have-bash2): Delete checks.
35656         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35657         ldd-rewrite.
35658
35659         * config.make.in (have-ksh): Delete.
35660         (KSH): Delete.
35661         * configure.ac (libc_cv_have_ksh): Delete.
35662         * configure: Regenerate.
35663
35664         * elf/Makefile: Delete $(have-ksh) check.
35665         ($(objpfx)sotruss): Change KSH to BASH.
35666         * elf/sotruss.ksh: Rename to ...
35667         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35668         function style to match POSIX.  Drop ksh vim mode setting.
35669
35670         * manual/time.texi (Specifying the Time Zone with TZ): Change
35671         Tuesday to Thursday.
35672
35673         * debug/tst-longjmp_chk2.c: Update header comment.
35674         (stackoverflow_handler): Add comment.  Call assert on pass value.
35675
35676 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35677
35678         [BZ #16194]
35679         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35680         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35681         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35682         (La_x86_64_vector): Add zmm.
35683         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35684         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35685         ($(objpfx)tst-audit10): New target.
35686         ($(objpfx)tst-audit10.out): Likewise.
35687         (tst-audit10-ENV): New.
35688         (AVX512-CFLAGS): Likewise.
35689         (CFLAGS-tst-audit10.c): Likewise.
35690         (CFLAGS-tst-auditmod10a.c): Likewise.
35691         (CFLAGS-tst-auditmod10b.c): Likewise.
35692         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35693         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35694         * sysdeps/x86_64/configure: Regenerated.
35695         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35696         AVX-512 zmm register support.
35697         (_dl_x86_64_save_sse): Likewise.
35698         (_dl_x86_64_restore_sse): Likewise.
35699         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35700         size vector registers.
35701         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35702         (ZMM_SIZE): Likewise.
35703         * sysdeps/x86_64/tst-audit10.c: New file.
35704         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35705         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35706
35707 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35708
35709         * configure.ac (HAVE_EHDR_START): New check.
35710         * configure: Regenerated.
35711         * config.h.in (HAVE_EHDR_START): New #undef.
35712         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35713         assuming the lowest-addressed segment maps the start of the file.
35714
35715 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35716
35717         * INSTALL: Regenerated.
35718
35719 2014-03-13  Will Newton  <will.newton@linaro.org>
35720
35721         * manual/setjmp.texi (System V contexts): Improve
35722         clarity and grammar of documentation.
35723
35724 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35725
35726         [BZ #16381]
35727         * elf/Makefile (tests): Add tst-pie2.
35728         (tests-pie): Add tst-pie2.
35729         * elf/tst-pie2.c: New file.
35730         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35731         for ET_EXEC.
35732         * elf/rtld.c (map_doit): Load executable as lt_executable.
35733         (dl_main): Likewise.
35734
35735 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35736
35737         [BZ #16642]
35738         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35739         (__ASSUME_PSELECT): Undefine.
35740
35741 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35742
35743         [BZ #16689]
35744         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35745         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35746         static build.
35747         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35748         selector for static builds.
35749
35750 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35751
35752         [BZ #16695]
35753         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35754         key in the buffer.
35755
35756 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35757
35758         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35759         IFUNC selector for static builds.
35760
35761 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35762
35763         * sysdeps/mips/math_private.h [__mips_hard_float]
35764         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35765         libc_feresetround_mips_ctx.
35766         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35767         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35768         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35769
35770         [BZ #16677]
35771         * math/s_nextafter.c (__nextafter): Do not return value from
35772         overflowing computation.
35773         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35774         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35775         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35776         Likewise.
35777         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35778         Likewise.
35779         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35780         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35781
35782 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35783
35784         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35785         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35786         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35787         the new mov targetting sp.
35788
35789 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35790
35791         [BZ #16683]
35792         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35793         Define it for static builds as well.
35794         (NO_BZERO_IMPL): Likewise.
35795
35796 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35797
35798         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35799         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35800         multiarch strspn for PPC64.
35801         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35802         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35803         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35804         (__libc_ifunc_impl_list): Likewise.
35805         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35806         multiarch optimizations
35807         * string/strspn.c (strspn): Using macro to redefine symbol name.
35808
35809 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35810             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35811
35812         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35813         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35814         multiarch strncat for PPC64.
35815         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35816         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35817         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35818         (__libc_ifunc_impl_list): Likewise.
35819         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35820         multiarch optimizations
35821
35822 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35823
35824         [BZ #16639]
35825         * nscd/nscd.service: Make service type forking.
35826
35827 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35828
35829         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35830         sign in non default rounding modes.
35831         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35832
35833 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35834
35835         * math/libm-test.inc (ALL_RM_TEST): New macro.
35836         (ceil_test): Use ALL_RM_TEST.
35837         (cimag_test): Likewise.
35838         (conj_test): Likewise.
35839         (copysign_test): Likewise.
35840         (cproj_test): Likewise.
35841         (creal_test): Likewise.
35842         (fabs_test): Likewise.
35843         (floor_test): Likewise.
35844         (fmax_test): Likewise.
35845         (fmin_test): Likewise.
35846         (fmod_test): Likewise.
35847         (fpclassify_test): Likewise.
35848         (frexp_test): Likewise.
35849         (ilogb_test): Likewise.
35850         (isfinite_test): Likewise.
35851         (finite_test): Likewise.
35852         (isgreater_test): Likewise.
35853         (isgreaterequal_test): Likewise.
35854         (isinf_test): Likewise.
35855         (isless_test): Likewise.
35856         (islessequal_test): Likewise.
35857         (islessgreater_test): Likewise.
35858         (isnan_test): Likewise.
35859         (isnormal_test): Likewise.
35860         (issignaling_test): Likewise.
35861         (isunordered_test): Likewise.
35862         (logb_test): Likewise.
35863         (logb_downward_test_data): Remove.
35864         (logb_test_downward): Likewise.
35865         (lround_test): Use ALL_RM_TEST.
35866         (llround_test): Likewise.
35867         (modf_test): Likewise.
35868         (nexttoward_test): Likewise.
35869         (remainder_test): Likewise.
35870         (drem_test): Likewise.
35871         (remainder_tonearest_test_data): Likewise.
35872         (remainder_test_tonearest): Likewise.
35873         (drem_test_tonearest): Likewise.
35874         (remainder_towardzero_test_data): Likewise.
35875         (remainder_test_towardzero): Likewise.
35876         (drem_test_towardzero): Likewise.
35877         (remainder_downward_test_data): Likewise.
35878         (remainder_test_downward): Likewise.
35879         (drem_test_downward): Likewise.
35880         (remainder_upward_test_data): Likewise.
35881         (remainder_test_upward): Likewise.
35882         (drem_test_upward): Likewise.
35883         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35884         (round_test): Use ALL_RM_TEST.
35885         (signbit_test): Likewise.
35886         (trunc_test): Likewise.
35887         (significand_test): Likewise.
35888         (main): Don't call removed functions.
35889
35890 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35891
35892         [BZ #16674]
35893         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35894         || __USE_XOPEN2K8].
35895         (ILL_ILLOPN): Likewise.
35896         (ILL_ILLADR): Likewise.
35897         (ILL_ILLTRP): Likewise.
35898         (ILL_PRVOPC): Likewise.
35899         (ILL_PRVREG): Likewise.
35900         (ILL_COPROC): Likewise.
35901         (ILL_BADSTK): Likewise.
35902         (FPE_INTDIV): Likewise.
35903         (FPE_INTOVF): Likewise.
35904         (FPE_FLTDIV): Likewise.
35905         (FPE_FLTOVF): Likewise.
35906         (FPE_FLTUND): Likewise.
35907         (FPE_FLTRES): Likewise.
35908         (FPE_FLTINV): Likewise.
35909         (FPE_FLTSUB): Likewise.
35910         (SEGV_MAPERR): Likewise.
35911         (SEGV_ACCERR): Likewise.
35912         (BUS_ADRALN): Likewise.
35913         (BUS_ADRERR): Likewise.
35914         (BUS_OBJERR): Likewise.
35915         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35916         (TRAP_TRACE): Likewise.
35917         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35918         __USE_XOPEN2K8].
35919         (CLD_KILLED): Likewise.
35920         (CLD_DUMPED): Likewise.
35921         (CLD_TRAPPED): Likewise.
35922         (CLD_STOPPED): Likewise.
35923         (CLD_CONTINUED): Likewise.
35924         (POLL_IN): Likewise.
35925         (POLL_OUT): Likewise.
35926         (POLL_MSG): Likewise.
35927         (POLL_ERR): Likewise.
35928         (POLL_PRI): Likewise.
35929         (POLL_HUP): Likewise.
35930         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35931         Likewise.
35932         (ILL_ILLOPN): Likewise.
35933         (ILL_ILLADR): Likewise.
35934         (ILL_ILLTRP): Likewise.
35935         (ILL_PRVOPC): Likewise.
35936         (ILL_PRVREG): Likewise.
35937         (ILL_COPROC): Likewise.
35938         (ILL_BADSTK): Likewise.
35939         (FPE_INTDIV): Likewise.
35940         (FPE_INTOVF): Likewise.
35941         (FPE_FLTDIV): Likewise.
35942         (FPE_FLTOVF): Likewise.
35943         (FPE_FLTUND): Likewise.
35944         (FPE_FLTRES): Likewise.
35945         (FPE_FLTINV): Likewise.
35946         (FPE_FLTSUB): Likewise.
35947         (SEGV_MAPERR): Likewise.
35948         (SEGV_ACCERR): Likewise.
35949         (BUS_ADRALN): Likewise.
35950         (BUS_ADRERR): Likewise.
35951         (BUS_OBJERR): Likewise.
35952         (BUS_MCEERR_AR): Likewise.
35953         (BUS_MCEERR_AO): Likewise.
35954         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35955         (TRAP_TRACE): Likewise.
35956         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35957         __USE_XOPEN2K8].
35958         (CLD_KILLED): Likewise.
35959         (CLD_DUMPED): Likewise.
35960         (CLD_TRAPPED): Likewise.
35961         (CLD_STOPPED): Likewise.
35962         (CLD_CONTINUED): Likewise.
35963         (POLL_IN): Likewise.
35964         (POLL_OUT): Likewise.
35965         (POLL_MSG): Likewise.
35966         (POLL_ERR): Likewise.
35967         (POLL_PRI): Likewise.
35968         (POLL_HUP): Likewise.
35969         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35970         (ILL_ILLOPN): Likewise.
35971         (ILL_ILLADR): Likewise.
35972         (ILL_ILLTRP): Likewise.
35973         (ILL_PRVOPC): Likewise.
35974         (ILL_PRVREG): Likewise.
35975         (ILL_COPROC): Likewise.
35976         (ILL_BADSTK): Likewise.
35977         (FPE_INTDIV): Likewise.
35978         (FPE_INTOVF): Likewise.
35979         (FPE_FLTDIV): Likewise.
35980         (FPE_FLTOVF): Likewise.
35981         (FPE_FLTUND): Likewise.
35982         (FPE_FLTRES): Likewise.
35983         (FPE_FLTINV): Likewise.
35984         (FPE_FLTSUB): Likewise.
35985         (SEGV_MAPERR): Likewise.
35986         (SEGV_ACCERR): Likewise.
35987         (BUS_ADRALN): Likewise.
35988         (BUS_ADRERR): Likewise.
35989         (BUS_OBJERR): Likewise.
35990         (BUS_MCEERR_AR): Likewise.
35991         (BUS_MCEERR_AO): Likewise.
35992         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35993         (TRAP_TRACE): Likewise.
35994         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35995         __USE_XOPEN2K8].
35996         (CLD_KILLED): Likewise.
35997         (CLD_DUMPED): Likewise.
35998         (CLD_TRAPPED): Likewise.
35999         (CLD_STOPPED): Likewise.
36000         (CLD_CONTINUED): Likewise.
36001         (POLL_IN): Likewise.
36002         (POLL_OUT): Likewise.
36003         (POLL_MSG): Likewise.
36004         (POLL_ERR): Likewise.
36005         (POLL_PRI): Likewise.
36006         (POLL_HUP): Likewise.
36007         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
36008         Likewise.
36009         (ILL_ILLOPN): Likewise.
36010         (ILL_ILLADR): Likewise.
36011         (ILL_ILLTRP): Likewise.
36012         (ILL_PRVOPC): Likewise.
36013         (ILL_PRVREG): Likewise.
36014         (ILL_COPROC): Likewise.
36015         (ILL_BADSTK): Likewise.
36016         (ILL_BADIADDR): Likewise.
36017         (ILL_BREAK): Likewise.
36018         (FPE_INTDIV): Likewise.
36019         (FPE_INTOVF): Likewise.
36020         (FPE_FLTDIV): Likewise.
36021         (FPE_FLTOVF): Likewise.
36022         (FPE_FLTUND): Likewise.
36023         (FPE_FLTRES): Likewise.
36024         (FPE_FLTINV): Likewise.
36025         (FPE_FLTSUB): Likewise.
36026         (FPE_DECOVF): Likewise.
36027         (FPE_DECDIV): Likewise.
36028         (FPE_DECERR): Likewise.
36029         (FPE_INVASC): Likewise.
36030         (FPE_INVDEC): Likewise.
36031         (SEGV_MAPERR): Likewise.
36032         (SEGV_ACCERR): Likewise.
36033         (SEGV_PSTKOVF): Likewise.
36034         (BUS_ADRALN): Likewise.
36035         (BUS_ADRERR): Likewise.
36036         (BUS_OBJERR): Likewise.
36037         (BUS_MCEERR_AR): Likewise.
36038         (BUS_MCEERR_AO): Likewise.
36039         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36040         (TRAP_TRACE): Likewise.
36041         (TRAP_BRANCH): Likewise.
36042         (TRAP_HWBKPT): Likewise.
36043         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36044         __USE_XOPEN2K8].
36045         (CLD_KILLED): Likewise.
36046         (CLD_DUMPED): Likewise.
36047         (CLD_TRAPPED): Likewise.
36048         (CLD_STOPPED): Likewise.
36049         (CLD_CONTINUED): Likewise.
36050         (POLL_IN): Likewise.
36051         (POLL_OUT): Likewise.
36052         (POLL_MSG): Likewise.
36053         (POLL_ERR): Likewise.
36054         (POLL_PRI): Likewise.
36055         (POLL_HUP): Likewise.
36056         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
36057         (ILL_ILLOPN): Likewise.
36058         (ILL_ILLADR): Likewise.
36059         (ILL_ILLTRP): Likewise.
36060         (ILL_PRVOPC): Likewise.
36061         (ILL_PRVREG): Likewise.
36062         (ILL_COPROC): Likewise.
36063         (ILL_BADSTK): Likewise.
36064         (FPE_INTDIV): Likewise.
36065         (FPE_INTOVF): Likewise.
36066         (FPE_FLTDIV): Likewise.
36067         (FPE_FLTOVF): Likewise.
36068         (FPE_FLTUND): Likewise.
36069         (FPE_FLTRES): Likewise.
36070         (FPE_FLTINV): Likewise.
36071         (FPE_FLTSUB): Likewise.
36072         (SEGV_MAPERR): Likewise.
36073         (SEGV_ACCERR): Likewise.
36074         (BUS_ADRALN): Likewise.
36075         (BUS_ADRERR): Likewise.
36076         (BUS_OBJERR): Likewise.
36077         (BUS_MCEERR_AR): Likewise.
36078         (BUS_MCEERR_AO): Likewise.
36079         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36080         (TRAP_TRACE): Likewise.
36081         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36082         __USE_XOPEN2K8].
36083         (CLD_KILLED): Likewise.
36084         (CLD_DUMPED): Likewise.
36085         (CLD_TRAPPED): Likewise.
36086         (CLD_STOPPED): Likewise.
36087         (CLD_CONTINUED): Likewise.
36088         (POLL_IN): Likewise.
36089         (POLL_OUT): Likewise.
36090         (POLL_MSG): Likewise.
36091         (POLL_ERR): Likewise.
36092         (POLL_PRI): Likewise.
36093         (POLL_HUP): Likewise.
36094         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
36095         (ILL_ILLOPN): Likewise.
36096         (ILL_ILLADR): Likewise.
36097         (ILL_ILLTRP): Likewise.
36098         (ILL_PRVOPC): Likewise.
36099         (ILL_PRVREG): Likewise.
36100         (ILL_COPROC): Likewise.
36101         (ILL_BADSTK): Likewise.
36102         (FPE_INTDIV): Likewise.
36103         (FPE_INTOVF): Likewise.
36104         (FPE_FLTDIV): Likewise.
36105         (FPE_FLTOVF): Likewise.
36106         (FPE_FLTUND): Likewise.
36107         (FPE_FLTRES): Likewise.
36108         (FPE_FLTINV): Likewise.
36109         (FPE_FLTSUB): Likewise.
36110         (SEGV_MAPERR): Likewise.
36111         (SEGV_ACCERR): Likewise.
36112         (BUS_ADRALN): Likewise.
36113         (BUS_ADRERR): Likewise.
36114         (BUS_OBJERR): Likewise.
36115         (BUS_MCEERR_AR): Likewise.
36116         (BUS_MCEERR_AO): Likewise.
36117         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36118         (TRAP_TRACE): Likewise.
36119         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36120         __USE_XOPEN2K8].
36121         (CLD_KILLED): Likewise.
36122         (CLD_DUMPED): Likewise.
36123         (CLD_TRAPPED): Likewise.
36124         (CLD_STOPPED): Likewise.
36125         (CLD_CONTINUED): Likewise.
36126         (POLL_IN): Likewise.
36127         (POLL_OUT): Likewise.
36128         (POLL_MSG): Likewise.
36129         (POLL_ERR): Likewise.
36130         (POLL_PRI): Likewise.
36131         (POLL_HUP): Likewise.
36132         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
36133         (ILL_ILLOPN): Likewise.
36134         (ILL_ILLADR): Likewise.
36135         (ILL_ILLTRP): Likewise.
36136         (ILL_PRVOPC): Likewise.
36137         (ILL_PRVREG): Likewise.
36138         (ILL_COPROC): Likewise.
36139         (ILL_BADSTK): Likewise.
36140         (FPE_INTDIV): Likewise.
36141         (FPE_INTOVF): Likewise.
36142         (FPE_FLTDIV): Likewise.
36143         (FPE_FLTOVF): Likewise.
36144         (FPE_FLTUND): Likewise.
36145         (FPE_FLTRES): Likewise.
36146         (FPE_FLTINV): Likewise.
36147         (FPE_FLTSUB): Likewise.
36148         (SEGV_MAPERR): Likewise.
36149         (SEGV_ACCERR): Likewise.
36150         (BUS_ADRALN): Likewise.
36151         (BUS_ADRERR): Likewise.
36152         (BUS_OBJERR): Likewise.
36153         (BUS_MCEERR_AR): Likewise.
36154         (BUS_MCEERR_AO): Likewise.
36155         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36156         (TRAP_TRACE): Likewise.
36157         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36158         __USE_XOPEN2K8].
36159         (CLD_KILLED): Likewise.
36160         (CLD_DUMPED): Likewise.
36161         (CLD_TRAPPED): Likewise.
36162         (CLD_STOPPED): Likewise.
36163         (CLD_CONTINUED): Likewise.
36164         (POLL_IN): Likewise.
36165         (POLL_OUT): Likewise.
36166         (POLL_MSG): Likewise.
36167         (POLL_ERR): Likewise.
36168         (POLL_PRI): Likewise.
36169         (POLL_HUP): Likewise.
36170         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
36171         (ILL_ILLOPN): Likewise.
36172         (ILL_ILLADR): Likewise.
36173         (ILL_ILLTRP): Likewise.
36174         (ILL_PRVOPC): Likewise.
36175         (ILL_PRVREG): Likewise.
36176         (ILL_COPROC): Likewise.
36177         (ILL_BADSTK): Likewise.
36178         (ILL_DBLFLT): Likewise.
36179         (ILL_HARDWALL): Likewise.
36180         (FPE_INTDIV): Likewise.
36181         (FPE_INTOVF): Likewise.
36182         (FPE_FLTDIV): Likewise.
36183         (FPE_FLTOVF): Likewise.
36184         (FPE_FLTUND): Likewise.
36185         (FPE_FLTRES): Likewise.
36186         (FPE_FLTINV): Likewise.
36187         (FPE_FLTSUB): Likewise.
36188         (SEGV_MAPERR): Likewise.
36189         (SEGV_ACCERR): Likewise.
36190         (BUS_ADRALN): Likewise.
36191         (BUS_ADRERR): Likewise.
36192         (BUS_OBJERR): Likewise.
36193         (BUS_MCEERR_AR): Likewise.
36194         (BUS_MCEERR_AO): Likewise.
36195         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36196         (TRAP_TRACE): Likewise.
36197         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36198         __USE_XOPEN2K8].
36199         (CLD_KILLED): Likewise.
36200         (CLD_DUMPED): Likewise.
36201         (CLD_TRAPPED): Likewise.
36202         (CLD_STOPPED): Likewise.
36203         (CLD_CONTINUED): Likewise.
36204         (POLL_IN): Likewise.
36205         (POLL_OUT): Likewise.
36206         (POLL_MSG): Likewise.
36207         (POLL_ERR): Likewise.
36208         (POLL_PRI): Likewise.
36209         (POLL_HUP): Likewise.
36210         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
36211         (ILL_ILLOPN): Likewise.
36212         (ILL_ILLADR): Likewise.
36213         (ILL_ILLTRP): Likewise.
36214         (ILL_PRVOPC): Likewise.
36215         (ILL_PRVREG): Likewise.
36216         (ILL_COPROC): Likewise.
36217         (ILL_BADSTK): Likewise.
36218         (FPE_INTDIV): Likewise.
36219         (FPE_INTOVF): Likewise.
36220         (FPE_FLTDIV): Likewise.
36221         (FPE_FLTOVF): Likewise.
36222         (FPE_FLTUND): Likewise.
36223         (FPE_FLTRES): Likewise.
36224         (FPE_FLTINV): Likewise.
36225         (FPE_FLTSUB): Likewise.
36226         (SEGV_MAPERR): Likewise.
36227         (SEGV_ACCERR): Likewise.
36228         (BUS_ADRALN): Likewise.
36229         (BUS_ADRERR): Likewise.
36230         (BUS_OBJERR): Likewise.
36231         (BUS_MCEERR_AR): Likewise.
36232         (BUS_MCEERR_AO): Likewise.
36233         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36234         (TRAP_TRACE): Likewise.
36235         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36236         __USE_XOPEN2K8].
36237         (CLD_KILLED): Likewise.
36238         (CLD_DUMPED): Likewise.
36239         (CLD_TRAPPED): Likewise.
36240         (CLD_STOPPED): Likewise.
36241         (CLD_CONTINUED): Likewise.
36242         (POLL_IN): Likewise.
36243         (POLL_OUT): Likewise.
36244         (POLL_MSG): Likewise.
36245         (POLL_ERR): Likewise.
36246         (POLL_PRI): Likewise.
36247         (POLL_HUP): Likewise.
36248         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
36249         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36250
36251         [BZ #16670]
36252         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
36253         before #include of <time.h>.
36254         [!__USE_XOPEN2K] (__need_timespec): Likewise.
36255         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
36256         (test-xfail-UNIX98/sched.h/conform): Likewise.
36257
36258 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
36259
36260         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
36261         error absence of trapping exception support.
36262         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
36263
36264 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
36265
36266         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
36267         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
36268         * timezone/Makefile (testdata): Move definition above include of
36269         Rules.
36270         (test-zones): New variable.
36271         (tests-special): Add zone files.
36272         (build-testdata): Use $(evaluate-test).
36273
36274         * elf/Makefile (tests-special): Rename tests to end with .out.
36275         ($(objpfx)noload-mem): Likewise.
36276         ($(objpfx)tst-leaks1-mem): Likewise.
36277         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
36278         * iconv/Makefile (xtests-special): Change test-iconvconfig to
36279         $(objpfx)test-iconvconfig.out.
36280         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
36281         set -e inside subshell and redirect output to file.
36282         * iconvdata/Makefile (generated): Rename tests to end with .out.
36283         Correct type.
36284         (tests-special): Rename tests to end with .out.
36285         ($(objpfx)mtrace-tst-loading): Likewise.
36286         * intl/Makefile (generated): Likewise.
36287         (tests-special): Likewise.
36288         ($(objpfx)mtrace-tst-gettext): Likewise.
36289         * misc/Makefile (generated): Likewise.
36290         (tests-special): Likewise.
36291         ($(objpfx)tst-error1-mem): Likewise.
36292         * nptl/Makefile (tests-special): Likewise.
36293         ($(objpfx)tst-stack3-mem): Likewise.
36294         (generated): Likewise.
36295         * posix/Makefile (generated): Likewise.
36296         (tests-special): Likewise.
36297         (xtests-special): Likewise.
36298         ($(objpfx)tst-fnmatch-mem): Likewise.
36299         ($(objpfx)bug-regex2-mem): Likewise.
36300         ($(objpfx)bug-regex14-mem): Likewise.
36301         ($(objpfx)bug-regex21-mem): Likewise.
36302         ($(objpfx)bug-regex31-mem): Likewise.
36303         ($(objpfx)tst-vfork3-mem): Likewise.
36304         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36305         ($(objpfx)tst-pcre-mem): Likewise.
36306         ($(objpfx)tst-boost-mem): Likewise.
36307         ($(objpfx)bug-ga2-mem): Likewise.
36308         ($(objpfx)bug-glob2-mem): Likewise.
36309         * resolv/Makefile (generate): Likewise.
36310         (tests-special): Likewise.
36311         (xtests-special): Likewise.
36312         (generated): Likewise.
36313         ($(objpfx)mtrace-tst-leaks): Likewise.
36314         ($(objpfx)mtrace-tst-leaks2): Likewise.
36315
36316         * scripts/merge-test-results.sh: New file.
36317         * Makefile (tests-special-notdir): New variable.
36318         (tests): Run merge-test-results.sh.
36319         (xtests): Likewise.
36320         * Rules (tests-special-notdir): New variable.
36321         (xtests-special-notdir): Likewise.
36322         (tests): Run merge-test-results.sh
36323         (xtests): Likewise.
36324
36325         * Makeconfig (test-xfail-name): New variable.
36326         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
36327         compute variable name for expected failures.
36328         * conform/Makefile (conformtest-headers-data): New variable.
36329         (conformtest-standards): Likewise.
36330         (conformtest-headers-ISO): Likewise.
36331         (conformtest-headers-ISO99): Likewise.
36332         (conformtest-headers-ISO11): Likewise.
36333         (conformtest-headers-POSIX): Likewise.
36334         (conformtest-headers-XPG3): Likewise.
36335         (conformtest-headers-XPG4): Likewise.
36336         (conformtest-headers-UNIX98): Likewise.
36337         (conformtest-headers-XOPEN2K): Likewise.
36338         (conformtest-headers-POSIX2008): Likewise.
36339         (conformtest-headers-XOPEN2K8): Likewise.
36340         (conformtest-header-list-base): Likewise.
36341         (conformtest-header-list-tests): Likewise.
36342         (conformtest-header-base): Likewise.
36343         (conformtest-header-tests): Likewise.
36344         (tests-special): Add $(conformtest-header-list-tests).  If
36345         [$(fast-check) && !$(cross-compiling)], add
36346         $(conformtest-header-tests) instead of
36347         $(objpfx)run-conformtest.out.
36348         (generated): Add $(conformtest-header-list-base).  If
36349         [$(fast-check) && !$(cross-compiling)], add
36350         $(conformtest-header-base).  Remove previous setting.
36351         ($(conformtest-header-list-tests)): New target.
36352         (test-xfail-run-conformtest): Remove variable.
36353         ($(objpfx)run-conformtest.out): Remove target.
36354         (test-xfail-ISO11/complex.h/conform): New variable.
36355         (test-xfail-ISO11/stdalign.h/conform): Likewise.
36356         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
36357         (test-xfail-XPG3/varargs.h/conform): Likewise.
36358         (test-xfail-XPG4/varargs.h/conform): Likewise.
36359         (test-xfail-UNIX98/varargs.h/conform): Likewise.
36360         (test-xfail-XPG4/ndbm.h/conform): Likewise.
36361         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
36362         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
36363         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
36364         (test-xfail-XPG3/fcntl.h/conform): Likewise.
36365         (test-xfail-XPG3/ftw.h/conform): Likewise.
36366         (test-xfail-XPG3/grp.h/conform): Likewise.
36367         (test-xfail-XPG3/langinfo.h/conform): Likewise.
36368         (test-xfail-XPG3/limits.h/conform): Likewise.
36369         (test-xfail-XPG3/pwd.h/conform): Likewise.
36370         (test-xfail-XPG3/search.h/conform): Likewise.
36371         (test-xfail-XPG3/signal.h/conform): Likewise.
36372         (test-xfail-XPG3/stdio.h/conform): Likewise.
36373         (test-xfail-XPG3/stdlib.h/conform): Likewise.
36374         (test-xfail-XPG3/string.h/conform): Likewise.
36375         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
36376         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
36377         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
36378         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
36379         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
36380         (test-xfail-XPG3/sys/types.h/conform): Likewise.
36381         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
36382         (test-xfail-XPG3/termios.h/conform): Likewise.
36383         (test-xfail-XPG3/time.h/conform): Likewise.
36384         (test-xfail-XPG3/unistd.h/conform): Likewise.
36385         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
36386         (test-xfail-XPG4/fcntl.h/conform): Likewise.
36387         (test-xfail-XPG4/langinfo.h/conform): Likewise.
36388         (test-xfail-XPG4/netdb.h/conform): Likewise.
36389         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
36390         (test-xfail-XPG4/signal.h/conform): Likewise.
36391         (test-xfail-XPG4/stdio.h/conform): Likewise.
36392         (test-xfail-XPG4/stdlib.h/conform): Likewise.
36393         (test-xfail-XPG4/stropts.h/conform): Likewise.
36394         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
36395         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
36396         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
36397         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
36398         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
36399         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
36400         (test-xfail-XPG4/sys/time.h/conform): Likewise.
36401         (test-xfail-XPG4/sys/types.h/conform): Likewise.
36402         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
36403         (test-xfail-XPG4/termios.h/conform): Likewise.
36404         (test-xfail-XPG4/ucontext.h/conform): Likewise.
36405         (test-xfail-XPG4/unistd.h/conform): Likewise.
36406         (test-xfail-XPG4/utmpx.h/conform): Likewise.
36407         (test-xfail-POSIX/sched.h/conform): Likewise.
36408         (test-xfail-POSIX/signal.h/conform): Likewise.
36409         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36410         (test-xfail-POSIX/tar.h/conform): Likewise.
36411         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
36412         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
36413         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
36414         (test-xfail-UNIX98/netdb.h/conform): Likewise.
36415         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
36416         (test-xfail-UNIX98/sched.h/conform): Likewise.
36417         (test-xfail-UNIX98/signal.h/conform): Likewise.
36418         (test-xfail-UNIX98/stdio.h/conform): Likewise.
36419         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
36420         (test-xfail-UNIX98/stropts.h/conform): Likewise.
36421         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
36422         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
36423         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
36424         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
36425         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
36426         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
36427         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
36428         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
36429         (test-xfail-UNIX98/unistd.h/conform): Likewise.
36430         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
36431         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
36432         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
36433         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
36434         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
36435         (test-xfail-XOPEN2K/math.h/conform): Likewise.
36436         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
36437         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
36438         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
36439         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
36440         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
36441         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
36442         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
36443         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
36444         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
36445         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
36446         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
36447         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
36448         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
36449         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36450         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
36451         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
36452         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36453         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
36454         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
36455         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
36456         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
36457         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
36458         (test-xfail-POSIX2008/signal.h/conform): Likewise.
36459         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
36460         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
36461         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36462         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
36463         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
36464         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
36465         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
36466         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
36467         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
36468         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36469         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
36470         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
36471         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
36472         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
36473         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
36474         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
36475         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
36476         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
36477         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
36478         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36479         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
36480         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
36481         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
36482         (conformtest-cc-flags): Likewise.
36483         ($(conformtest-header-tests): New target.
36484         * conform/check-header-lists.sh: New file.
36485         * conform/run-conformtest.sh: Remove.
36486
36487         * conform/conformtest.pl: Allow ' and \ in values given for
36488         constants.
36489         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
36490         inclusion.
36491         [POSIX] (sys/types.h): Likewise.
36492         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
36493         inclusion.
36494         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
36495         inclusion.
36496         * conform/data/signal.h-data (SIGIO): Remove expectation.
36497         [XPG3] (SIGBUS): Do not expect.
36498         [POSIX || XPG3] (SIGPOLL): Likewise.
36499         [POSIX || XPG3] (SIGPROF): Likewise.
36500         [POSIX || XPG3] (SIGSYS): Likewise.
36501         [XPG3] (SIGTRAP): Likewise.
36502         [POSIX || XPG3] (SIGURG): Likewise.
36503         [POSIX || XPG3] (SIGVTALRM): Likewise.
36504         [POSIX || XPG3] (SIGXCPU): Likewise.
36505         [POSIX || XPG3] (SIGXFSZ): Likewise.
36506         [POSIX] (SA_SIGINFO): Expect.
36507         [XPG3] (siginfo_t): Do not expect type or contents.
36508         [POSIX] (si_pid): Do not expect element.
36509         [POSIX] (si_uid): Likewise.
36510         [POSIX] (si_addr): Likewise.
36511         [POSIX] (si_status): Likewise.
36512         [POSIX] (si_band): Likewise.
36513         [XPG4] (si_value): Likewise.
36514         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
36515         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
36516         [POSIX || XPG3] (ILL_ILLADR): Likewise.
36517         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
36518         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
36519         [POSIX || XPG3] (ILL_PRVREG): Likewise.
36520         [POSIX || XPG3] (ILL_COPROC): Likewise.
36521         [POSIX || XPG3] (ILL_BADSTK): Likewise.
36522         [POSIX || XPG3] (FPE_INTDIV): Likewise.
36523         [POSIX || XPG3] (FPE_INTOVF): Likewise.
36524         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
36525         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
36526         [POSIX || XPG3] (FPE_FLTUND): Likewise.
36527         [POSIX || XPG3] (FPE_FLTRES): Likewise.
36528         [POSIX || XPG3] (FPE_FLTINV): Likewise.
36529         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
36530         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
36531         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
36532         [POSIX || XPG3] (BUS_ADRALN): Likewise.
36533         [POSIX || XPG3] (BUS_ADRERR): Likewise.
36534         [POSIX || XPG3] (BUS_OBJERR): Likewise.
36535         [POSIX || XPG3] (CLD_EXITED): Likewise.
36536         [POSIX || XPG3] (CLD_KILLED): Likewise.
36537         [POSIX || XPG3] (CLD_DUMPED): Likewise.
36538         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
36539         [POSIX || XPG3] (CLD_STOPPED): Likewise.
36540         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
36541         [POSIX || XPG3] (POLL_IN): Likewise.
36542         [POSIX || XPG3] (POLL_OUT): Likewise.
36543         [POSIX || XPG3] (POLL_MSG): Likewise.
36544         [POSIX || XPG3] (POLL_ERR): Likewise.
36545         [POSIX || XPG3] (POLL_PRI): Likewise.
36546         [POSIX || XPG3] (POLL_HUP): Likewise.
36547         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
36548         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
36549         (SIG*): Do not allow.
36550         [XPG3] (si_*): Likewise.
36551         [XPG3] (SI_*): Likewise.
36552         [XPG3 || XPG4] (sigev_*): Likewise.
36553         [XPG3 || XPG4] (SIGEV_*): Likewise.
36554         [XPG3 || XPG4] (sival_*): Likewise.
36555         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
36556         [POSIX || XPG3] (BUS_*): Likewise.
36557         [POSIX || XPG3] (CLD_*): Likewise.
36558         [POSIX || XPG3] (FPE_*): Likewise.
36559         [POSIX || XPG3] (ILL_*): Likewise.
36560         [POSIX || XPG3] (POLL_*): Likewise.
36561         [POSIX || XPG3] (SEGV_*): Likewise.
36562         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
36563         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
36564         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
36565         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
36566         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
36567         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
36568         Specify type and value.
36569         (TVERSLEN): Likewise.
36570         (REGTYPE): Likewise.
36571         (AREGTYPE): Likewise.
36572         (LNKTYPE): Likewise.
36573         (SYMTYPE): Likewise.
36574         (CHRTYPE): Likewise.
36575         (BLKTYPE): Likewise.
36576         (DIRTYPE): Likewise.
36577         (FIFOTYPE): Likewise.
36578         (CONTTYPE): Likewise.
36579         (TSUID): Likewise.
36580         (TSGID): Likewise.
36581         (TSVTX): Likewise.
36582         (TUREAD): Likewise.
36583         (TUWRITE): Likewise.
36584         (TUEXEC): Likewise.
36585         (TGREAD): Likewise.
36586         (TGWRITE): Likewise.
36587         (TGEXEC): Likewise.
36588         (TOREAD): Likewise.
36589         (TOWRITE): Likewise.
36590         (TOEXEC): Likewise.
36591         [POSIX] (TSVTX): Expect constant.
36592
36593 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
36594
36595         * Makefile (tests): Change dependencies to ....
36596         (tests-special): ... additions to this variable.
36597         (tests): Depend on $(tests-special).
36598         * Makerules (check-abi-list): New variable.
36599         (check-abi): Depend on $(check-abi-list).
36600         [$(subdir) = elf] (tests-special): Add
36601         $(objpfx)check-abi-libc.out.
36602         [$(build-shared) = yes && subdir] (tests-special): Add
36603         $(check-abi-list).
36604         [$(build-shared) = yes && subdir] (tests): Do not depend on
36605         check-abi.
36606         * Rules (tests): Depend on $(tests-special).
36607         (xtests): Depend on $(xtests-special).
36608         * catgets/Makefile (tests): Change dependencies to ....
36609         (tests-special): ... additions to this variable.
36610         * conform/Makefile (tests): Change dependencies to ....
36611         (tests-special): ... additions to this variable.
36612         * elf/Makefile (tests): Change dependencies to ....
36613         (tests-special): ... additions to this variable.
36614         * grp/Makefile (tests): Change dependencies to ....
36615         (tests-special): ... additions to this variable.
36616         * iconv/Makefile (xtests): Change dependencies to ....
36617         (xtests-special): ... additions to this variable.
36618         * iconvdata/Makefile (tests): Change dependencies to ....
36619         (tests-special): ... additions to this variable.
36620         * intl/Makefile (tests): Change dependencies to ....
36621         (tests-special): ... additions to this variable.  Also add
36622         $(objpfx)tst-gettext.out.
36623         * io/Makefile (tests): Change dependencies to ....
36624         (tests-special): ... additions to this variable.
36625         * libio/Makefile (tests): Change dependencies to ....
36626         (tests-special): ... additions to this variable.
36627         * malloc/Makefile (tests): Change dependencies to ....
36628         (tests-special): ... additions to this variable.
36629         * misc/Makefile (tests): Change dependencies to ....
36630         (tests-special): ... additions to this variable.
36631         * nptl/Makefile (tests): Change dependencies to ....
36632         (tests-special): ... additions to this variable.
36633         * nptl_db/Makefile (tests): Change dependencies to ....
36634         (tests-special): ... additions to this variable.
36635         * posix/Makefile (tests): Change dependencies to ....
36636         (tests-special): ... additions to this variable.
36637         (xtests): Change dependencies to ....
36638         (xtests-special): ... additions to this variable.
36639         * resolv/Makefile (tests): Change dependencies to ....
36640         (tests-special): ... additions to this variable.
36641         (xtests): Change dependencies to ....
36642         (xtests-special): ... additions to this variable.
36643         * stdio-common/Makefile (tests): Change dependencies to ....
36644         (tests-special): ... additions to this variable.
36645         (do-tst-unbputc): Remove target.
36646         (do-tst-printf): Likewise.
36647         * stdlib/Makefile (tests): Change dependencies to ....
36648         (tests-special): ... additions to this variable.
36649         * string/Makefile (tests): Change dependencies to ....
36650         (tests-special): ... additions to this variable.
36651         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36652         (tests-special): ... additions to this variable.
36653
36654         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36655         whole file.
36656         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36657         whole file.
36658         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36659         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36660
36661         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36662         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36663         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36664         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36665         * conform/data/libgen.h-data [XPG3]: Likewise.
36666         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36667         * conform/data/ndbm.h-data [XPG3]: Likewise.
36668         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36669         * conform/data/netdb.h-data [XPG3]: Likewise.
36670         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36671         * conform/data/poll.h-data [XPG3]: Likewise.
36672         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36673         * conform/data/strings.h-data [XPG3]: Likewise.
36674         * conform/data/stropts.h-data [XPG3]: Likewise.
36675         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36676         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36677         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36678         Likewise.
36679         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36680         * conform/data/sys/time.h-data [XPG3]: Likewise.
36681         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36682         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36683         * conform/data/sys/un.h-data [XPG3]: Likewise.
36684         * conform/data/syslog.h-data [XPG3]: Likewise.
36685         * conform/data/ucontext.h-data [XPG3]: Likewise.
36686         * conform/data/utmpx.h-data [XPG3]: Likewise.
36687         * conform/data/varargs.h-data [UNIX98]: Enable file.
36688
36689         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36690
36691         * math/libm-test.inc (struct test_f_f_data): Move expected results
36692         into structure for each rounding mode.
36693         (struct test_ff_f_data): Likewise.
36694         (struct test_ff_f_data_nexttoward): Likewise.
36695         (struct test_fi_f_data): Likewise.
36696         (struct test_fl_f_data): Likewise.
36697         (struct test_if_f_data): Likewise.
36698         (struct test_fff_f_data): Likewise.
36699         (struct test_c_f_data): Likewise.
36700         (struct test_f_f1_data): Likewise.
36701         (struct test_fF_f1_data): Likewise.
36702         (struct test_ffI_f1_data): Likewise.
36703         (struct test_c_c_data): Likewise.
36704         (struct test_cc_c_data): Likewise.
36705         (struct test_f_i_data): Likewise.
36706         (struct test_ff_i_data): Likewise.
36707         (struct test_f_l_data): Likewise.
36708         (struct test_f_L_data): Likewise.
36709         (struct test_fFF_11_data): Likewise.
36710         (RM_): New macro.
36711         (RM_FE_DOWNWARD): Likewise.
36712         (RM_FE_TONEAREST): Likewise.
36713         (RM_FE_TOWARDZERO): Likewise.
36714         (RM_FE_UPWARD): Likewise.
36715         (RUN_TEST_LOOP_f_f): Update references to expected results.
36716         (RUN_TEST_LOOP_2_f): Likewise.
36717         (RUN_TEST_LOOP_fff_f): Likewise.
36718         (RUN_TEST_LOOP_c_f): Likewise.
36719         (RUN_TEST_LOOP_f_f1): Likewise.
36720         (RUN_TEST_LOOP_fF_f1): Likewise.
36721         (RUN_TEST_LOOP_fI_f1): Likewise.
36722         (RUN_TEST_LOOP_ffI_f1): Likewise.
36723         (RUN_TEST_LOOP_c_c): Likewise.
36724         (RUN_TEST_LOOP_cc_c): Likewise.
36725         (RUN_TEST_LOOP_f_i): Likewise.
36726         (RUN_TEST_LOOP_f_i_tg): Likewise.
36727         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36728         (RUN_TEST_LOOP_f_b): Likewise.
36729         (RUN_TEST_LOOP_f_b_tg): Likewise.
36730         (RUN_TEST_LOOP_f_l): Likewise.
36731         (RUN_TEST_LOOP_f_L): Likewise.
36732         (RUN_TEST_LOOP_fFF_11): Likewise.
36733         * math/gen-libm-test.pl (parse_args): Output four copies of
36734         expected results for each test.
36735
36736         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36737         (__ASSUME_UTIMES): Remove.
36738         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36739         (__ASSUME_UTIMES): Likewise.
36740
36741         * math/gen-auto-libm-tests.c: Update comment on output format.
36742         (output_for_one_input_case): Generate before-rounding and
36743         after-rounding information as conditions on output flags not
36744         floating-point format.
36745         * math/auto-libm-test-out: Regenerated.
36746         * math/gen-libm-test.pl (cond_value): New function.
36747         (or_cond_value): Use cond_value.
36748         (generate_testfile): Handle conditional exceptions.
36749
36750 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36751
36752         * math/libm-test.inc (max_valid_error): New variable.
36753         (init_max_error): Take new argument specifying whether function
36754         results are exactly determined.  Set max_valid_error and bound
36755         other variables for errors based on this argument.
36756         (set_max_error): Do not record results above max_valid_error.
36757         (check_float_internal): Only accept errors of up to 0.5ulps if
36758         also at most max_valid_error.
36759         (START): Take new argument EXACT and pass it to init_max_error.
36760         (acos_test): Update call to START.
36761         (acos_test_tonearest): Likewise.
36762         (acos_test_towardzero): Likewise.
36763         (acos_test_downward): Likewise.
36764         (acos_test_upward): Likewise.
36765         (acosh_test): Likewise.
36766         (asin_test): Likewise.
36767         (asin_test_tonearest): Likewise.
36768         (asin_test_towardzero): Likewise.
36769         (asin_test_downward): Likewise.
36770         (asin_test_upward): Likewise.
36771         (asinh_test): Likewise.
36772         (atan_test): Likewise.
36773         (atanh_test): Likewise.
36774         (atan2_test): Likewise.
36775         (cabs_test): Likewise.
36776         (cacos_test): Likewise.
36777         (cacosh_test): Likewise.
36778         (carg_test): Likewise.
36779         (casin_test): Likewise.
36780         (casinh_test): Likewise.
36781         (catan_test): Likewise.
36782         (catanh_test): Likewise.
36783         (cbrt_test): Likewise.
36784         (ccos_test): Likewise.
36785         (ccosh_test): Likewise.
36786         (ceil_test): Likewise.
36787         (cexp_test): Likewise.
36788         (cimag_test): Likewise.
36789         (clog_test): Likewise.
36790         (clog10_test): Likewise.
36791         (conj_test): Likewise.
36792         (copysign_test): Likewise.
36793         (cos_test): Likewise.
36794         (cos_test_tonearest): Likewise.
36795         (cos_test_towardzero): Likewise.
36796         (cos_test_downward): Likewise.
36797         (cos_test_upward): Likewise.
36798         (cosh_test): Likewise.
36799         (cosh_test_tonearest): Likewise.
36800         (cosh_test_towardzero): Likewise.
36801         (cosh_test_downward): Likewise.
36802         (cosh_test_upward): Likewise.
36803         (cpow_test): Likewise.
36804         (cproj_test): Likewise.
36805         (creal_test): Likewise.
36806         (csin_test): Likewise.
36807         (csinh_test): Likewise.
36808         (csqrt_test): Likewise.
36809         (ctan_test): Likewise.
36810         (ctan_test_tonearest): Likewise.
36811         (ctan_test_towardzero): Likewise.
36812         (ctan_test_downward): Likewise.
36813         (ctan_test_upward): Likewise.
36814         (ctanh_test): Likewise.
36815         (ctanh_test_tonearest): Likewise.
36816         (ctanh_test_towardzero): Likewise.
36817         (ctanh_test_downward): Likewise.
36818         (ctanh_test_upward): Likewise.
36819         (erf_test): Likewise.
36820         (erfc_test): Likewise.
36821         (exp_test): Likewise.
36822         (exp_test_tonearest): Likewise.
36823         (exp_test_towardzero): Likewise.
36824         (exp_test_downward): Likewise.
36825         (exp_test_upward): Likewise.
36826         (exp10_test): Likewise.
36827         (exp10_test_tonearest): Likewise.
36828         (exp10_test_towardzero): Likewise.
36829         (exp10_test_downward): Likewise.
36830         (exp10_test_upward): Likewise.
36831         (pow10_test): Likewise.
36832         (exp2_test): Likewise.
36833         (expm1_test): Likewise.
36834         (expm1_test_tonearest): Likewise.
36835         (expm1_test_towardzero): Likewise.
36836         (expm1_test_downward): Likewise.
36837         (expm1_test_upward): Likewise.
36838         (fabs_test): Likewise.
36839         (fdim_test): Likewise.
36840         (floor_test): Likewise.
36841         (fma_test): Likewise.
36842         (fma_test_towardzero): Likewise.
36843         (fma_test_downward): Likewise.
36844         (fma_test_upward): Likewise.
36845         (fmax_test): Likewise.
36846         (fmin_test): Likewise.
36847         (fmod_test): Likewise.
36848         (fpclassify_test): Likewise.
36849         (frexp_test): Likewise.
36850         (hypot_test): Likewise.
36851         (ilogb_test): Likewise.
36852         (isfinite_test): Likewise.
36853         (finite_test): Likewise.
36854         (isgreater_test): Likewise.
36855         (isgreaterequal_test): Likewise.
36856         (isinf_test): Likewise.
36857         (isless_test): Likewise.
36858         (islessequal_test): Likewise.
36859         (islessgreater_test): Likewise.
36860         (isnan_test): Likewise.
36861         (isnormal_test): Likewise.
36862         (issignaling_test): Likewise.
36863         (isunordered_test): Likewise.
36864         (j0_test): Likewise.
36865         (j1_test): Likewise.
36866         (jn_test): Likewise.
36867         (ldexp_test): Likewise.
36868         (lgamma_test): Likewise.
36869         (gamma_test): Likewise.
36870         (lrint_test): Likewise.
36871         (lrint_test_tonearest): Likewise.
36872         (lrint_test_towardzero): Likewise.
36873         (lrint_test_downward): Likewise.
36874         (lrint_test_upward): Likewise.
36875         (llrint_test): Likewise.
36876         (llrint_test_tonearest): Likewise.
36877         (llrint_test_towardzero): Likewise.
36878         (llrint_test_downward): Likewise.
36879         (llrint_test_upward): Likewise.
36880         (log_test): Likewise.
36881         (log10_test): Likewise.
36882         (log1p_test): Likewise.
36883         (log2_test): Likewise.
36884         (logb_test): Likewise.
36885         (logb_test_downward): Likewise.
36886         (lround_test): Likewise.
36887         (llround_test): Likewise.
36888         (modf_test): Likewise.
36889         (nearbyint_test): Likewise.
36890         (nextafter_test): Likewise.
36891         (nexttoward_test): Likewise.
36892         (pow_test): Likewise.
36893         (pow_test_tonearest): Likewise.
36894         (pow_test_towardzero): Likewise.
36895         (pow_test_downward): Likewise.
36896         (pow_test_upward): Likewise.
36897         (remainder_test): Likewise.
36898         (drem_test): Likewise.
36899         (remainder_test_tonearest): Likewise.
36900         (drem_test_tonearest): Likewise.
36901         (remainder_test_towardzero): Likewise.
36902         (drem_test_towardzero): Likewise.
36903         (remainder_test_downward): Likewise.
36904         (drem_test_downward): Likewise.
36905         (remainder_test_upward): Likewise.
36906         (drem_test_upward): Likewise.
36907         (remquo_test): Likewise.
36908         (rint_test): Likewise.
36909         (rint_test_tonearest): Likewise.
36910         (rint_test_towardzero): Likewise.
36911         (rint_test_downward): Likewise.
36912         (rint_test_upward): Likewise.
36913         (round_test): Likewise.
36914         (scalb_test): Likewise.
36915         (scalbn_test): Likewise.
36916         (scalbln_test): Likewise.
36917         (signbit_test): Likewise.
36918         (sin_test): Likewise.
36919         (sin_test_tonearest): Likewise.
36920         (sin_test_towardzero): Likewise.
36921         (sin_test_downward): Likewise.
36922         (sin_test_upward): Likewise.
36923         (sincos_test): Likewise.
36924         (sinh_test): Likewise.
36925         (sinh_test_tonearest): Likewise.
36926         (sinh_test_towardzero): Likewise.
36927         (sinh_test_downward): Likewise.
36928         (sinh_test_upward): Likewise.
36929         (sqrt_test): Likewise.
36930         (sqrt_test_tonearest): Likewise.
36931         (sqrt_test_towardzero): Likewise.
36932         (sqrt_test_downward): Likewise.
36933         (sqrt_test_upward): Likewise.
36934         (tan_test): Likewise.
36935         (tan_test_tonearest): Likewise.
36936         (tan_test_towardzero): Likewise.
36937         (tan_test_downward): Likewise.
36938         (tan_test_upward): Likewise.
36939         (tanh_test): Likewise.
36940         (tgamma_test): Likewise.
36941         (trunc_test): Likewise.
36942         (y0_test): Likewise.
36943         (y1_test): Likewise.
36944         (yn_test): Likewise.
36945         (significand_test): Likewise.
36946
36947         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36948         individual tests in comment.
36949         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36950         (prev_max_error): New variable.
36951         (prev_real_max_error): Likewise.
36952         (prev_imag_max_error): Likewise.
36953         (compare_ulp_data): Don't refer to test names in comment.
36954         (find_test_ulps): Remove function.
36955         (find_function_ulps): Likewise.
36956         (find_complex_function_ulps): Likewise.
36957         (init_max_error): Take function name as argument.  Look up ulps
36958         for that function.
36959         (print_ulps): Remove function.
36960         (print_max_error): Use prev_max_error instead of calling
36961         find_function_ulps.
36962         (print_complex_max_error): Use prev_real_max_error and
36963         prev_imag_max_error instead of calling find_complex_function_ulps.
36964         (check_float_internal): Take max_ulp parameter instead of calling
36965         find_test_ulps.  Don't call print_ulps.
36966         (check_float): Update call to check_float_internal.
36967         (check_complex): Update calls to check_float_internal.
36968         (START): Pass argument to init_max_error.
36969         * math/gen-libm-test.pl (%results): Don't include "kind"
36970         information.
36971         (parse_ulps): Don't handle ulps of individual tests.
36972         (print_ulps_file): Likewise.
36973         (output_ulps): Likewise.
36974         * math/README.libm-test: Update.
36975         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36976         individual tests.
36977         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36978         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36979         * sysdeps/arm/libm-test-ulps: Likewise.
36980         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36981         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36982         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36983         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36984         * sysdeps/microblaze/libm-test-ulps: Likewise.
36985         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36986         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36987         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36988         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36989         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36990         * sysdeps/sh/libm-test-ulps: Likewise.
36991         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36992         * sysdeps/tile/libm-test-ulps: Likewise.
36993         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36994
36995 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36996
36997         * math/libm-test.inc (print_complex_max_error): Check separately
36998         whether real and imaginary errors are within allowed range and
36999         pass 0 to print_complex_function_ulps instead of value within
37000         allowed range.
37001
37002 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
37003
37004         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
37005         formatting.
37006         (get_handles_fopen): Likewise.
37007         (do_write_test): Likewise.
37008
37009         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
37010
37011         * libio/fileops.c (do_ftell): Use cached offset when
37012         available.
37013         * libio/iofwide.c (do_ftell_wide): Likewise.
37014         * libio/iofdopen.c (_IO_new_fdopen): Don't use
37015         _IO_file_attach.
37016         * libio/wfileops.c (_IO_fwide): Don't cache offset.
37017
37018         [BZ #16532]
37019         * libio/libioP.h (get_file_offset): New function.
37020         * libio/fileops.c (get_file_offset): Likewise.
37021         (do_ftell): Likewise.
37022         (_IO_new_file_seekoff): Split out ftell logic.
37023         * libio/wfileops.c (do_ftell_wide): Likewise.
37024         (_IO_wfile_seekoff): Split out ftell logic.
37025         * libio/tst-ftell-active-handler.c: New test case.
37026         * libio/Makefile (tests): Add it.
37027
37028 2014-03-03  Roland McGrath  <roland@hack.frob.com>
37029
37030         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
37031         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
37032
37033 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
37034
37035         [BZ #16639]
37036         * nscd/connections.c (nscd_init): Call do_exit.
37037         (start_threads): Call do_exit and notify_parent.
37038         (begin_drop_privileges): Call do_exit.
37039         (finish_drop_privileges): Likewise.
37040         * nscd/selinux.c (preserve_capabilities): Likewise.
37041         (install_real_capabilities): Likewise.
37042         (nscd_selinux_enabled): Likewise.
37043         (avc_create_thread): Likewise.
37044         (avc_alloc_lock): Likewise.
37045         (nscd_avc_init): Likewise.
37046         * nscd/nscd.c (parent_fd): New static variable.
37047         (main): Create a pipe between parent and child processes.
37048         Skip closing parent_fd.
37049         (monitor_child): New function.
37050         (do_exit): Likewise.
37051         (notify_parent): Likewise.
37052         * nscd/nscd.h (notify_parent): Likewise.
37053         (do_exit): Likewise.
37054
37055 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
37056
37057         * malloc/malloc.c (__libc_calloc): Revert last change.
37058
37059 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37060
37061         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37062
37063 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37064
37065         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
37066         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
37067         implementation.
37068         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
37069         (__libc_ifunc_impl_list): Likewise.
37070         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
37071         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
37072         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
37073         * string/strrchr.c: Define STRRCHR.
37074
37075 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
37076
37077         * benchtest/bench-strtok.c (simple_strtok): Delete.
37078         (strtok_string): Use as benchmark.
37079         * string/strtok (STRTOK): New macro.
37080
37081 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
37082
37083         * manual/threads.texi: Add header and standard comments to all
37084         functions.
37085
37086         * elf/dl-lookup.c (check_match): New function.
37087         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
37088         (do_lookup_x): Remove nested function check_match. Use non-nested
37089         function check_match.
37090
37091 2014-02-28  Roland McGrath  <roland@hack.frob.com>
37092
37093         * csu/Makefile (generated, before-compile): Use += rather than =.
37094         * catgets/Makefile (generated, generated-dirs): Likewise.
37095         * debug/Makefile (generated): Likewise.
37096         * dlfcn/Makefile (generated): Likewise.
37097         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
37098         * iconvdata/Makefile (before-compile, generated): Likewise.
37099         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
37100         * libio/Makefile (generated): Likewise.
37101         * malloc/Makefile (generated): Likewise.
37102         * manual/Makefile (generated, generated-dirs): Likewise.
37103         * misc/Makefile (generated): Likewise.
37104         * posix/Makefile (generated): Likewise.
37105         * resolv/Makefile (generated): Likewise.
37106         * sunrpc/Makefile (generated, generated-dirs): Likewise.
37107         * timezone/Makefile (generated, generated-dirs): Likewise.
37108
37109         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
37110
37111 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37112
37113         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
37114         power8 implementation.
37115         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
37116         file: POWER8 llround ifunc implementation.
37117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
37118         (__lllround): Add POWER8 implementation.
37119         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
37120         POWER8 llround implementation.
37121
37122         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
37123         power8 implementation.
37124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
37125         file: POWER8 llrint ifunc implementation.
37126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
37127         Add POWER8 implementation.
37128         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
37129         POWER8 llrint implementation.
37130
37131         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
37132         power8 implementation.
37133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
37134         file: POWER8 finite ifunc implementation.
37135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
37136         Add POWER8 implementation.
37137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
37138         Likewise.
37139         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
37140         POWER8 finite implementation.
37141         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
37142
37143         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
37144         power8 implementation.
37145         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
37146         file: POWER8 isinf ifunc implementation.
37147         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
37148         POWER8 implementation.
37149         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
37150         Likewise.
37151         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
37152         isinf implementation.
37153         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
37154
37155         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
37156         (INIT_ARCH): Add hwcap2 initialization.
37157         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
37158         power8 implementation.
37159         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
37160         file: POWER8 isnan ifunc implementation.
37161         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
37162         POWER8 implementation.
37163         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
37164         Likewise.
37165         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
37166         isnan implementation.
37167         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
37168
37169 2014-02-27  Joey Ye  <joey.ye@arm.com>
37170
37171         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
37172         (_FP_NANFRAC_Q): Set to zero.
37173
37174 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37175
37176         [BZ #16623]
37177         * math/auto-libm-test-in: New test inputs.
37178         * math/auto-libm-test-out: Regenerate.
37179         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
37180         and DA.
37181         (__cos): Likewise.
37182         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
37183
37184 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
37185
37186         * scripts/evaluate-test.sh: Take new argument indicating whether
37187         failure is expected.
37188         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
37189         indicating whether failure is expected.
37190         * conform/Makefile (test-xfail-run-conformtest): New variable.
37191         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
37192         level.
37193         * posix/Makefile (test-xfail-annexc): New variable.
37194         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
37195
37196 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
37197
37198         * argp/Makefile: Include Makeconfig immediately after defining
37199         subdir.
37200         * assert/Makefile: Likewise.
37201         * benchtests/Makefile: Likewise.
37202         * catgets/Makefile: Likewise.
37203         * conform/Makefile: Likewise.
37204         * crypt/Makefile: Likewise.
37205         * csu/Makefile: Likewise.
37206         (all): Remove target.
37207         * ctype/Makefile: Include Makeconfig immediately after defining
37208         subdir.
37209         * debug/Makefile: Likewise.
37210         * dirent/Makefile: Likewise.
37211         * dlfcn/Makefile: Likewise.
37212         * gmon/Makefile: Likewise.
37213         * gnulib/Makefile: Likewise.
37214         * grp/Makefile: Likewise.
37215         * gshadow/Makefile: Likewise.
37216         * hesiod/Makefile: Likewise.
37217         * hurd/Makefile: Likewise.
37218         (all): Remove target.
37219         * iconvdata/Makefile: Include Makeconfig immediately after
37220         defining subdir.
37221         * inet/Makefile: Likewise.
37222         * intl/Makefile: Likewise.
37223         * io/Makefile: Likewise.
37224         * libio/Makefile: Likewise.
37225         (all): Remove target.
37226         * locale/Makefile: Include Makeconfig immediately after defining
37227         subdir.
37228         * login/Makefile: Likewise.
37229         * mach/Makefile: Likewise.
37230         (all): Remove target.
37231         * malloc/Makefile: Include Makeconfig immediately after defining
37232         subdir.
37233         (all): Remove target.
37234         * manual/Makefile: Include Makeconfig immediately after defining
37235         subdir.
37236         * math/Makefile: Likewise.
37237         * misc/Makefile: Likewise.
37238         * nis/Makefile: Likewise.
37239         * nss/Makefile: Likewise.
37240         * po/Makefile: Likewise.
37241         (all): Remove target.
37242         * posix/Makefile: Include Makeconfig immediately after defining
37243         subdir.
37244         * pwd/Makefile: Likewise.
37245         * resolv/Makefile: Likewise.
37246         * resource/Makefile: Likewise.
37247         * rt/Makefile: Likewise.
37248         * setjmp/Makefile: Likewise.
37249         * shadow/Makefile: Likewise.
37250         * signal/Makefile: Likewise.
37251         * socket/Makefile: Likewise.
37252         * soft-fp/Makefile: Likewise.
37253         * stdio-common/Makefile: Likewise.
37254         * stdlib/Makefile: Likewise.
37255         * streams/Makefile: Likewise.
37256         * string/Makefile: Likewise.
37257         * sunrpc/Makefile: Likewise.
37258         (all): Remove target.
37259         * sysvipc/Makefile: Include Makeconfig immediately after defining
37260         subdir.
37261         * termios/Makefile: Likewise.
37262         * time/Makefile: Likewise.
37263         * timezone/Makefile: Likewise.
37264         (all): Remove target.
37265         * wcsmbs/Makefile: Include Makeconfig immediately after defining
37266         subdir.
37267         * wctype/Makefile: Likewise.
37268
37269 2014-02-26  Steve Ellcey  <sellcey@mips.com>
37270
37271         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
37272         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
37273         (libc_feholdexcept_setround_mips): Ditto.
37274         (libc_feholdsetround): New.
37275         (libc_feholdsetroundf): New.
37276         (libc_feholdsetroundl): New.
37277         (libc_feupdateenv_test_mips): New.
37278         (libc_feupdateenv_test): New.
37279         (libc_feupdateenv_testf): New.
37280         (libc_feupdateenv_testl): New.
37281         (libc_feresetround): New.
37282         (libc_feresetroundf): New.
37283         (libc_feresetroundl): New.
37284         (libc_fetestexcept_mips): New.
37285         (libc_fetestexcept): New.
37286         (libc_fetestexceptf): New.
37287         (libc_fetestexceptl): New.
37288         (HAVE_RM_CTX): New.
37289         (libc_feholdexcept_setround_mips_ctx): New.
37290         (libc_feholdexcept_setround_ctx): New.
37291         (libc_feholdexcept_setroundf_ctx): New.
37292         (libc_feholdexcept_setroundl_ctx): New.
37293         (libc_fesetenv_mips_ctx): New.
37294         (libc_fesetenv_ctx): New.
37295         (libc_fesetenv_ctxf): New.
37296         (libc_fesetenv_ctxl): New.
37297         (libc_feupdateenv_mips_ctx): New.
37298         (libc_feupdateenv_ctx): New.
37299         (libc_feupdateenvf_ctx): New.
37300         (libc_feupdateenvl_ctx): New.
37301         (libc_feholdsetround_mips_ctx): New.
37302         (libc_feholdsetround_ctx): New.
37303         (libc_feholdsetroundf_ctx): New.
37304         (libc_feholdsetroundl_ctx): New.
37305         (libc_feresetround_mips_ctx): New.
37306         (libc_feresetround_ctx): New.
37307         (libc_feresetroundf_ctx): New.
37308         (libc_feresetroundl_ctx): New.
37309
37310 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
37311
37312         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
37313
37314         * manual/ipc.texi: New file.
37315         * manual/Makefile (chapters): Add ipc.
37316         * manual/job.texi: Add "Inter-Process Communication" to next.
37317         * manual/process.texi: Add "Inter-Process Communication" to prev.
37318
37319 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37320
37321         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37322
37323 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
37324
37325         * malloc/malloc.c (__libc_calloc): Simplify implementation.
37326
37327         * manual/arith.texi: Fix spaces after sentences.
37328         * manual/charset.texi: Likewise.
37329         * manual/errno.texi: Likewise.
37330         * manual/install.texi: Likewise.
37331         * manual/llio.texi: Likewise.
37332         * manual/locale.texi: Likewise.
37333         * manual/maint.texi: Likewise.
37334         * manual/math.texi: Likewise.
37335         * manual/memory.texi: Likewise.
37336         * manual/message.texi: Likewise.
37337         * manual/probes.texi: Likewise.
37338         * manual/resource.texi: Likewise.
37339         * manual/signal.texi: Likewise.
37340         * manual/socket.texi: Likewise.
37341         * manual/stdio.texi: Likewise.
37342         * manual/string.texi: Likewise.
37343         * manual/time.texi: Likewise.
37344         * manual/users.texi: Likewise.
37345
37346 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
37347
37348         [BZ #16632]
37349         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
37350         _DEFAULT_SOURCE is defined.
37351
37352 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
37353             Carlos O'Donell  <carlos@redhat.com>
37354
37355         [BZ #16613]
37356         * elf/dl-tls.c (_dl_count_modids): New function.
37357         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
37358         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
37359         audit library and increment generation counter.
37360         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
37361         * elf/tst-audit9.c: New file.
37362         * elf/tst-auditmod9a.c: New file.
37363         * elf/tst-auditmod9b.c: New file.
37364         * elf/Makefile: Add rules to build and run tst-audit9.
37365
37366 2014-02-25  Florian Weimer  <fweimer@redhat.com>
37367
37368         [BZ #15347]
37369         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
37370
37371 2014-02-25  Will Newton  <will.newton@linaro.org>
37372
37373         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
37374         (__longjmp): Restore sp and lr before restoring callee
37375         saved registers.  Add longjmp and longjmp_target
37376         SystemTap probe point.
37377         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
37378         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
37379         Define to zero to match jmpbuf layout.
37380         * sysdeps/arm/setjmp.S: Include stap-probe.h.
37381         (__sigsetjmp): Save sp and lr before saving callee
37382         saved registers.  Add setjmp SystemTap probe point.
37383
37384 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
37385
37386         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37387
37388 2014-02-24  Andreas Schwab  <schwab@suse.de>
37389
37390         [BZ #15804]
37391         * elf/pldd.c (wait_for_ptrace_stop): New function.
37392         (main): Call it after attaching.
37393
37394 2014-02-22  Roland McGrath  <roland@hack.frob.com>
37395
37396         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
37397         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
37398         Versions files is now verboten.
37399         * hurd/Versions (libc: GLIBC_2.0):
37400         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
37401         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
37402         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
37403         * mach/Versions: Likewise.
37404
37405         * csu/Versions: Remove unused %include.
37406         * resolv/Versions: Likewise.
37407
37408 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
37409
37410         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
37411         ($(objpfx)check-local-headers.out): Likewise.
37412         ($(objpfx)begin-end-check.out): Likewise.
37413         * Makerules (check-abi-%.out): Likewise.
37414         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
37415         ($(objpfx)test2.cat): Likewise.
37416         ($(objpfx)de/libc.cat): Likewise.
37417         ($(objpfx)test-gencat.out): Likewise.
37418         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
37419         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
37420         ($(objpfx)noload-mem): Likewise.
37421         ($(objpfx)tst-pathopt.out): Likewise.
37422         ($(objpfx)tst-rtld-load-self.out): Likewise.
37423         ($(objpfx)tst-array1-cmp.out): Likewise.
37424         ($(objpfx)tst-array1-static-cmp.out): Likewise.
37425         ($(objpfx)tst-array2-cmp.out): Likewise.
37426         ($(objpfx)tst-array3-cmp.out): Likewise.
37427         ($(objpfx)tst-array4-cmp.out): Likewise.
37428         ($(objpfx)tst-array5-cmp.out): Likewise.
37429         ($(objpfx)tst-array5-static-cmp.out): Likewise.
37430         ($(objpfx)check-textrel.out): Likewise.
37431         ($(objpfx)check-execstack.out): Likewise.
37432         ($(objpfx)check-localplt.out): Likewise.
37433         ($(objpfx)order2-cmp.out): Likewise.
37434         ($(objpfx)tst-leaks1-mem): Likewise.
37435         ($(objpfx)tst-leaks1-static-mem): Likewise.
37436         ($(objpfx)tst-initorder-cmp.out): Likewise.
37437         ($(objpfx)tst-initorder2-cmp.out): Likewise.
37438         ($(objpfx)tst-unused-dep.out): Likewise.
37439         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
37440         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37441         * iconv/Makefile (test-iconvconfig): Likewise.
37442         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
37443         ($(objpfx)iconv-test.out): Likewise.
37444         ($(objpfx)tst-tables.out): Likewise.
37445         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
37446         ($(objpfx)tst-gettext.out): Likewise.
37447         ($(objpfx)tst-translit.out): Likewise.
37448         ($(objpfx)tst-gettext2.out): Likewise.
37449         ($(objpfx)tst-gettext4.out): Likewise.
37450         ($(objpfx)tst-gettext6.out): Likewise.
37451         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
37452         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37453         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
37454         ($(objpfx)tst-fopenloc-mem.out): Likewise.
37455         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37456         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
37457         * posix/Makefile ($(objpfx)globtest.out): Likewise.
37458         ($(objpfx)wordexp-tst.out): Likewise.
37459         ($(objpfx)annexc.out): Likewise.
37460         ($(objpfx)tst-fnmatch-mem): Likewise.
37461         ($(objpfx)bug-regex2-mem): Likewise.
37462         ($(objpfx)bug-regex14-mem): Likewise.
37463         ($(objpfx)bug-regex21-mem): Likewise.
37464         ($(objpfx)bug-regex31-mem): Likewise.
37465         ($(objpfx)tst-vfork3-mem): Likewise.
37466         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
37467         ($(objpfx)tst-pcre-mem): Likewise.
37468         ($(objpfx)tst-boost-mem): Likewise.
37469         ($(objpfx)tst-getconf.out): Likewise.
37470         ($(objpfx)bug-ga2-mem): Likewise.
37471         ($(objpfx)bug-glob2-mem): Likewise.
37472         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
37473         ($(objpfx)mtrace-tst-leaks2): Likewise.
37474         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
37475         ($(objpfx)tst-printf.out): Likewise.
37476         ($(objpfx)tst-setvbuf1.out): Likewise.
37477         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
37478         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
37479         ($(objpfx)tst-fmtmsg.out): Likewise.
37480         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
37481         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
37482
37483         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
37484         * bits/sigaction.h [__USE_MISC]: Likewise.
37485         * bits/waitstatus.h: Update #endif comments.
37486         * ctype/ctype.h: Likewise.
37487         * dirent/dirent.h: Likewise.
37488         [__USE_MISC]: Remove redundant conditionals.
37489         * grp/grp.h: Update #endif comments.
37490         [__USE_GNU]: Remove redundant conditionals.
37491         [__USE_MISC]: Likewise.
37492         * inet/netinet/in.h [__USE_GNU]: Likewise.
37493         * io/sys/stat.h [__USE_MISC]: Likewise.
37494         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
37495         * libio/bits/stdio.h: Update #endif comments.
37496         [__USE_MISC]: Remove redundant conditionals.
37497         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
37498         * libio/stdio.h: Update #endif comments.
37499         [__USE_MISC]: Remove redundant conditionals.
37500         * math/bits/math-finite.h [__USE_MISC]: Likewise.
37501         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
37502         * math/math.h: Update #else and #endif comments.
37503         [__USE_MISC]: Remove redundant conditionals.
37504         * misc/sys/uio.h: Update #endif comments.
37505         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
37506         * posix/glob.h [__USE_MISC]: Likewise.
37507         * posix/sys/types.h: Update #endif comments.
37508         [__USE_MISC]: Remove redundant conditionals.
37509         * posix/sys/wait.h: Update #endif comments.
37510         [__USE_MISC]: Remove redundant conditionals.
37511         * posix/unistd.h: Update #endif comments.
37512         [__USE_MISC]: Remove redundant conditionals.
37513         * pwd/pwd.h [__USE_GNU]: Likewise.
37514         [__USE_MISC]: Likewise.
37515         * resolv/netdb.h [__USE_GNU]: Likewise.
37516         * signal/signal.h: Update #endif comments.
37517         [__USE_MISC]: Remove redundant conditionals.
37518         * stdlib/stdlib.h: Update #else and #endif comments.
37519         [__USE_MISC]: Remove redundant conditionals.
37520         [__USE_GNU]: Likewise.
37521         * string/bits/string2.h [__USE_MISC]: Likewise.
37522         * string/string.h: Update #endif comments.
37523         [__USE_MISC]: Remove redundant conditionals.
37524         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
37525         Likewise.
37526         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
37527         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
37528         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
37529         Likewise.
37530         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
37531         Likewise.
37532         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
37533         comments.
37534         [__USE_MISC]: Remove redundant conditionals.
37535         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
37536         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
37537         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
37538         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
37539         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
37540         Likewise.
37541         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
37542         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
37543         Likewise.
37544         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
37545         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
37546         Likewise.
37547         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
37548         Likewise.
37549         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
37550         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
37551         Likewise.
37552         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
37553         Likewise.
37554         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
37555         * sysdeps/x86/bits/string.h: Update #endif comments.
37556         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
37557         conditionals.
37558         * time/sys/time.h: Update #endif comments.
37559         * time/time.h: Likewise.
37560         [__USE_MISC]: Remove redundant conditionals.
37561
37562 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
37563
37564         [BZ #16600]
37565         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
37566
37567 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
37568
37569         * Versions.def (librt): Add GLIBC_2.17.
37570
37571 2014-02-21  Adam Conrad  <adconrad@0c3.net>
37572
37573         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
37574         synonym for _SYS_AUXV_H to allow direct inclusion.
37575         * sysdeps/sparc/bits/hwcap.h: Likewise.
37576         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
37577         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
37578         * sysdeps/sparc/sysdep.h: Likewise.
37579
37580 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
37581
37582         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
37583
37584 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37585
37586         * benchtests/bench-strrchr.c: Print length instead of position.
37587
37588 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
37589
37590         [BZ #16611]
37591         * sysdeps/unix/sysv/linux/kernel-features.h
37592         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
37593         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
37594         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
37595         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
37596         Likewise.
37597         [__i386__ || __powerpc__ || __sh__ || __sparc__]
37598         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37599         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
37600         (__ASSUME_SENDMMSG): Define instead of using previous
37601         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
37602         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37603         (__ASSUME_SENDMMSG_SYSCALL): Define.
37604         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37605         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
37606         Likewise.
37607         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37608         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37609         Likewise.
37610         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37611         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37612         Likewise.
37613         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
37614         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37615         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37616         [__ASSUME_SENDMMSG]: Change conditionals to
37617         [__ASSUME_SENDMMSG_SOCKETCALL].
37618         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37619         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
37620         Define.
37621         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37622         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37623         Likewise.
37624         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37625         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37626         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37627         [!__ASSUME_SENDMMSG]: Change conditional to
37628         [!__ASSUME_SENDMMSG_SOCKETCALL].
37629         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37630         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37631         Define.
37632
37633         [BZ #16610]
37634         * sysdeps/unix/sysv/linux/kernel-features.h
37635         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37636         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37637         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37638         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37639         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37640         [__i386__ || __sparc__]
37641         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37642         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37643         (__ASSUME_RECVMMSG): Define instead of using previous
37644         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37645         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37646         (__ASSUME_RECVMMSG_SYSCALL): Define.
37647         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37648         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37649         Likewise.
37650         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37651         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37652         Likewise.
37653         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37654         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37655         Likewise.
37656         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37657         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37658         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37659         [__ASSUME_RECVMMSG]: Change condition to
37660         [__ASSUME_RECVMMSG_SOCKETCALL].
37661         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37662         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37663         Define.
37664         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37665         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37666         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37667         Likewise.
37668         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37669         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37670         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37671         [!__ASSUME_RECVMMSG]: Change condition to
37672         [!__ASSUME_RECVMMSG_SOCKETCALL].
37673         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37674         (__ASSUME_RECVMMSG_SYSCALL): Define.
37675
37676         [BZ #16609]
37677         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37678         __powerpc__ || __s390__ || __sh__ || __sparc__]
37679         (__ASSUME_SOCKETCALL): Define.
37680         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37681         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37682         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37683         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37684         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37685         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37686         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37687         (__ASSUME_ACCEPT4): Define instead of using previous
37688         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37689         __powerpc__ || __sparc__ || __s390__)] condition.
37690         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37691         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37692         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37693         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37694         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37695         [!__ASSUME_ACCEPT4]: Change condition to
37696         [!__ASSUME_ACCEPT4_SOCKETCALL].
37697         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37698         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37699         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37700         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37701         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37702         __ASSUME_ACCEPT4_SYSCALL.
37703         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37704         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37705         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37706         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37707         __ASSUME_ACCEPT4_SYSCALL.
37708         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37709         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37710         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37711         [__ASSUME_ACCEPT4]: Change condition to
37712         [__ASSUME_ACCEPT4_SOCKETCALL].
37713         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37714         (__ASSUME_SOCKETCALL): Define.
37715         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37716         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37717         (__ASSUME_SOCKETCALL): Define.
37718         (__ASSUME_ACCEPT4): Remove.
37719         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37720         Define.
37721         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37722         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37723         Likewise.
37724         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37725         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37726
37727         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37728         macro.
37729         (HWCAP_ARM_LPAE): Likewise.
37730         (HWCAP_ARM_EVTSTRM): Likewise.
37731         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37732         Add vpfd32, lpae and evtstrm.
37733         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37734         Increase to 22.
37735
37736 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37737
37738         * math/auto-libm-test-in: Add tests of clog10.
37739         * math/auto-libm-test-out: Regenerated.
37740         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37741         * sysdeps/i386/fpu/libm-test-ulps: Update.
37742         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37743
37744 2014-02-18  Andreas Schwab  <schwab@suse.de>
37745
37746         [BZ #16574]
37747         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37748         Store non-zero if the second buffer was newly allocated.
37749         (send_dg): Likewise.
37750         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37751         to send_vc and send_dg.
37752         (res_nsend): Pass NULL for ansp2_malloced.
37753         * resolv/res_query.c (__libc_res_nquery): Add parameter
37754         answerp2_malloced and pass it down to __libc_res_nsend.
37755         (res_nquery): Pass additional NULL to __libc_res_nquery.
37756         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37757         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37758         second answer buffer if answerp2_malloced was set.
37759         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37760         (__libc_res_nquerydomain): Add parameter
37761         answerp2_malloced and pass it down to __libc_res_nquery.
37762         (res_nquerydomain): Pass additional NULL to
37763         __libc_res_nquerydomain.
37764         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37765         additional NULL to __libc_res_nsend and __libc_res_nquery.
37766         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37767         additional NULL to __libc_res_nsearch.
37768         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37769         parameter of __libc_res_nsearch to check for separately allocated
37770         second buffer.
37771         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37772         __libc_res_nquery.
37773         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37774         additional NULL to __libc_res_nquery.
37775         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37776         __libc_res_nsearch.
37777         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37778         * include/resolv.h: Update prototypes of __libc_res_nquery,
37779         __libc_res_nsearch, __libc_res_nsend.
37780
37781 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37782
37783         * math/auto-libm-test-in: Add tests of fma.
37784         * math/auto-libm-test-out: Regenerated.
37785         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37786         (fma_towardzero_test_data): Likewise.
37787         (fma_downward_test_data): Likewise.
37788         (fma_upward_test_data): Likewise.
37789         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37790         mpc_mode.
37791         (rounding_modes): Add values for new field.
37792         (func_calc_method): Add value mpfr_fff_f.
37793         (func_calc_desc): Add mpfr_fff_f union field.
37794         (test_function): Add field exact_args.
37795         (FUNC): Add macro argument EXACT_ARGS.
37796         (FUNC_mpfr_f_f): Update call to FUNC.
37797         (FUNC_mpfr_f_f): Likewise.
37798         (FUNC_mpfr_ff_f): Likewise.
37799         (FUNC_mpfr_if_f): Likewise.
37800         (FUNC_mpc_c_f): Likewise.
37801         (FUNC_mpc_c_c): Likewise.
37802         (test_functions): Add fma.  Update calls to FUNC.
37803         (handle_input_arg): Add argument exact_args.
37804         (add_test): Update call to handle_input_arg.
37805         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37806         (output_for_one_input_case): Update call to calc_generic_results.
37807         Recalculate exact zero results in each rounding mode.
37808
37809         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37810         non-negative before setting low bit.
37811         * math/auto-libm-test-in: Mark one asin test possibly having
37812         spurious underflow.
37813         * math/auto-libm-test-out: Regenerated.
37814         * sysdeps/i386/fpu/libm-test-ulps: Update.
37815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37816
37817 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37818
37819         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37820         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37821         ports/sysdeps/unix/sysv/linux/microblaze.
37822         * README: Add missing listing for microblaze*-*-linux-gnu.
37823
37824 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37825
37826         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37827         duplicate code
37828
37829 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37830
37831         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37832         * sysdeps/unix/sysv/linux/ia64: Move directory from
37833         ports/sysdeps/unix/sysv/linux/ia64.
37834         * README: Update listing for ia64-*-linux-gnu.
37835
37836 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37837             Joseph Myers  <joseph@codesourcery.com>
37838
37839         * Makeconfig (test-name): New variable.
37840         (evaluate-test): Likewise.
37841         * Makerules (do-test-clean): Remove .test-result files.
37842         (common-mostlyclean): Likewise.
37843         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37844         * scripts/evaluate-test.sh: New file.
37845
37846 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37847
37848         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37849         separate $(objpfx)tst-fopenloc-cmp.out and
37850         $(objpfx)tst-fopenloc-mem.out targets.
37851         (tests): Update dependencies.
37852         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37853         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37854         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37855         (tst-rxspencer-no-utf8-ARGS): New variable.
37856         (tst-rxspencer-no-utf8-ENV): Likewise.
37857         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37858         instead of $(objpfx)tst-rxspencer-mem.
37859         ($(objpfx)tst-rxspencer-mem): Change target to
37860         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37861         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37862         * posix/tst-rxspencer-no-utf8.c: New file.
37863
37864         * elf/Makefile ($(objpfx)order.out): Remove rule.
37865         [$(run-built-tests) = yes] (tests): Depend on
37866         $(objpfx)order-cmp.out.
37867         ($(objpfx)order-cmp.out): New rule.
37868         [$(run-built-tests) = yes] (tests): Depend on
37869         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37870         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37871         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37872         $(objpfx)tst-array5-static-cmp.out.
37873         ($(objpfx)tst-array1.out): Remove rule.
37874         ($(objpfx)tst-array1-cmp.out): New rule.
37875         ($(objpfx)tst-array1-static.out): Remove rule.
37876         ($(objpfx)tst-array1-static-cmp.out): New rule.
37877         ($(objpfx)tst-array2.out): Remove rule.
37878         ($(objpfx)tst-array2-cmp.out): New rule.
37879         ($(objpfx)tst-array3.out): Remove rule.
37880         ($(objpfx)tst-array3-cmp.out): New rule.
37881         ($(objpfx)tst-array4.out): Remove rule.
37882         ($(objpfx)tst-array4-cmp.out): New rule.
37883         ($(objpfx)tst-array5.out): Remove rule.
37884         ($(objpfx)tst-array5-cmp.out): New rule.
37885         ($(objpfx)tst-array5-static.out): Remove rule.
37886         ($(objpfx)tst-array5-static-cmp.out): New rule.
37887         [$(run-built-tests) = yes] (tests): Depend on
37888         $(objpfx)order2-cmp.out.
37889         ($(objpfx)order2.out): Remove rule.
37890         ($(objpfx)order2-cmp.out): New rule.
37891         ($(objpfx)tst-initorder.out): Remove rule.
37892         [$(run-built-tests) = yes] (tests): Depend on
37893         $(objpfx)tst-initorder-cmp.out.
37894         ($(objpfx)tst-initorder-cmp.out): New rule.
37895         ($(objpfx)tst-initorder2.out): Remove rule.
37896         [$(run-built-tests) = yes] (tests): Depend on
37897         $(objpfx)tst-initorder2-cmp.out.
37898         ($(objpfx)tst-initorder2-cmp.out): New rule.
37899         [$(run-built-tests) = yes] (tests): Depend on
37900         $(objpfx)tst-unused-dep-cmp.out.
37901         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37902         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37903         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37904         on $(objpfx)tst-setvbuf1-cmp.out.
37905         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37906         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37907         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37908         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37909         ($(objpfx)tst-svc.out): Remove rule.
37910         ($(objpfx)tst-svc-cmp.out): New rule.
37911
37912 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37913
37914         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37915         * ctype/ctype.h [__USE_MISC]: Likewise.
37916         * dirent/dirent.h [__USE_MISC]: Likewise.
37917         * grp/grp.h [__USE_MISC]: Likewise.
37918         * io/fcntl.h [__USE_MISC]: Likewise.
37919         * io/sys/stat.h [__USE_MISC]: Likewise.
37920         * libio/stdio.h [__USE_MISC]: Likewise.
37921         * posix/unistd.h [__USE_MISC]: Likewise.
37922         * pwd/pwd.h [__USE_MISC]: Likewise.
37923         * stdlib.h [__USE_MISC]: Likewise.
37924         * string/bits/string2.h [__USE_MISC]: Likewise.
37925         * string/string.h [__USE_MISC]: Likewise.
37926         * time/time.h [__USE_MISC]: Likewise.
37927
37928 2014-02-13  Andreas Schwab  <schwab@suse.de>
37929
37930         [BZ #16574]
37931         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37932         second answer buffer if it was separately allocated.
37933
37934 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37935
37936         * sysdeps/mips/math-tests.h: Include <features.h>.
37937         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37938         (ROUNDING_TESTS_long_double): Do not define.
37939         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37940         (EXCEPTION_TESTS_long_double): Likewise.
37941         * sysdeps/mips/mips64/libm-test-ulps: Update.
37942
37943         * include/features.h (__USE_BSD): Remove macro definitions.
37944         (__USE_SVID): Likewise.
37945         (_BSD_SOURCE): Likewise.
37946         (_SVID_SOURCE): Likewise.
37947         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37948         from definition of _DEFAULT_SOURCE.
37949         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37950         [_DEFAULT_SOURCE].
37951         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37952         * bits/mman.h [__USE_BSD]: Likewise.
37953         * bits/termios.h [__USE_BSD]: Likewise.
37954         * bits/waitstatus.h [__USE_BSD]: Likewise.
37955         * ctype/ctype.h [__USE_SVID]: Likewise.
37956         * dirent/dirent.h [__USE_BSD]: Likewise.
37957         * grp/grp.h [__USE_SVID]: Likewise.
37958         [__USE_BSD]: Likewise.
37959         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37960         * io/fcntl.h [__USE_BSD]: Likewise.
37961         * io/ftw.h [__USE_BSD]: Likewise.
37962         * io/sys/stat.h [__USE_BSD]: Likewise.
37963         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37964         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37965         * libio/stdio.h [__USE_SVID]: Likewise.
37966         [__USE_BSD]: Likewise.
37967         * math/math.h [__USE_SVID]: Likewise.
37968         [__USE_BSD]: Likewise.
37969         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37970         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37971         * misc/search.h [__USE_SVID]: Likewise.
37972         * misc/sys/mman.h [__USE_BSD]: Likewise.
37973         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37974         * misc/sys/uio.h [__USE_BSD]: Likewise.
37975         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37976         * posix/glob.h [__USE_BSD]: Likewise.
37977         * posix/regex.h [__USE_BSD]: Likewise.
37978         * posix/sys/types.h [__USE_BSD]: Likewise.
37979         [__USE_SVID]: Likewise.
37980         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37981         * posix/sys/wait.h [__USE_BSD]: Likewise.
37982         [__USE_SVID]: Likewise.
37983         * posix/unistd.h [__USE_BSD]: Likewise.
37984         [__USE_SVID]: Likewise.
37985         * pwd/pwd.h [__USE_SVID]: Likewise.
37986         * resolv/netdb.h [__USE_BSD]: Likewise.
37987         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37988         * signal/signal.h [__USE_BSD]: Likewise.
37989         [__USE_SVID]: Likewise.
37990         * socket/sys/socket.h [__USE_BSD]: Likewise.
37991         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37992         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37993         [__USE_SVID]: Likewise.
37994         * string/bits/string2.h [__USE_BSD]: Likewise.
37995         [__USE_SVID]: Likewise.
37996         * string/bits/string3.h [__USE_BSD]: Likewise.
37997         * string/endian.h [__USE_BSD]: Likewise.
37998         * string/string.h [__USE_SVID]: Likewise.
37999         [__USE_BSD]: Likewise.
38000         * string/strings.h [__USE_BSD]: Likewise.
38001         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
38002         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
38003         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
38004         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
38005         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
38006         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
38007         Likewise.
38008         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
38009         Likewise.
38010         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
38011         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
38012         Likewise.
38013         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
38014         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
38015         Likewise.
38016         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
38017         Likewise.
38018         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
38019         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
38020         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
38021         Likewise.
38022         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
38023         Likewise.
38024         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
38025         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
38026         * termios/termios.h [__USE_BSD]: Likewise.
38027         * time/sys/time.h [__USE_BSD]: Likewise.
38028         * time/time.h [__USE_BSD]: Likewise.
38029         [__USE_SVID]: Likewise.
38030
38031         * Makefile (subdir_targets): Remove subdir_lint.out.
38032
38033         * stdio-common/Makefile (do-tst-unbputc): Remove target.
38034         (do-tst-printf): Likewise.
38035         (tests): Depend directly on $(objpfx)tst-unbputc.out and
38036         $(objpfx)tst-printf.out.
38037
38038         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
38039
38040         * Makerules (check-abi-%): Change target to
38041         $(objpfx)check-abi-%.out.
38042         (check-abi target): Update dependencies.
38043         (check-abi-pattern variable): Redirect output of diff to $@.
38044         (check-abi variable): Likewise.
38045         * elf/Makefile (check-abi): Update dependencies.
38046
38047         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
38048         unused.
38049         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
38050         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
38051         subnormal range.
38052         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
38053         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
38054         value has largest subnormal exponent.
38055         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
38056         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
38057         * sysdeps/aarch64/soft-fp/sfp-machine.h
38058         (_FP_TININESS_AFTER_ROUNDING): New macro.
38059         * sysdeps/alpha/soft-fp/sfp-machine.h
38060         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38061         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38062         Likewise.
38063         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
38064         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38065         * sysdeps/mips/soft-fp/sfp-machine.h
38066         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38067         * sysdeps/powerpc/soft-fp/sfp-machine.h
38068         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38069         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38070         Likewise.
38071         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
38072         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38073         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
38074         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38075         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38076         Likewise.
38077
38078 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
38079
38080         [BZ #16545]
38081         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
38082         model 1.
38083
38084 2014-02-12  Richard Henderson  <rth@redhat.com>
38085
38086         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
38087         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
38088         * sysdeps/unix/sysv/linux/alpha: Move directory from
38089         ports/sysdeps/unix/sysv/linux/alpha.
38090         * README: Update listing for alpha-*-linux-gnu.
38091
38092 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
38093
38094         * include/features.h: Update comment documenting feature test
38095         macros.
38096         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
38097         _DEFAULT_SOURCE.
38098         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
38099         (_SVID_SOURCE): Likewise.
38100         (_DEFAULT_SOURCE): Update description of default features.
38101         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
38102         with _GNU_SOURCE.
38103         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
38104         (S_ISVTX): Likewise.
38105         * manual/math.texi (Mathematical Constants): Likewise.
38106         * manual/signal.texi (Interrupted Primitives): Likewise.
38107         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
38108         * math/test-matherr.c (_SVID_SOURCE): Do not define.
38109         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
38110         Don't refer to _SVID_SOURCE in warning text.
38111
38112         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38113
38114         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
38115         already defined.
38116         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
38117         * sysdeps/mips/dl-lookup.c: Remove.
38118         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
38119
38120 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
38121
38122         [BZ #16447]
38123         * math/auto-libm-test-in: Add testcase for expl.
38124         * math/auto-libm-test-out: Regenerate.
38125         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
38126         calculation of unsafe.
38127         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
38128
38129 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
38130
38131         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
38132         * sysdeps/unix/sysv/linux/aarch64: Move directory from
38133         ports/sysdeps/unix/sysv/linux/aarch64.
38134         * README: Update listing for aarch64*-*-linux-gnu.
38135
38136 2014-02-11  Will Newton  <will.newton@linaro.org>
38137
38138         * manual/probes.texi (Mathematical Function Probes): Use
38139         "triggered" instead of "hit".
38140
38141         * manual/probes.texi (Internal Probes): Add documentation
38142         of setjmp, longjmp and longjmp_target probes.
38143
38144         * include/stap-probe.h: Add comment about probe argument
38145         format.
38146
38147         * malloc/mtrace.c (attribute_hidden): Remove unused macro
38148         definition.  (tr_where, tr_freehook, tr_mallochook,
38149         tr_reallochook, tr_memalignhook): Use ANSI protoype.
38150
38151 2014-02-11  David S. Miller  <davem@davemloft.net>
38152
38153         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
38154         processing int_tests.
38155
38156 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
38157
38158         * sysdeps/mips: Move directory from ports/sysdeps/mips.
38159         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
38160         * sysdeps/unix/sysv/linux/mips: Move directory from
38161         ports/sysdeps/unix/sysv/linux/mips.
38162         * README: Update listing for mips-*-linux-gnu and
38163         mips64-*-linux-gnu.
38164
38165 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
38166
38167         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
38168         * sysdeps/unix/sysv/linux/m68k: Move directory from
38169         ports/sysdeps/unix/sysv/linux/m68k.
38170         * README: Update listing for m68k-*-linux-gnu.
38171
38172 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
38173
38174         * sysdeps/tile: Move directory from ports/sysdeps/tile.
38175         * sysdeps/unix/sysv/linux/generic: Move directory from
38176         ports/sysdeps/unix/sysv/linux/generic.
38177         * sysdeps/unix/sysv/linux/tile: Move directory from
38178         ports/sysdeps/unix/sysv/linux/tile.
38179         * README: Update listing for tile*-*-linux-gnu.
38180
38181 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
38182
38183         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
38184         __builtin_expect.
38185         * benchtests/bench-memmem.c (simple_memmem): Likewise.
38186         * catgets/open_catalog.c (__open_catalog): Likewise.
38187         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
38188         * debug/confstr_chk.c: Likewise.
38189         * debug/fread_chk.c (__fread_chk): Likewise.
38190         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
38191         * debug/getgroups_chk.c: Likewise.
38192         * debug/mbsnrtowcs_chk.c: Likewise.
38193         * debug/mbsrtowcs_chk.c: Likewise.
38194         * debug/mbstowcs_chk.c: Likewise.
38195         * debug/memcpy_chk.c: Likewise.
38196         * debug/memmove_chk.c: Likewise.
38197         * debug/mempcpy_chk.c: Likewise.
38198         * debug/memset_chk.c: Likewise.
38199         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
38200         * debug/strcat_chk.c (__strcat_chk): Likewise.
38201         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
38202         * debug/strncat_chk.c (__strncat_chk): Likewise.
38203         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
38204         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
38205         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
38206         * debug/wcpncpy_chk.c: Likewise.
38207         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
38208         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
38209         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
38210         * debug/wcsncpy_chk.c: Likewise.
38211         * debug/wcsnrtombs_chk.c: Likewise.
38212         * debug/wcsrtombs_chk.c: Likewise.
38213         * debug/wcstombs_chk.c: Likewise.
38214         * debug/wmemcpy_chk.c: Likewise.
38215         * debug/wmemmove_chk.c: Likewise.
38216         * debug/wmempcpy_chk.c: Likewise.
38217         * debug/wmemset_chk.c: Likewise.
38218         * dirent/scandirat.c (SCANDIRAT): Likewise.
38219         * dlfcn/dladdr1.c (dladdr1): Likewise.
38220         * dlfcn/dladdr.c (dladdr): Likewise.
38221         * dlfcn/dlclose.c (dlclose_doit): Likewise.
38222         * dlfcn/dlerror.c (__dlerror): Likewise.
38223         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
38224         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
38225         * dlfcn/dlopen.c (dlopen_doit): Likewise.
38226         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
38227         * dlfcn/dlsym.c (dlsym_doit): Likewise.
38228         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
38229         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
38230         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
38231         Likewise.
38232         * elf/dl-conflict.c: Likewise.
38233         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
38234         * elf/dl-dst.h: Likewise.
38235         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
38236         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
38237         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
38238         * elf/dl-init.c (call_init, _dl_init): Likewise.
38239         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
38240         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
38241         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
38242         Likewise.
38243         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
38244         Likewise.
38245         * elf/dl-minimal.c (__libc_memalign): Likewise.
38246         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
38247         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
38248         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
38249         * elf/dl-sym.c (do_sym): Likewise.
38250         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
38251         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
38252         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
38253         * elf/dl-writev.h (_dl_writev): Likewise.
38254         * elf/ldconfig.c (search_dir): Likewise.
38255         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
38256         (dl_main): Likewise.
38257         * elf/setup-vdso.h (setup_vdso): Likewise.
38258         * grp/compat-initgroups.c (compat_call): Likewise.
38259         * grp/fgetgrent.c (fgetgrent): Likewise.
38260         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
38261         * grp/putgrent.c (putgrent): Likewise.
38262         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
38263         Likewise.
38264         * hurd/hurdinit.c: Likewise.
38265         * iconvdata/8bit-gap.c (struct): Likewise.
38266         * iconvdata/ansi_x3.110.c : Likewise.
38267         * iconvdata/big5.c : Likewise.
38268         * iconvdata/big5hkscs.c : Likewise.
38269         * iconvdata/cp1255.c: Likewise.
38270         * iconvdata/cp1258.c : Likewise.
38271         * iconvdata/cp932.c : Likewise.
38272         * iconvdata/euc-cn.c: Likewise.
38273         * iconvdata/euc-jisx0213.c : Likewise.
38274         * iconvdata/euc-jp.c: Likewise.
38275         * iconvdata/euc-jp-ms.c : Likewise.
38276         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
38277         * iconvdata/gb18030.c : Likewise.
38278         * iconvdata/gbbig5.c (const): Likewise.
38279         * iconvdata/gbgbk.c: Likewise.
38280         * iconvdata/gbk.c : Likewise.
38281         * iconvdata/ibm1364.c : Likewise.
38282         * iconvdata/ibm930.c : Likewise.
38283         * iconvdata/ibm932.c: Likewise.
38284         * iconvdata/ibm933.c : Likewise.
38285         * iconvdata/ibm935.c : Likewise.
38286         * iconvdata/ibm937.c : Likewise.
38287         * iconvdata/ibm939.c : Likewise.
38288         * iconvdata/ibm943.c: Likewise.
38289         * iconvdata/iso_11548-1.c: Likewise.
38290         * iconvdata/iso-2022-cn.c : Likewise.
38291         * iconvdata/iso-2022-cn-ext.c : Likewise.
38292         * iconvdata/iso-2022-jp-3.c: Likewise.
38293         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
38294         * iconvdata/iso-2022-kr.c : Likewise.
38295         * iconvdata/iso646.c (gconv_end): Likewise.
38296         * iconvdata/iso_6937-2.c : Likewise.
38297         * iconvdata/iso_6937.c : Likewise.
38298         * iconvdata/iso8859-1.c: Likewise.
38299         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
38300         * iconvdata/shift_jisx0213.c : Likewise.
38301         * iconvdata/sjis.c : Likewise.
38302         * iconvdata/t.61.c : Likewise.
38303         * iconvdata/tcvn5712-1.c : Likewise.
38304         * iconvdata/tscii.c: Likewise.
38305         * iconvdata/uhc.c : Likewise.
38306         * iconvdata/unicode.c (gconv_end): Likewise.
38307         * iconvdata/utf-16.c (gconv_end): Likewise.
38308         * iconvdata/utf-32.c (gconv_end): Likewise.
38309         * iconvdata/utf-7.c (base64): Likewise.
38310         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
38311         * iconv/gconv_close.c (__gconv_close): Likewise.
38312         * iconv/gconv_open.c (__gconv_open): Likewise.
38313         * iconv/gconv_simple.c (internal_ucs4_loop_single)
38314         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
38315         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
38316         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
38317         (ucs4le_internal_loop_single): Likewise.
38318         * iconv/iconv.c (iconv): Likewise.
38319         * iconv/iconv_close.c: Likewise.
38320         * iconv/loop.c (SINGLE): Likewise.
38321         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
38322         * include/atomic.h: Likewise.
38323         * inet/inet6_option.c (option_alloc): Likewise.
38324         * intl/bindtextdom.c (set_binding_values): Likewise.
38325         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
38326         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
38327         * intl/localealias.c (read_alias_file): Likewise.
38328         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
38329         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
38330         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
38331         * libio/fmemopen.c (fmemopen): Likewise.
38332         * libio/iofgets.c (_IO_fgets): Likewise.
38333         * libio/iofgets_u.c (fgets_unlocked): Likewise.
38334         * libio/iofgetws.c (fgetws): Likewise.
38335         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
38336         * libio/iogetdelim.c (_IO_getdelim): Likewise.
38337         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
38338         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
38339         * locale/findlocale.c (_nl_find_locale): Likewise.
38340         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
38341         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
38342         Likewise.
38343         * locale/setlocale.c (setlocale): Likewise.
38344         * login/programs/pt_chown.c (main): Likewise.
38345         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
38346         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
38347         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
38348         (mmap, mmap64, mremap, munmap): Likewise.
38349         * math/e_exp2l.c: Likewise.
38350         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
38351         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
38352         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
38353         * math/s_catan.c (__catan): Likewise.
38354         * math/s_catanf.c (__catanf): Likewise.
38355         * math/s_catanh.c (__catanh): Likewise.
38356         * math/s_catanhf.c (__catanhf): Likewise.
38357         * math/s_catanhl.c (__catanhl): Likewise.
38358         * math/s_catanl.c (__catanl): Likewise.
38359         * math/s_ccosh.c (__ccosh): Likewise.
38360         * math/s_ccoshf.c (__ccoshf): Likewise.
38361         * math/s_ccoshl.c (__ccoshl): Likewise.
38362         * math/s_cexp.c (__cexp): Likewise.
38363         * math/s_cexpf.c (__cexpf): Likewise.
38364         * math/s_cexpl.c (__cexpl): Likewise.
38365         * math/s_clog10.c (__clog10): Likewise.
38366         * math/s_clog10f.c (__clog10f): Likewise.
38367         * math/s_clog10l.c (__clog10l): Likewise.
38368         * math/s_clog.c (__clog): Likewise.
38369         * math/s_clogf.c (__clogf): Likewise.
38370         * math/s_clogl.c (__clogl): Likewise.
38371         * math/s_csin.c (__csin): Likewise.
38372         * math/s_csinf.c (__csinf): Likewise.
38373         * math/s_csinh.c (__csinh): Likewise.
38374         * math/s_csinhf.c (__csinhf): Likewise.
38375         * math/s_csinhl.c (__csinhl): Likewise.
38376         * math/s_csinl.c (__csinl): Likewise.
38377         * math/s_csqrt.c (__csqrt): Likewise.
38378         * math/s_csqrtf.c (__csqrtf): Likewise.
38379         * math/s_csqrtl.c (__csqrtl): Likewise.
38380         * math/s_ctan.c (__ctan): Likewise.
38381         * math/s_ctanf.c (__ctanf): Likewise.
38382         * math/s_ctanh.c (__ctanh): Likewise.
38383         * math/s_ctanhf.c (__ctanhf): Likewise.
38384         * math/s_ctanhl.c (__ctanhl): Likewise.
38385         * math/s_ctanl.c (__ctanl): Likewise.
38386         * math/w_pow.c: Likewise.
38387         * math/w_powf.c: Likewise.
38388         * math/w_powl.c: Likewise.
38389         * math/w_scalb.c (sysv_scalb): Likewise.
38390         * math/w_scalbf.c (sysv_scalbf): Likewise.
38391         * math/w_scalbl.c (sysv_scalbl): Likewise.
38392         * misc/error.c (error_tail): Likewise.
38393         * misc/pselect.c (__pselect): Likewise.
38394         * nis/nis_callback.c (__nis_create_callback): Likewise.
38395         * nis/nis_call.c (__nisfind_server): Likewise.
38396         * nis/nis_creategroup.c (nis_creategroup): Likewise.
38397         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
38398         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
38399         * nis/nis_getservlist.c (nis_getservlist): Likewise.
38400         * nis/nis_lookup.c (nis_lookup): Likewise.
38401         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
38402         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
38403         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
38404         * nis/nis_xdr.c (xdr_endpoint): Likewise.
38405         * nis/nss_compat/compat-grp.c (getgrent_next_file)
38406         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
38407         * nis/nss_compat/compat-initgroups.c (add_group)
38408         (internal_getgrent_r): Likewise.
38409         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
38410         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
38411         * nis/nss_compat/compat-spwd.c (getspent_next_file)
38412         (internal_getspnam_r): Likewise.
38413         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
38414         (_nss_nis_getaliasbyname_r): Likewise.
38415         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
38416         (_nss_nis_getntohost_r): Likewise.
38417         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
38418         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
38419         (_nss_nis_getgrgid_r): Likewise.
38420         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
38421         (internal_nis_gethostent_r, internal_gethostbyname2_r)
38422         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
38423         (_nss_nis_gethostbyname4_r): Likewise.
38424         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
38425         (initgroups_netid): Likewise.
38426         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
38427         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
38428         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
38429         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
38430         (_nss_nis_getprotobynumber_r): Likewise.
38431         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
38432         (_nss_nis_getsecretkey): Likewise.
38433         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
38434         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
38435         (_nss_nis_getpwuid_r): Likewise.
38436         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
38437         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
38438         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
38439         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
38440         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
38441         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
38442         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
38443         Likewise.
38444         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
38445         (_nss_nisplus_getntohost_r): Likewise.
38446         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
38447         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
38448         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
38449         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
38450         Likewise.
38451         * nis/nss_nisplus/nisplus-initgroups.c
38452         (_nss_nisplus_initgroups_dyn): Likewise.
38453         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
38454         (_nss_nisplus_getnetbyaddr_r): Likewise.
38455         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
38456         (_nss_nisplus_getprotobynumber_r): Likewise.
38457         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
38458         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
38459         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
38460         Likewise.
38461         * nis/nss_nisplus/nisplus-service.c
38462         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
38463         (_nss_nisplus_getservbyport_r): Likewise.
38464         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
38465         (_nss_nisplus_getspnam_r): Likewise.
38466         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
38467         Likewise.
38468         * nscd/aicache.c (addhstaiX): Likewise.
38469         * nscd/cache.c (cache_search, prune_cache): Likewise.
38470         * nscd/connections.c (register_traced_file, send_ro_fd)
38471         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
38472         (main_loop_epoll): Likewise.
38473         * nscd/grpcache.c (addgrbyX): Likewise.
38474         * nscd/hstcache.c (addhstbyX): Likewise.
38475         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38476         * nscd/mem.c (gc, mempool_alloc): Likewise.
38477         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
38478         (addinnetgrX): Likewise.
38479         * nscd/nscd-client.h (__nscd_acquire_maplock)
38480         (__nscd_drop_map_ref): Likewise.
38481         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38482         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
38483         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
38484         Likewise.
38485         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
38486         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
38487         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
38488         (__nscd_get_map_ref): Likewise.
38489         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
38490         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
38491         Likewise.
38492         * nscd/pwdcache.c (addpwbyX): Likewise.
38493         * nscd/selinux.c (preserve_capabilities): Likewise.
38494         * nscd/servicescache.c (addservbyX): Likewise.
38495         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
38496         * posix/fnmatch.c (fnmatch): Likewise.
38497         * posix/getopt.c (_getopt_internal_r): Likewise.
38498         * posix/glob.c (glob, glob_in_dir): Likewise.
38499         * posix/wordexp.c (exec_comm_child): Likewise.
38500         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
38501         (getanswer_r, gaih_getanswer_slice): Likewise.
38502         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
38503         * resolv/res_init.c: Likewise.
38504         * resolv/res_mkquery.c (res_nmkquery): Likewise.
38505         * resolv/res_query.c (__libc_res_nquery): Likewise.
38506         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
38507         Likewise.
38508         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
38509         * stdio-common/perror.c (perror): Likewise.
38510         * stdio-common/printf_fp.c (___printf_fp): Likewise.
38511         * stdio-common/tmpnam.c (tmpnam): Likewise.
38512         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
38513         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
38514         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
38515         Likewise.
38516         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
38517         * stdlib/putenv.c (putenv): Likewise.
38518         * stdlib/setenv.c (__add_to_environ): Likewise.
38519         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
38520         * stdlib/strtol_l.c (INTERNAL): Likewise.
38521         * string/memmem.c (memmem): Likewise.
38522         * string/strerror.c (strerror): Likewise.
38523         * string/strnlen.c (__strnlen): Likewise.
38524         * string/test-memmem.c (simple_memmem): Likewise.
38525         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
38526         * sunrpc/pm_getport.c (__get_socket): Likewise.
38527         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
38528         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
38529         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
38530         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
38531         Likewise.
38532         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
38533         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
38534         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38535         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
38536         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38537         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
38538         Likewise.
38539         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
38540         Likewise.
38541         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38542         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38543         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
38544         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38545         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
38546         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
38547         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
38548         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
38549         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38550         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
38551         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38552         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
38553         Likewise.
38554         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
38555         Likewise.
38556         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
38557         Likewise.
38558         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
38559         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38560         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
38561         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
38562         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
38563         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
38564         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38565         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
38566         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
38567         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
38568         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
38569         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38570         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
38571         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
38572         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
38573         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38574         Likewise.
38575         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
38576         Likewise.
38577         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
38578         Likewise.
38579         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
38580         Likewise.
38581         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
38582         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
38583         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
38584         Likewise.
38585         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
38586         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
38587         * sysdeps/posix/opendir.c (__opendirat): Likewise.
38588         * sysdeps/posix/sleep.c: Likewise.
38589         * sysdeps/posix/tempname.c: Likewise.
38590         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
38591         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
38592         Likewise.
38593         * sysdeps/powerpc/powerpc32/dl-machine.h
38594         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
38595         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
38596         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
38597         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
38598         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
38599         Likewise.
38600         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
38601         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
38602         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38603         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
38604         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38605         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
38606         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
38607         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
38608         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
38609         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
38610         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
38611         (elf_machine_lazy_rel): Likewise.
38612         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
38613         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
38614         (elf_machine_lazy_rel): Likewise.
38615         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
38616         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
38617         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
38618         * sysdeps/unix/grantpt.c (grantpt): Likewise.
38619         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
38620         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
38621         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38622         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38623         Likewise.
38624         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38625         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38626         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38627         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38628         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38629         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38630         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38631         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38632         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38633         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38634         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38635         Likewise.
38636         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38637         (__posix_fallocate64_l64): Likewise.
38638         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38639         (posix_fallocate): Likewise.
38640         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38641         Likewise.
38642         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38643         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38644         (getifaddrs_internal): Likewise.
38645         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38646         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38647         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38648         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38649         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38650         (__posix_fallocate64_l64): Likewise.
38651         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38652         Likewise.
38653         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38654         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38655         (__get_clockfreq): Likewise.
38656         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38657         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38658         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38659         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38660         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38661         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38662         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38663         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38664         Likewise.
38665         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38666         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38667         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38668         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38669         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38670         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38671         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38672         Likewise.
38673         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38674         (posix_fallocate): Likewise.
38675         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38676         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38677         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38678         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38679         (elf_machine_rela, elf_machine_rela_relative)
38680         (elf_machine_lazy_rel): Likewise.
38681         * time/asctime.c (asctime_internal): Likewise.
38682         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38683         * time/tzset.c (__tzset_parse_tz): Likewise.
38684         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38685         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38686         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38687         * wcsmbs/wcsmbsload.h: Likewise.
38688
38689         [BZ #15894]
38690         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38691
38692         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38693         (arena_get2): Remove THREAD_STATS conditionals.
38694         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38695         (__malloc_stats, int): Likewise.
38696
38697 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38698
38699         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38700         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38701
38702         * manual/setjmp.texi: Fix typos/grammar errors.
38703
38704         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38705         Only return early when n is <= 0.  Delete unused return statement.
38706
38707         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38708         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38709         * debug/tst-longjmp_chk3.c: New file.
38710
38711         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38712         (test_main): Replace code with set_fortify_handler call.
38713         * debug/test-strcpy_chk.c: Likewise.
38714         * debug/tst-chk1.c: Likewise.
38715         * debug/tst-longjmp_chk.c: Likewise.
38716         * test-skeleton.c: Include fcntl.h & paths.h
38717         (set_fortify_handler): Define.
38718
38719         * debug/tst-longjmp_chk.c: Add header comment and include
38720         ../test-skeleton.c.
38721         (do_test): Mark static.
38722         (TEST_FUNCTION): Define.
38723
38724         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38725         (IP_PMTUDISC_INTERFACE): Likewise.
38726         (IP_MULTICAST_IF): Likewise.
38727         (IP_MULTICAST_TTL): Likewise.
38728         (IP_MULTICAST_LOOP): Likewise.
38729         (IP_ADD_MEMBERSHIP): Likewise.
38730         (IP_DROP_MEMBERSHIP): Likewise.
38731         (IP_UNBLOCK_SOURCE): Likewise.
38732         (IP_BLOCK_SOURCE): Likewise.
38733         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38734         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38735         (IP_MSFILTER): Likewise.
38736         (MCAST_JOIN_GROUP): Likewise.
38737         (MCAST_BLOCK_SOURCE): Likewise.
38738         (MCAST_UNBLOCK_SOURCE): Likewise.
38739         (MCAST_LEAVE_GROUP): Likewise.
38740         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38741         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38742         (MCAST_MSFILTER): Likewise.
38743         (IP_MULTICAST_ALL): Likewise.
38744         (IP_UNICAST_IF): Likewise.
38745
38746         * timezone/Makefile: Delete $(have-ksh) check.
38747         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38748         * timezone/tzselect.ksh: Add +x mode bits.
38749
38750         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38751         (ANON_INODE_FS_MAGIC): Likewise.
38752         (BDEVFS_MAGIC): Likewise.
38753         (BINFMTFS_MAGIC): Likewise.
38754         (BTRFS_TEST_MAGIC): Likewise.
38755         (CRAMFS_MAGIC_WEND): Likewise.
38756         (DEBUGFS_MAGIC): Likewise.
38757         (ECRYPTFS_SUPER_MAGIC): Likewise.
38758         (EXT3_SUPER_MAGIC): Likewise.
38759         (EXT4_SUPER_MAGIC): Likewise.
38760         (FUTEXFS_SUPER_MAGIC): Likewise.
38761         (HOSTFS_SUPER_MAGIC): Likewise.
38762         (HUGETLBFS_MAGIC): Likewise.
38763         (MINIX3_SUPER_MAGIC): Likewise.
38764         (MTD_INODE_FS_MAGIC): Likewise.
38765         (NILFS_SUPER_MAGIC): Likewise.
38766         (OPENPROM_SUPER_MAGIC): Likewise.
38767         (PIPEFS_MAGIC): Likewise.
38768         (PSTOREFS_MAGIC): Likewise.
38769         (QNX6_SUPER_MAGIC): Likewise.
38770         (RAMFS_MAGIC): Likewise.
38771         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38772         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38773         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38774         (SECURITYFS_MAGIC): Likewise.
38775         (SELINUX_MAGIC): Likewise.
38776         (SMACK_MAGIC): Likewise.
38777         (SOCKFS_MAGIC): Likewise.
38778         (SQUASHFS_MAGIC): Likewise.
38779         (STACK_END_MAGIC): Likewise.
38780         (TMPFS_MAGIC): Likewise.
38781         (USBDEVICE_SUPER_MAGIC): Likewise.
38782         (V9FS_MAGIC): Likewise.
38783         (XENFS_SUPER_MAGIC): Likewise.
38784         (CRAMFS_MAGIC): Fix typo in comment.
38785         (EXT2_SUPER_MAGIC): Update comment.
38786         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38787
38788 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38789
38790         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38791         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38792         * sysdeps/unix/sysv/linux/arm: Move directory from
38793         ports/sysdeps/unix/sysv/linux/arm.
38794         * README: Update listing for arm-*-linux-gnueabi.
38795
38796         * README: Remove mention of am33.
38797
38798 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38799
38800         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38801         than the comma operator, to avoid "rhs of comma has no effect"
38802         compiler warnings.
38803         (__sigfillset, __sigandset, __sigorset): Likewise.
38804         * include/signal.h (__sigemptyset): Likewise.
38805         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38806
38807 2014-02-07  Allan McRae  <allan@archlinux.org>
38808
38809         * version.h (RELEASE): Set to "development".
38810         (VERSION): Set to "2.19.90"
38811         * NEWS: Add 2.20 section.
38812
38813 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38814
38815         [BZ #16529]
38816         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38817
38818 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38819
38820         * manual/contrib.texi: Update entry for Carlos O'Donell,
38821         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38822
38823 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38824
38825         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38826
38827         * sysdeps/unix/sysv/linux/kernel-features.h
38828         [__LINUX_KERNEL_VERSION >= 0x020621]
38829         (__ASSUME_PROC_PID_TASK_COMM): Define.
38830
38831 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38832
38833         [BZ #16398]
38834         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38835         conversion when destination buffer does not have enough space.
38836         * libio/tst-ftell-partial-wide.c: New test case.
38837         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38838
38839         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38840         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38841         Leonard and Allan McRae.
38842
38843 2014-02-04  David S. Miller  <davem@davemloft.net>
38844
38845         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38846         32-bit.
38847
38848 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38849
38850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38851         New file
38852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38853         New file
38854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38855         New file.
38856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38857         New file.
38858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38859         New file.
38860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38861         New file.
38862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38863         New file.
38864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38865         New file.
38866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38867         New file.
38868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38869         New file.
38870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38871         New file.
38872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38873         New file.
38874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38875         New file.
38876
38877 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38878
38879         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38880         * shlib-versions: Likewise.
38881
38882 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38883             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38884
38885         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38886         (abilist-pattern): New variable, set to %-le.abilist.
38887
38888         * Makerules (abilist-pattern): New variable.
38889         (vpath): Use $(abilist-pattern) in place of %.abilist.
38890         (check-abi-% pattern rule): Likewise.
38891         (check-abi, update-abi): Likewise.
38892
38893 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38894
38895         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38896
38897 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38898
38899         * manual/startup.texi: Add next, previous, and top entries for
38900         the `Program Arguments' and `Environment Variables' nodes.
38901
38902 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38903
38904         * manual/macros.texi: Add comments before MTASC-safety macros.
38905
38906         * manual/users.texi: Document MTASC-safety properties.
38907
38908         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38909         (pthread_getspecific, pthread_setspecific): Format with
38910         @deftypefun, and add @safety note.
38911         * manual/signal.texi: Move comments that analyze the above
38912         functions to their home place.
38913
38914 2014-02-03  Allan McRae  <allan@archlinux.org>
38915
38916         * po/sl.po: Update Slovenian translation from translation project.
38917
38918 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38919
38920         * manual/time.texi (timegm): Add missing blank after @c.
38921         Reported by Joseph Myers <joseph@codesourcery.com>.
38922
38923 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38924
38925         * manual/check-safety.sh: New.
38926         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38927
38928         * manual/terminal.texi: Document MTASC-safety properties.
38929
38930         * manual/filesys.texi: Document MTASC-safety properties.
38931
38932         * manual/errno.texi: Document MTASC-safety properties.
38933
38934         * manual/intro.texi: Document safety identifiers and
38935         conditionals.
38936
38937         * manual/string.texi (wcstok): Fix prototype.
38938         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38939
38940         * manual/time.texi: Document MTASC-safety properties.
38941
38942         * manual/string.texi: Document MTASC-safety properties.
38943
38944         * manual/threads.texi: Document MTASC-safety properties.
38945
38946         * manual/stdio.texi: Document MTASC-safety properties.
38947
38948         * manual/syslog.texi: Document MTASC-safety properties.
38949
38950         * manual/sysinfo.texi: Document MTASC-safety properties.
38951
38952         * manual/startup.texi: Document MTASC-safety properties.
38953
38954         * manual/socket.texi: Document MTASC-safety properties.
38955
38956         * manual/signal.texi: Document MTASC-safety properties.
38957
38958 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38959
38960         * manual/setjmp.texi: Document MTASC-safety properties.
38961
38962         * manual/search.texi: Document MTASC-safety properties.
38963
38964         * manual/resource.texi: Document MTASC-safety properties.
38965
38966         * manual/process.texi: Document MTASC-safety properties.
38967
38968         * manual/platform.texi: Document MTASC-safety properties.
38969
38970         * manual/pipe.texi: Document MTASC-safety properties.
38971
38972         * manual/pattern.texi: Document MTASC-safety properties.
38973
38974         * manual/message.texi: Document MTASC-safety properties.
38975
38976         [BZ #12751]
38977         * manual/memory.texi: Document MTASC-safety properties.
38978
38979         * manual/math.texi: Document MTASC-safety properties.
38980
38981         * manual/locale.texi: Document MTASC-safety properties.
38982
38983         * manual/llio.texi: Document MTASC-safety properties.
38984
38985         * manual/libdl.texi: New.
38986
38987         * manual/lang.texi: Document MTASC-safety properties.
38988
38989         * manual/job.texi: Document MTASC-safety properties.
38990
38991         * manual/getopt.texi: Document MTASC-safety properties.
38992
38993         * manual/ctype.texi: Document MTASC-safety properties.
38994
38995 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38996
38997         [BZ #16046]
38998         * csu/libc-tls.c (static_map): Remove variable.
38999         (__libc_setup_tls): Use main executable's link map for TLS data.
39000         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
39001         casing for LM_ID_BASE and GL(dl_nns).
39002         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
39003         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
39004         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
39005         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
39006         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
39007         member.
39008         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
39009         l_phnum members.
39010
39011 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
39012
39013         * manual/debug.texi: Document MTASC-safety properties.
39014
39015 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
39016
39017         [BZ #16510]
39018         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
39019         of __x86_64__ when disabling x87 inline functions.
39020
39021 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
39022
39023         * manual/charset.texi: Document MTASC-safety properties.
39024
39025         * manual/crypt.texi: Document MTASC-safety properties.
39026
39027         * manual/conf.texi: Document MTASC-safety properties.
39028
39029         * manual/arith.texi: Document MTASC-safety properties.
39030
39031         * manual/argp.texi: Document MTASC-safety properties.
39032
39033         * manual/macros.texi: Introduce macros to document multi
39034         thread, asynchronous signal and asynchronous cancellation
39035         safety properties.
39036         * manual/intro.texi: Introduce the properties themselves.
39037
39038 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39039
39040         * sysdeps/sh/sh4/Makefile: New file.
39041
39042 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
39043
39044         * math/gen-libm-test.pl ($srcdir): New variable.
39045         ($auto_input): Use it.
39046
39047 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
39048
39049         [BZ #16506]
39050         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
39051         access beyond array bounds when parsing netgroups file.
39052
39053         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
39054         the old buffer before realloc.
39055
39056 2014-01-27  Allan McRae  <allan@archlinux.org>
39057
39058         * po/fr.po: Update French translation from translation project.
39059
39060 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39061
39062         * sysdeps/sh/libm-test-ulps: Regenerate.
39063
39064 2014-01-24  David S. Miller  <davem@davemloft.net>
39065
39066         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
39067
39068 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39069
39070         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
39071         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
39072
39073 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
39074
39075         [BZ #16474]
39076         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
39077         string pointers after reallocation.
39078
39079 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39080
39081         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
39082         __SH4A__ instead of __SH_FPU_ANY__.
39083
39084 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39085
39086         * sysdeps/sh/fpu_control.h: New file.
39087         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
39088         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
39089         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
39090         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
39091         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
39092         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
39093         * sysdeps/sh/sys/ucontext.h: Remove.
39094         * sysdeps/sh/sys: Remove directory.
39095
39096 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39097
39098         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
39099         s390/sys/ucontext.h.
39100         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
39101         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
39102
39103 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
39104
39105         [BZ #15605]
39106         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
39107
39108 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39109
39110         [BZ#16431]
39111         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
39112         Adjust the vDSO correctly for internal calls.
39113         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
39114
39115 2014-01-20  Allan McRae  <allan@archlinux.org>
39116
39117         * po/ca.po: Update Catalan translation from translation project.
39118
39119 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
39120
39121         * sysdeps/s390/sotruss-lib.c: New file.
39122
39123 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39124
39125         [BZ#16430]
39126         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
39127         (__GI___gettimeofday): Alias for a different internal symbol to avoid
39128         local calls issues by not having a PLT stub required for IFUNC calls.
39129         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
39130
39131 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
39132
39133         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
39134         * math/test-fpucw-static.c: Likewise.
39135
39136 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39137
39138         [BZ #16453]
39139         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
39140
39141 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39142
39143         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
39144         implementation for powerpc.
39145
39146 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
39147
39148         [BZ #14782]
39149         * sysdeps/posix/system.c (__libc_system): Do not enable
39150         asynchronous cancellation.
39151
39152 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39153
39154         [BZ #16427]
39155         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
39156         handling only for numbers special also in the IEEE case.
39157
39158 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39159
39160         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
39161
39162 2014-01-11  Allan McRae  <allan@archlinux.org>
39163
39164         * po/bg.po: Update Bulgarian translation from translation project.
39165
39166         * po/de.po: Update German translation from translation project.
39167
39168 2014-01-10  Roland McGrath  <roland@hack.frob.com>
39169
39170         * sysdeps/generic/gcc-compat.h: New file.
39171
39172 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
39173
39174         * benchtests/asin-inputs: Correct slow inputs.
39175         * benchtests/acos-inputs: Likewise.
39176
39177 2014-01-10  Allan McRae  <allan@archlinux.org>
39178
39179         * po:sv.po: Update Swedish translation from translation project.
39180
39181         * po/vi.po: Update Vietnamese translation from translation project.
39182
39183         * po/eo.po: Update Esperanto translation from translation project.
39184
39185         * po/cs.po: Update Czech translation from translation project.
39186
39187         * po/nl.po: Update Dutch translation from translation project.
39188
39189         * po/pl.po: Update Polish translation from translation project.
39190
39191         * po/ru.po: Update Russian translation from translation project.
39192
39193         * po/uk.po: Update Ukrainian translation from translation project.
39194
39195 2014-01-08  Brooks Moses  <bmoses@google.com>
39196
39197         * elf/dl-load.c: Fix comment typo.
39198
39199 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
39200
39201         * po/header.pot: Rename to...
39202         * po/pot.header: ... this.
39203         * po/Makefile: Use pot.header.
39204
39205 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
39206             Maxim Kuvyrkov  <maxim@kugelworks.com>
39207
39208         [BZ #16394]
39209         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
39210         SRC and DEST against LEN.
39211
39212 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39213
39214         [BZ #16414]
39215         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
39216         implementation.
39217         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
39218
39219 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39220
39221         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39222
39223 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
39224
39225         [BZ #16408]
39226         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
39227         for large positive arguments.
39228
39229 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
39230
39231         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39232
39233         * math/auto-libm-test-in: Mark various tests with
39234         xfail-rounding:ldbl-128ibm.
39235         * math/auto-libm-test-out: Regenerated.
39236
39237         [BZ #16407]
39238         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
39239         Increase overflow threshold.
39240
39241 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
39242
39243         [BZ #14286]
39244         * stdio-common/vfprintf.c: Check for integer overflow.
39245
39246 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39247
39248         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
39249         the first argument and return value of __tls_get_addr_internal.
39250
39251 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39252
39253         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
39254         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
39255
39256 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39257
39258         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
39259         * sysdeps/s390/rtld-global-offsets.sym: New file.
39260         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
39261         GLIBC_2.19 symbol.
39262         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
39263         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
39264         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
39265         ... this.
39266         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
39267         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
39268         ... this.
39269         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39270         Regenerate.
39271         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39272         Regenerate.
39273         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
39274         halfs of GPRs for high_gprs contexts.
39275         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
39276         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
39277         field.
39278         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
39279         uc_flags field.
39280         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
39281         64 bit versions:
39282         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
39283         for high GPRs (uc_high_gprs) and for future extensions
39284         (__reserved).
39285         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
39286         for future extensions (__reserved).
39287         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
39288         64 bit versions:
39289         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
39290         SC_HIGHGPRS offset definition.
39291         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
39292         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
39293
39294         * Versions.def: Add GLIBC_2.19 for libpthread.
39295         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
39296         siglongjmp for libpthread with GLIBC_2.19 symver.
39297         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
39298         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
39299         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
39300         * sysdeps/s390/__longjmp.c: New file.
39301         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
39302         * sysdeps/s390/longjmp.c: New file.
39303         * sysdeps/s390/setjmp.S: New file.
39304         * sysdeps/s390/sigjmp.S: New file.
39305         * sysdeps/s390/v1-longjmp.c: New file.
39306         * sysdeps/s390/v1-setjmp.h: New file.
39307         * sysdeps/s390/v1-sigjmp.c: New file.
39308         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
39309         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
39310         GLIBC_2.19 version.
39311         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
39312         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
39313         versioned symbols for ____longjmp_chk.
39314         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
39315         Likewise.
39316         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39317         Regenerate.
39318         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
39319         Regenerate.
39320         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39321         Regenerate.
39322         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
39323         Regenerate.
39324         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
39325         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
39326         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
39327         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
39328         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
39329         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
39330         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
39331         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
39332         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
39333         * sysdeps/s390/rtld-__longjmp.c: New file.
39334         * sysdeps/s390/rtld-setjmp.S: New file.
39335
39336 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
39337
39338         [BZ #16400]
39339         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39340         Return -__logl (x) for small positive arguments without evaluating
39341         a polynomial.
39342
39343 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
39344
39345         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
39346         Rename to ...
39347         (__ptrace_peeksiginfo_args): ... this.
39348         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
39349         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
39350         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
39351
39352 2014-01-06  Allan McRae  <allan@archlinux.org>
39353
39354         * inet/netinet/in.h: Fix typo in comment.
39355
39356 2014-01-05  Andreas Jaeger  <aj@suse.de>
39357
39358         * sysdeps/i386/fpu/libm-test-ulps: Update.
39359
39360 2014-01-05  Allan McRae  <allan@archlinux.org>
39361
39362         * po/libc.pot: Regenerated.
39363
39364         * malloc/memusagestat.c: Fix gettext call formatting.
39365
39366 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
39367
39368         * nscd/nscd.c: Improve usage() output.
39369
39370 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
39371
39372         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
39373         * sysdeps/unix/sysv/linux/configure: Regenerated.
39374         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
39375         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
39376
39377 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39378
39379         [BZ #16390]
39380         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
39381         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
39382
39383 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39384
39385         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
39386         extra tokens at end of #undef directive.
39387         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
39388         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
39389         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
39390
39391 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39392
39393         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39394
39395         * math/auto-libm-test-in: Mark various tests with
39396         xfail-rounding:ldbl-128ibm.
39397         * math/auto-libm-test-out: Regenerated.
39398
39399 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
39400
39401         [BZ #16386]
39402         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
39403         numbers with subnormal high part when calculating exponent.
39404
39405         [BZ #16385]
39406         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
39407         fabs.
39408
39409         [BZ #16384]
39410         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
39411         M_LN2l.
39412         (__ieee754_acoshl): Use __log1pl not __log1p.
39413
39414 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
39415
39416         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
39417         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
39418         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
39419         (grow_heap, heap_trim, _int_new_arena, get_free_list)
39420         (reused_arena, arena_get2): Convert to GNU style.
39421         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
39422         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
39423         (memalign_check, __malloc_set_state): Likewise.
39424         * malloc/mallocbug.c (main): Likewise.
39425         * malloc/malloc.c (__malloc_assert, malloc_init_state)
39426         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
39427         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
39428         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
39429         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
39430         (__posix_memalign, malloc_info): Likewise.
39431         * malloc/malloc.h: Likewise.
39432         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
39433         (mallochook, memalignhook, reallochook, mabort): Likewise.
39434         * malloc/mcheck.h: Likewise.
39435         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
39436         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
39437         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
39438         * malloc/morecore.c (__default_morecore): Likewise.
39439         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
39440         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
39441         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
39442         (print_and_abort): Likewise.
39443         * malloc/obstack.h: Likewise.
39444         * malloc/set-freeres.c (__libc_freeres): Likewise.
39445         * malloc/tst-mallocstate.c (main): Likewise.
39446         * malloc/tst-mtrace.c (main): Likewise.
39447         * malloc/tst-realloc.c (do_test): Likewise.
39448
39449 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
39450
39451         [BZ #16366]
39452         * nscd/netgroupcache.c (do_notfound): New function.
39453         (addgetnetgrentX): Use it.
39454
39455         [BZ # 16365]
39456         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
39457         NSS_STATUS_NOTFOUND.
39458
39459 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
39460
39461         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
39462         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39463
39464 2014-01-01  Allan McRae  <allan@archlinux.org>
39465
39466         * scripts/update-copyrights: Update configure input file suffix.
39467
39468         * NEWS: Update copyright year.
39469         * catgets/gencat.c: Likewise.
39470         * csu/version.c: Likewise.
39471         * debug/catchsegv.sh: Likewise.
39472         * debug/pcprofiledump.c: Likewise.
39473         * debug/xtrace.sh: Likewise.
39474         * elf/ldconfig.c: Likewise.
39475         * elf/ldd.bash.in: Likewise.
39476         * elf/pldd.c: Likewise.
39477         * elf/sotruss.ksh: Likewise.
39478         * elf/sprof.c: Likewise.
39479         * iconv/iconv_prog.c: Likewise.
39480         * iconv/iconvconfig.c: Likewise.
39481         * locale/programs/locale.c: Likewise.
39482         * locale/programs/localedef.c: Likewise.
39483         * login/programs/pt_chown.c: Likewise.
39484         * malloc/memusage.sh: Likewise.
39485         * malloc/memusagestat.c: Likewise.
39486         * malloc/mtrace.pl: Likewise.
39487         * manual/libc.texinfo: Likewise.
39488         * nscd/nscd.c: Likewise.
39489         * nss/getent.c: Likewise.
39490         * nss/makedb.c: Likewise.
39491         * posix/getconf.c: Likewise.
39492         * scripts/test-installation.pl: Likewise.
39493
39494         * All files with FSF copyright notices: Update copyright dates
39495         using scripts/update-copyrights.
39496         * intl/plural.c: Regenerated.
39497         * locale/programs/charmap-kw.h: Likewise.
39498         * locale/programs/locfile-kw.h: Likewise.
39499
39500 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
39501
39502         * sysdeps/unix/sysv/linux/configure: Regenerated.
39503         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
39504         the linux/fanotify.h header.
39505         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
39506         HAVE_LINUX_FANOTIFY_H is defined.
39507
39508 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39509
39510         * benchtests/cos-inputs: New inputs.
39511         * benchtests/sin-inputs: Likewise.
39512
39513         * benchtests/atan-inputs: New inputs. Fix name of multiple
39514         precision fallback inputs.
39515
39516         * benchtests/atanh-inputs: New inputs.
39517         * benchtests/tanh-inputs: Likewise.
39518
39519         * benchtests/acosh-inputs: New inputs.
39520         * benchtests/asinh-inputs: Likewise.
39521
39522         * benchtests/cosh-inputs: New inputs.
39523         * benchtests/sinh-inputs: Likewise.
39524
39525         * benchtests/acos-inputs: Add more inputs.
39526         * benchtests/asin-inputs: Likewise.
39527
39528 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
39529
39530         [BZ #16375]
39531         * manual/arith.texi: Fix spelling.
39532         * manual/charset.texi: Likewise.
39533         * manual/errno.texi: Likewise.
39534         * manual/filesys.texi: Likewise.
39535         * manual/lang.texi: Likewise.
39536         * manual/llio.texi: Likewise.
39537         * manual/locale.texi: Likewise.
39538         * manual/message.texi: Likewise.
39539         * manual/resource.texi: Likewise.
39540         * manual/search.texi: Likewise.
39541         * manual/setjmp.texi: Likewise.
39542         * manual/stdio.texi: Likewise.
39543         * manual/string.texi: Likewise.
39544         * manual/sysinfo.texi: Likewise.
39545         * manual/time.texi: Likewise.
39546
39547 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
39548
39549         * po/sl.po: New file.
39550
39551 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
39552
39553         * .gitignore: Add core/.gdbinit/.gdb_history.
39554
39555 2013-12-27  Allan McRae  <allan@archlinux.org>
39556
39557         [BZ #16369]
39558         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
39559         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
39560
39561 2013-12-24  Brooks Moses  <bmoses@google.com>
39562
39563         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
39564         all compilers that claim C++98 compliance, not just GCC.
39565         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
39566         Likewise.
39567
39568 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39569
39570         * NEWS: Restore accidentally deleted bug-fix entries.
39571
39572 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39573             Ondřej Bílka  <neleai@seznam.cz>
39574
39575         [BZ #15073]
39576         * malloc/malloc.c (_int_free): Perform sanity check only if we
39577         have_lock.
39578
39579 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
39580
39581         [BZ #12986]
39582         * manual/stdio.texi (String Input Conversions): Clarify that character
39583         classes are not supported.
39584
39585 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39586
39587         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39588
39589 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
39590
39591         [BZ #16337]
39592         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39593         Calculate results for small negative arguments directly rather
39594         than using reflection formula with special underflow handling.
39595
39596         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
39597         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
39598         sysdeps/unix/bsd/bsd4.4/syscalls.list.
39599         (fchflags): Likewise.
39600         (revoke): Likewise.
39601         (setlogin): Likewise.
39602         (sigaltstack): Likewise.
39603         (wait4): Likewise.
39604         (sigblock): Remove.
39605         (sigsetmask): Likewise.
39606         (wait3): Likewise.
39607         (waitpid): Likewise.
39608         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
39609         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
39610         file.
39611         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
39612         * sysdeps/unix/bsd/Makefile: ... here.
39613         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
39614         * sysdeps/unix/bsd/Versions: ... here.
39615         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
39616         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
39617         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
39618         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
39619         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
39620         * sysdeps/unix/bsd/sigblock.c: ... here.
39621         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39622         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39623         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39624         * sysdeps/unix/bsd/sigvec.c: ... here.
39625         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39626         * sysdeps/unix/bsd/tcdrain.c: ... here.
39627         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39628         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39629         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39630         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39631         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39632         * sysdeps/unix/bsd/wait.c: ... here.
39633         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39634         * sysdeps/unix/bsd/wait3.c: ... here.
39635         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39636         * sysdeps/unix/bsd/waitpid.c: ... here.
39637
39638 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39639
39640         [BZ #16356]
39641         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39642         round-to-nearest for [!USE_AS_EXPM1L].
39643         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39644         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39645         more tests of exp and exp10.  Expect some exp10 tests to miss
39646         exceptions or fail in directed rounding modes.
39647         * math/auto-libm-test-out: Regenerated.
39648         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39649         (exp10_test_tonearest): New function.
39650         (exp10_towardzero_test_data): New array.
39651         (exp10_test_towardzero): New function.
39652         (exp10_downward_test_data): New array.
39653         (exp10_test_downward): New function.
39654         (exp10_upward_test_data): New array.
39655         (exp10_test_upward): New function.
39656         (main): Call the new functions.
39657         * sysdeps/i386/fpu/libm-test-ulps: Update.
39658         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39659
39660 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39661
39662         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39663         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39664         * math/auto-libm-test-out: Regenerated.
39665         * math/libm-test.inc (acosh_test_data): Add more tests.
39666         (atanh_test_data): Likewise.
39667         (ceil_test_data): Likewise.
39668         (copysign_test_data): Likewise.
39669         * sysdeps/i386/fpu/libm-test-ulps: Update.
39670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39671
39672         * timezone/checktab.awk: Update from tzcode 2013i.
39673         * timezone/private.h: Likewise.
39674         * timezone/scheck.c: Likewise.
39675         * timezone/tzfile.h: Likewise.
39676         * timezone/tzselect.ksh: Likewise.
39677         * timezone/zdump.c: Likewise.
39678         * timezone/zic.c: Likewise.
39679
39680         * math/auto-libm-test-in: Add tests of cpow.
39681         * math/auto-libm-test-out: Regenerated.
39682         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39683         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39684         mpc_cc_c.
39685         (func_calc_desc): Add mpc_cc_c union field.
39686         (test_functions): Add cpow.
39687         (special_fill_2pi): New function.
39688         (special_real_inputs): Add 2pi.
39689         (calc_generic_results): Handle mpc_cc_c.
39690         * sysdeps/i386/fpu/libm-test-ulps: Update.
39691         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39692
39693         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39694         csqrt, ctan and ctanh.
39695         * math/auto-libm-test-out: Regenerated.
39696         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39697         (TEST_COND_x86): Likewise.
39698         (ccos_test_data): Use AUTO_TESTS_c_c.
39699         (ccosh_test_data): Likewise.
39700         (cexp_test_data): Likewise.
39701         (clog_test_data): Likewise.
39702         (csqrt_test_data): Likewise.
39703         (ctan_test_data): Likewise.
39704         (ctan_tonearest_test_data): Likewise.
39705         (ctan_towardzero_test_data): Likewise.
39706         (ctan_downward_test_data): Likewise.
39707         (ctan_upward_test_data): Likewise.
39708         (ctanh_test_data): Likewise.
39709         (ctanh_tonearest_test_data): Likewise.
39710         (ctanh_towardzero_test_data): Likewise.
39711         (ctanh_downward_test_data): Likewise.
39712         (ctanh_upward_test_data): Likewise.
39713         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39714         mpc_c_c.
39715         (func_calc_desc): Add mpc_c_c union field.
39716         (FUNC_mpc_c_c): New macro.
39717         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39718         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39719         ctanh.
39720         (special_fill_min_subnorm_p120): New function.
39721         (special_real_inputs): Add min_subnorm_p120.
39722         (calc_generic_results): Handle mpc_c_c.
39723         * sysdeps/i386/fpu/libm-test-ulps: Update.
39724         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39725
39726 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39727
39728         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39729         (do_sin_slow): New functions.
39730         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39731         (cslow2, csloww1, csloww2): Use the new functions.
39732
39733         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39734         Use M to change sign of result instead of X.  Assume X is
39735         positive.
39736         (csloww1): Likewise.
39737         (__sin): Adjust.
39738         (__cos): Adjust.
39739
39740         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39741         arguments A and DA.
39742         (__sin): Adjust.
39743         (__cos): Likewise.
39744
39745         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39746         (__cos): Likewise.
39747         (sloww1): Don't adjust sign of DX.
39748         (csloww1): Likewise.
39749         (sloww2): Use X directly and don't adjust sign of DX.
39750         (csloww2): Likewise.
39751
39752 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39753
39754         * math/auto-libm-test-in: Add tests of cabs and carg.
39755         * math/auto-libm-test-out: Regenerated.
39756         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39757         (carg_test_data): Likewise.
39758         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39759         mpc_c_f.
39760         (func_calc_desc): Add mpc_c_f union field.
39761         (test_functions): Add cabs and carg.
39762         (calc_generic_results): Handle mpc_c_f.
39763
39764         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39765         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39766         as a macro and a compat symbol.
39767         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39768         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39769         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39770         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39771         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39772         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39773         not use .hidden.
39774         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39775         Likewise.
39776         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39777         Likewise.
39778         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39779         Likewise.
39780         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39781         Likewise.
39782         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39783         Likewise.
39784         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39785         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39786         from GLIBC_2.3.2.
39787
39788 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39789
39790         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39791
39792 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39793
39794         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39795         trailing whitespace removed.
39796         * scripts/config.guess: Update to version 2013-11-29.
39797         * scripts/config.sub: Update to version 2013-10-01.
39798
39799         * math/auto-libm-test-in: Add tests of sincos.
39800         * math/auto-libm-test-out: Regenerated.
39801         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39802         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39803         mpfr_f_11.
39804         (func_calc_desc): Add mpfr_f_11 union field.
39805         (test_functions): Add sincos.
39806         (calc_generic_results): Handle mpfr_f_11.
39807         * sysdeps/i386/fpu/libm-test-ulps: Update.
39808         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39809
39810 2013-12-19  Andreas Schwab  <schwab@suse.de>
39811
39812         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39813         CALL_MCOUNT.
39814         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39815         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39816         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39817
39818 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39819
39820         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39821         * sysdeps/i386/fpu/libm-test-ulps: Update.
39822         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39823
39824         [BZ #16293]
39825         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39826         round-to-nearest mode when using frndint.
39827         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39828         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39829         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39830         Likewise.
39831         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39832         sinh test to fail.
39833         * math/auto-libm-test-out: Regenerated.
39834         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39835         (TEST_COND_x86): Likewise.
39836         (expm1_tonearest_test_data): New array.
39837         (expm1_test_tonearest): New function.
39838         (expm1_towardzero_test_data): New array.
39839         (expm1_test_towardzero): New function.
39840         (expm1_downward_test_data): New array.
39841         (expm1_test_downward): New function.
39842         (expm1_upward_test_data): New array.
39843         (expm1_test_upward): New function.
39844         (main): Run the new test functions.
39845         * sysdeps/i386/fpu/libm-test-ulps: Update.
39846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39847
39848         * include/features.h: Update comment documenting feature test
39849         macros.  Mention _DEFAULT_SOURCE in comment.
39850         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39851         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39852         _BSD_SOURCE and _SVID_SOURCE.
39853         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39854         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39855         !_SVID_SOURCE]: Likewise.
39856         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39857         (__USE_POSIX_IMPLICITLY): Define.
39858         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39859         (_POSIX_SOURCE): Undefine and redefine.
39860         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39861         (_POSIX_C_SOURCE): Likewise.
39862         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39863         (Feature Test Macros): Update documentation of default features.
39864
39865 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39866
39867         * benchtests/Makefile: Add bench-strtok.
39868         * benchtests/bench-strtok.c: New file: strtok benchtest.
39869
39870 2013-12-19  Allan McRae  <allan@archlinux.org>
39871
39872         * manual/install.texi: Suppress menu for plain text output.
39873         * INSTALL: Regenerated.
39874
39875 2013-12-18  Brooks Moses  <bmoses@google.com>
39876
39877         [BZ #15846]
39878         * misc/getauxval.c: Include errno.h.
39879         (__getauxval): Set errno to ENOENT if the requested type is not
39880         found.
39881         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39882         don't declare with __attribute_const__.
39883         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39884         * manual/startup.texi: Document that getauxval sets errno.
39885
39886 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39887
39888         * math/auto-libm-test-in: Add tests of jn and yn.
39889         * math/auto-libm-test-out: Regenerated.
39890         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39891         (yn_test_data): Likewise.
39892         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39893         mpfr_if_f.
39894         (func_calc_desc): Add mpfr_if_f union field.
39895         (FUNC_mpfr_if_f): New macro.
39896         (test_functions): Add jn and yn.
39897         (calc_generic_results): Assert type of second input for
39898         mpfr_ff_f.  Handle mpfr_if_f.
39899         (output_for_one_input_case): Disable all checking for arguments
39900         fitting floating-point types in case of an integer argument.
39901         * sysdeps/i386/fpu/libm-test-ulps: Update.
39902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39903
39904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39905         Don't expect fegetround reference in libm.so.
39906
39907 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39908
39909         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39910         $(config-cflags-nofma).
39911
39912 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39913
39914         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39915         * math/auto-libm-test-out: Regenerated.
39916
39917         [BZ #16338]
39918         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39919         to determine exponent and adjust argument to have exponent of -1.
39920         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39921         log2.
39922         * math/auto-libm-test-out: Regenerated.
39923         * sysdeps/i386/fpu/libm-test-ulps: Update.
39924         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39925
39926 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39927
39928         * manual/probes.texi: Remove cases when per-thread arenas are
39929         disabled.
39930
39931 2013-12-18  Andreas Schwab  <schwab@suse.de>
39932
39933         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39934         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39935         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39936         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39937         * sysdeps/i386/i686/multiarch/Makefile: Update.
39938         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39939
39940 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39941
39942         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39943         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39944
39945 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39946
39947         [BZ #15968]
39948         Support TZ transition times < 00:00:00.
39949         This is needed for version-3 tz-format files; it supports time
39950         stamps past 2037 for America/Godthab (the only entry in the tz
39951         database for which this change is relevant).
39952         * manual/time.texi (TZ Variable): Document transition times
39953         from -167:59:59 through -00:00:01.
39954         * time/tzset.c (tz_rule): Time of day is now signed.
39955         (__tzset_parse_tz): Parse negative time of day.
39956
39957         Document TZ transition times >= 25:00:00.
39958         * manual/time.texi (TZ Variable): Document transition times from
39959         25:00:00 through 167:59:59.  These are already supported, and this
39960         support will help with version-3 tz-format files.
39961
39962         * manual/time.texi (TZ Variable): Modernize North America example
39963         to reflect current (i.e., 2007-and-later) daylight saving rules.
39964
39965         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39966
39967 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39968
39969         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39970         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39971         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39972         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39973         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39974         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39975         * sysdeps/unix/bsd/clock.c: Likewise.
39976         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39977         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39978         * sysdeps/unix/bsd/init-posix.c: Likewise.
39979         * sysdeps/unix/bsd/poll.c: Likewise.
39980         * sysdeps/unix/bsd/ptsname.c: Likewise.
39981         * sysdeps/unix/bsd/seekdir.c: Likewise.
39982         * sysdeps/unix/bsd/setegid.c: Likewise.
39983         * sysdeps/unix/bsd/seteuid.c: Likewise.
39984         * sysdeps/unix/bsd/setgid.c: Likewise.
39985         * sysdeps/unix/bsd/setrgid.c: Likewise.
39986         * sysdeps/unix/bsd/setruid.c: Likewise.
39987         * sysdeps/unix/bsd/setsid.c: Likewise.
39988         * sysdeps/unix/bsd/setuid.c: Likewise.
39989         * sysdeps/unix/bsd/sigaction.c: Likewise.
39990         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39991         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39992         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39993         * sysdeps/unix/bsd/telldir.c: Likewise.
39994         * sysdeps/unix/bsd/times.c: Likewise.
39995         * sysdeps/unix/bsd/usleep.c: Likewise.
39996
39997         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39998         ($(objpfx)libbsd-compat.a): Remove rule.
39999
40000         * include/features.h (__FAVOR_BSD): Do not define.
40001         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
40002         features conflicting with POSIX.
40003         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
40004         (_BSD_SOURCE): Remove description of not being a subset of other
40005         feature test macros.
40006         * manual/job.texi (getpgrp): Do not document BSD version.
40007         (getpgid): Do not document by reference to BSD getpgrp.
40008         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
40009         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
40010         * signal/signal.h [__FAVOR_BSD]: Likewise.
40011         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
40012         instead of making contents conditional on [__FAVOR_BSD].
40013         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
40014
40015 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40016
40017         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40018
40019 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
40020
40021         [BZ #16314]
40022         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
40023         values below 2**-450, not 2**-500.
40024         * math/auto-libm-test-in: Don't allow spurious underflow from
40025         hypot.
40026         * math/auto-libm-test-out: Regenerated.
40027
40028         [BZ #16316]
40029         [BZ #16330]
40030         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
40031         values of ha and hb and sort them after adjusting subnormal
40032         arguments.
40033         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
40034         Likewise.
40035         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
40036         values of ea and eb and sort them after adjusting subnormal
40037         arguments.
40038         * math/auto-libm-test-in: Do not expect some hypot tests of
40039         subnormals to fail.  Add more hypot tests.
40040         * math/auto-libm-test-out: Regenerated.
40041
40042 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40043
40044         [BZ #13304]
40045         * sysdeps/sh/s_fma.c: New file.
40046         * sysdeps/sh/s_fmaf.c: New file.
40047         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
40048         version.
40049         * sysdeps/sh/Implies: Add sh/soft-fp.
40050
40051 2013-12-16  Roland McGrath  <roland@hack.frob.com>
40052
40053         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
40054         level of indirection to members `objname', `errstring', `malloced'.
40055         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
40056         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
40057         it as the __longjmp argument (just pass 1 instead).
40058         (_dl_catch_error): Initialize C with argument pointers and address of
40059         volatile local ERRCODE rather than copying values out of C at return.
40060
40061 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
40062
40063         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
40064         * math/auto-libm-test-out: Regenerated.
40065         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
40066         (hypot_test_data): Likewise.
40067         (pow_test_data): Likewise.
40068         (pow_tonearest_test_data): Likewise.
40069         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40070         mpfr_ff_f.
40071         (func_calc_desc): Add mpfr_ff_f union field.
40072         (FUNC_mpfr_ff_f): New macro.
40073         (test_functions): Add atan2, hypot and pow.
40074         (special_fill_min): New function.
40075         (special_fill_minus_min): Likewise.
40076         (special_fill_min_subnorm): Likewise.
40077         (special_fill_minus_min_subnorm): Likewise.
40078         (special_real_inputs): Add min, -min, min_subnorm and
40079         -min_subnorm.
40080         (calc_generic_results): Handle mpfr_ff_f.
40081         * sysdeps/i386/fpu/libm-test-ulps: Update.
40082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40083
40084 2013-12-16  Will Newton  <will.newton@linaro.org>
40085
40086         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
40087         (Aligned Memory Blocks): Add documentation for aligned_alloc
40088         and suggest it as an alternative to posix_memalign.
40089         (Hooks for Malloc): Document __memalign_hook is also called
40090         for aligned_alloc.  (Summary of Malloc): Add summary for
40091         aligned alloc.  Document __memalign_hook is also called
40092         for aligned_alloc.
40093
40094 2013-12-16  Will Newton  <will.newton@linaro.org>
40095
40096         * manual/memory.texi (Malloc Examples): Clarify default
40097         alignment documentation.  Suggest posix_memalign rather
40098         than memalign or valloc.
40099         (Aligned Memory Blocks): Remove suggestion to use memalign
40100         or valloc.  Remove obsolete comment about BSD.
40101         Document memalign errno values and mark the function obsolete.
40102         Document posix_memalign returned error codes.  Mark valloc
40103         as obsolete.  (Hooks for Malloc): __memalign_hook is also
40104         called for posix_memalign and valloc.
40105         (Summary of Malloc): Add posix_memalign to function summary.
40106         __memalign_hook is also called for posix_memalign and valloc.
40107
40108 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40109
40110         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
40111         TAYLOR_SIN.
40112         (__sin): Adjust.
40113         (__cos): Likewise.
40114         (sloww): Use mynumber union.  Expand ternary operator into
40115         if-else statements.
40116         (cslow): use mynumber union.
40117
40118 2013-12-16  Allan McRae  <allan@archlinux.org>
40119
40120         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
40121         * configure: Regenerated.
40122
40123         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
40124
40125         [BZ #14120]
40126         * configure.ac: Added --enable-maintainer-mode. Check for
40127         autoconf when enabled.
40128         * configure: Regenerated.
40129
40130         * nscd/nscd.service: New file.
40131         * nscd/nscd.tmpfiles: New file.
40132
40133 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
40134
40135         [BZ #12100]
40136         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
40137         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
40138         * sysdeps/x86_64/multiarch/strstr.c: ... here.
40139         (strstr): Add __strstr_sse2_unaligned ifunc.
40140         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
40141         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
40142         (strcasestr): Remove __strcasestr_sse42 ifunc.
40143         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
40144         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
40145         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
40146
40147 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40148
40149         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
40150         * sysdeps/sh/bits/fenv.h: ... here.
40151         * sysdeps/sh/sh4/fpu/bits: Remove directory.
40152
40153 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40154
40155         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
40156
40157         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
40158         hypotf multiarch implementations.
40159         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
40160         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
40161         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
40162         multiarch hypot for PPC64.
40163         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
40164         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
40165         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
40166         multiarch hypotf for PPC64.
40167
40168         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
40169         modff multiarch implementations.
40170         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
40171         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
40172         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
40173         multiarch modf for PPC64.
40174         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
40175         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
40176         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
40177         multiarch modff for PPC64.
40178
40179         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
40180         and logl multiarch implementations.
40181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
40182         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
40183         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
40184         multiarch logb for PPC64.
40185         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
40186         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
40187         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
40188         multiarch logb for PPC64.
40189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
40190         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
40191         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
40192         multiarch logb for PPC64.
40193
40194         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
40195         isinff multiarch implementation.
40196         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
40197         file.
40198         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
40199         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
40200         multiarch isinf for PPC64.
40201         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
40202         file.
40203         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
40204         multiarch isinff for PPC64.
40205
40206         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
40207         finitef multiarch implementation.
40208         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
40209         file.
40210         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
40211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
40212         multiarch finite for PPC64.
40213         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
40214         file.
40215         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
40216         multiarch finitef for PPC64.
40217
40218         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
40219         lrint multiarch implementation.
40220         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
40221         file.
40222         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
40223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
40224         multiarch llrint for PPC64.
40225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
40226         multiarch lrint for PPC64.
40227
40228         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
40229         copysignf multiarch implementation.
40230         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
40231         file.
40232         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
40233         file.
40234         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
40235         multiarch copysign for PPC64.
40236         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
40237         multiarch copysignf for PPC64.
40238
40239         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
40240         multiarch implementation.
40241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
40242         file.
40243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
40244         file.
40245         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
40246         file.
40247         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
40248         file.
40249         multiarch llround for PPC64.
40250         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
40251         multiarch trunc for PPC64.
40252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
40253         multiarch truncf for PPC64.
40254
40255         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
40256         multiarch implementation.
40257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
40258         file.
40259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
40260         file.
40261         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
40262         file.
40263         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
40264         file.
40265         multiarch llround for PPC64.
40266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
40267         multiarch round for PPC64.
40268         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
40269         multiarch roundf for PPC64.
40270
40271         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
40272         multiarch implementation.
40273         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
40274         file.
40275         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
40276         file.
40277         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
40278         file.
40279         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
40280         file.
40281         multiarch llround for PPC64.
40282         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
40283         multiarch floor for PPC64.
40284         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
40285         multiarch floorf for PPC64.
40286
40287         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
40288         multiarch implementation.
40289         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
40290         file.
40291         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
40292         file.
40293         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
40294         file.
40295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
40296         file.
40297         multiarch llround for PPC64.
40298         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
40299         multiarch ceil for PPC64.
40300         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
40301         multiarch ceilf for PPC64.
40302
40303         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
40304         multiarch implementation.
40305         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
40306         file.
40307         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
40308         file.
40309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
40310         file.
40311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
40312         multiarch llround for PPC64.
40313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
40314         multiarch lround for PPC64.
40315
40316         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
40317         multiarch implementation.
40318         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
40319         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
40320         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
40321         file.
40322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
40323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
40324         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
40325         multiarch isnan for PPC64.
40326         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
40327         multiarch isnanf for PPC64.
40328
40329         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
40330         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
40331         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
40332         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
40333         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
40334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
40335
40336         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
40337         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
40338         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
40339         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
40340
40341         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
40342         multiarch implementations.
40343         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40344         (__libc_ifunc_impl_list): Likewise.
40345         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
40346         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
40347         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
40348         multiarch stpcpy for PPC64.
40349
40350         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
40351         multiarch implementations.
40352         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40353         (__libc_ifunc_impl_list): Likewise.
40354         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
40355         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
40356         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
40357         multiarch strcpy for PPC64.
40358
40359         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
40360         redefine function name.
40361         (_wordcopy_fwd_dest_aligned): Likewise.
40362         (_wordcopy_bwd_aligned): Likewise.
40363         (_wordcopy_bwd_dest_aligned): Likewise.
40364         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
40365         multiarch implementations.
40366         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40367         (__libc_ifunc_impl_list): Likewise.
40368         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
40369         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
40370         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
40371         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
40372         multiarch wcscpy for PPC64.
40373
40374         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
40375         multiarch implementations.
40376         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40377         (__libc_ifunc_impl_list): Likewise.
40378         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
40379         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
40380         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
40381         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
40382         multiarch wcscpy for PPC64.
40383
40384         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
40385         multiarch implementations.
40386         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40387         (__libc_ifunc_impl_list): Likewise.
40388         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
40389         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
40390         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
40391         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
40392         multiarch wcsrchr for PPC64.
40393
40394         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
40395         multiarch implementations.
40396         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40397         (__libc_ifunc_impl_list): Likewise.
40398         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
40399         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
40400         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
40401         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
40402         multiarch wcschr for PPC64.
40403
40404         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
40405         multiarch implementations.
40406         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40407         (__libc_ifunc_impl_list): Likewise.
40408         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
40409         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
40410         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
40411         multiarch strchrnul for PPC64.
40412
40413         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
40414         implementations.
40415         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40416         (__libc_ifunc_impl_list): Likewise.
40417         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
40418         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
40419         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
40420         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
40421         strchr for PPC64.
40422
40423         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
40424         implementations.
40425         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40426         (__libc_ifunc_impl_list): Likewise.
40427         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
40428         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
40429         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
40430         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
40431         strncmp for PPC64.
40432
40433         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
40434         multiarch implementations.
40435         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40436         (__libc_ifunc_impl_list): Likewise.
40437         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
40438         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
40439         strncasecmp for PPC64.
40440         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
40441         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
40442         multiarch strncasecmp_l for PPC64.
40443
40444         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
40445         multiarch implementations.
40446         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40447         (__libc_ifunc_impl_list): Likewise.
40448         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
40449         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
40450         multiarch strcasecmp for PPC64.
40451         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
40452         file.
40453         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
40454         multiarch strcasecmp_l for PPC64.
40455
40456         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
40457         implementations.
40458         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40459         (__libc_ifunc_impl_list): Likewise.
40460         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
40461         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
40462         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
40463         strnlen for PPC64.
40464
40465         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
40466         implementations.
40467         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40468         (__libc_ifunc_impl_list): Likewise.
40469         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
40470         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
40471         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
40472         strlen for PPC64.
40473
40474         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
40475         implementations.
40476         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40477         (__libc_ifunc_impl_list): Likewise.
40478         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
40479         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
40480         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
40481         rawmemrchr for PPC64.
40482
40483         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
40484         implementation.
40485         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40486         (__libc_ifunc_impl_list): Likewise.
40487         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
40488         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
40489         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
40490         memrchr for PPC64.
40491
40492         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
40493         implementation.
40494         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40495         (__libc_ifunc_impl_list): Likewise.
40496         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
40497         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
40498         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
40499         memchr for PPC64.
40500
40501         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
40502         implementation.
40503         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40504         (__libc_ifunc_impl_list): Likewise.
40505         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
40506         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
40507         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
40508         mempcpy for PPC64.
40509
40510         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
40511         avoid cretion of __bzero symbol.
40512         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
40513         Likewise.
40514         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
40515         Likewise.
40516         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
40517         Likewise.
40518         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
40519         multiarch implementations.
40520         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40521         (__libc_ifunc_impl_list): Likewise.
40522         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
40523         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
40524         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
40525         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
40526         bzero for PPC32.
40527         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
40528         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
40529         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
40530         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
40531         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
40532         memset for PPC64.
40533         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
40534
40535         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
40536         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
40537         implementations.
40538         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40539         (__libc_ifunc_impl_list): Likewise.
40540         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
40541         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
40542         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
40543         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
40544         memcmp for PPC64.
40545
40546         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
40547         multiarch for POWER/PPC64.
40548         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
40549         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
40550         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
40551         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
40552         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
40553         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
40554         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
40555         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
40556         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
40557         memcpy for PPC64.
40558
40559         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
40560         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
40561         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
40562         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
40563         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
40564         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
40565         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
40566         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
40567         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
40568         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
40569         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
40570         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
40571         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
40572         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
40573         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
40574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
40575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
40576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
40577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
40578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
40579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
40580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
40581
40582 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40583
40584         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
40585
40586 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40587
40588         * benchtests/Makefile (bench): Add exp2 and log2.
40589         (LDLIBS-bench-exp2): Add -lm.
40590         (LDLIBS-bench-log2): Likewise.
40591         * benchtests/exp2-inputs: New inputs file.
40592         * benchtests/log2-inputs: New inputs file.
40593         * benchtests/log-inputs: Add new inputs.
40594         * benchtests/tan-inputs: Likewise.
40595
40596 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
40597
40598         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
40599         definition...
40600         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
40601         (csloww2): ... from here.
40602
40603         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
40604         instead of structures.
40605         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
40606         (POLYNOMIAL): Likewise.
40607         (TAYLOR_SLOW): Likewise.
40608         (__sin): Likewise.
40609         (__cos): Likewise.
40610         (slow1): Likewise.
40611         (slow2): Likewise.
40612         (sloww): Likewise.
40613         (sloww1); Likewise.
40614         (sloww2): Likewise.
40615         (bsloww1): Likewise.
40616         (bsloww2): Likewise.
40617         (cslow2): Likewise.
40618         (csloww): Likewise.
40619         (csloww1): Likewise.
40620         (csloww2): Likewise.
40621
40622 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40623
40624         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40625         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40626         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40627         * malloc/hooks.c (realloc_check): Likewise.
40628
40629         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40630         * malloc/arena.c: Remove PER_THREAD conditional.
40631         [!PER_THREAD]: Remove code.
40632         (ptmalloc_unlock_all2): Likewise.
40633         (ptmalloc_init): Likewise.
40634         (_int_new_arena): Likewise.
40635         (arena_get2): Likewise.
40636         * malloc/hooks.c (__malloc_get_state): Likewise.
40637         (__malloc_set_state): Likewise.
40638         * malloc/malloc.c: Likewise.
40639         (struct malloc_state): Likewise.
40640         (struct malloc_par): Likewise.
40641         (__libc_realloc): Likewise.
40642         (__libc_mallopt): Likewise.
40643
40644 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40645
40646         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40647
40648 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40649
40650         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40651         macro to a function.  Check for zero perturb_byte.
40652         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40653
40654         * malloc/malloc.c: (force_reg): Remove.
40655         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40656         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40657         force_reg by atomic_forced_read.
40658         * malloc/arena.c (ptmalloc_init): Likewise.
40659         * malloc/hooks.c (top_check): Likewise.
40660
40661 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40662
40663         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40664
40665 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40666
40667         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40668
40669 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40670
40671         * math/auto-libm-test-in: Add tests of lgamma.
40672         * math/auto-libm-test-out: Regenerated.
40673         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40674         (M_LOG_2_SQRT_PIl): Likewise.
40675         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40676         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40677         mpfr_f_f1.
40678         (func_calc_desc): Add mpfr_f_f1 union field.
40679         (ARGS1): New macro.
40680         (ARGS2): Likewise.
40681         (ARGS3): Likewise.
40682         (ARGS4): Likewise.
40683         (RET1): Likewise.
40684         (RET2): Likewise.
40685         (CALC): Likewise.
40686         (FUNC): Likewise.
40687         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40688         (test_functions): Add lgamma.
40689         (calc_generic_results): Handle mpfr_f_f1.
40690         * sysdeps/i386/fpu/libm-test-ulps: Update.
40691         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40692
40693 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40694
40695         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40696         __mpn_add_n for PowerPC64/POWER7.
40697         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40698         __mpn_sub_n for PowerPC64/POWER7.
40699
40700         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40701         __mpn_addmul_1 for PowerPC64.
40702         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40703         __mpn_submul_1 for PowerPC64.
40704         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40705         for PowerPC64.
40706         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40707         for PowerPC64.
40708
40709 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40710
40711         [BZ #15089]
40712         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40713
40714 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40715
40716         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40717
40718         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40719         add multiarch folders.
40720         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40721         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40722         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40723         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40724         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40725         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40726         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40727         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40728         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40729         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40730         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40737
40738         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40739         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40740         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40741         New file.
40742         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40743         New file.
40744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40745         multiarch __ieee754_hypot for PowerPC32.
40746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40747         New file.
40748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40749         New file.
40750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40751         multiarch __ieee754_hypotf for PowerPC32.
40752
40753         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40754         long_double_symbol only if __logbl is defined.
40755         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40756         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40757         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40758         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40759         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40760         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40761         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40762         path for implementation.
40763         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40764         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40766         logb, and logbl multiarch implementations for PowerPC32.
40767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40768         file.
40769         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40770         file.
40771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40772         multiarch logb for PowerPC32.
40773         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40774         file.
40775         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40776         file.
40777         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40778         multiarch logbf for PowerPC32.
40779         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40781         file.
40782         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40783         multiarch logbl implementation for PowerPC32.
40784
40785         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40786         and modff multiarch implementations.
40787         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40788         New file.
40789         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40790         New file.
40791         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40792         multiarch modf for PowerPC32.
40793         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40794         New file.
40795         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40796         New file.
40797         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40798         multiarch modff for PowerPC32.
40799
40800         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40801         and lrintf multiarch implementations.
40802         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40803         New file.
40804         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40805         New file.
40806         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40807         multiarch lrint for PowerPC32.
40808         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40809         file: multiarch lrintf for PowerPC32.
40810
40811         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40812         and lroundf multiarch implementations.
40813         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40814         New file.
40815         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40816         New file.
40817         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40818         New file.
40819         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40820         multiarch lround for PowerPC32.
40821         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40822         file: multiarch lroundf for PowerPC32.
40823
40824         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40825         copysign and copysignf multiarch implementations.
40826         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40827         New file.
40828         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40829         New file.
40830         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40831         file: multiarch copysign for PowerPC32.
40832         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40833         file: multiarch copysignf for PowerPC32.
40834
40835         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40836         and truncf multiarch implementations.
40837         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40838         New file.
40839         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40840         file.
40841         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40842         multiarch trunc for PowerPC32.
40843         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40844         New file.
40845         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40846         New file.
40847         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40848         multiarch truncf for PowerPC32.
40849
40850         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40851         and roundf multiarch implementations.
40852         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40853         New file.
40854         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40855         file.
40856         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40857         multiarch round for PowerPC32.
40858         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40859         New file.
40860         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40861         New file.
40862         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40863         multiarch roundf for PowerPC32.
40864
40865         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40866         and floorf multiarch implementations.
40867         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40868         New file.
40869         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40870         file.
40871         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40872         multiarch floor for PowerPC32.
40873         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40874         New file.
40875         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40876         New file.
40877         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40878         multiarch floorf for PowerPC32.
40879
40880         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40881         and ceilf multiarch implementations.
40882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40883         New file.
40884         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40885         file.
40886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40887         multiarch ceil for PowerPC32.
40888         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40889         New file.
40890         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40891         file.
40892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40893         multiarch ceilf for PowerPC32.
40894
40895         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40896         is defined.
40897         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40898         FINITEF is defined.
40899         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40900         and finitef multiarch implementations.
40901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40902         New file.
40903         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40904         file.
40905         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40906         multiarch finite for PowerPC32.
40907         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40908         New file.
40909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40910         file: multiarch finitef for PowerPC32.
40911
40912         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40913         and isinff multiarch implementations.
40914         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40915         file.
40916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40917         file.
40918         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40919         multiarch isinf for PowerPC32.
40920         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40921         New file.
40922         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40923         multiarch isinff for PowerPC32.
40924
40925         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40926         alias when __isnan is defined.
40927         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40928         and isnanf multiarch implementations.
40929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40930         file.
40931         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40932         file.
40933         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40934         file.
40935         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40936         file.
40937         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40938         multiarch isnan for PowerPC32.
40939         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40940         New file.
40941         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40942         New file.
40943         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40944         multiarch isnanf for PowerPC32.
40945
40946         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40947         and sqrtf multiarch implementations.
40948         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40949         file.
40950         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40951         file.
40952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40953         multiarch sqrt for PowerPC32.
40954         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40955         file.
40956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40957         file.
40958         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40959         multiarch sqrtf for PowerPC32.
40960
40961         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40962         and llroundf multiarch implementations.
40963         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40964         New file.
40965         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40966         New file.
40967         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40968         New file.
40969         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40970         file: multiarch llround for PowerPC32.
40971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40972         file: multiarch llroundf for PowerPC32.
40973
40974         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40975         multiarch PowerPC32 fpu implementations.
40976         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40977         New file.
40978         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40979         New file.
40980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40981         multiarch llrint for PowerPC32.
40982         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40983         New file.
40984         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40985         New file.
40986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40987         file.
40988
40989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40990
40991         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40992         file.
40993         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40994         file.
40995         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40996         file.
40997         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40998         multiarch wordcopy for PPC32.
40999         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
41000         wordcopy objects.
41001         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41002         (__libc_ifunc_impl_list): Likewise.
41003         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
41004         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
41005         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
41006         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
41007         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
41008         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
41009
41010         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
41011         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
41012         file.
41013         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
41014         file.
41015         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
41016         file.
41017         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
41018         multiarch wcscpy for PPC32.
41019         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
41020         multiarch objects.
41021         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41022         (__libc_ifunc_impl_list): Likewise.
41023         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
41024         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
41025         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
41026         sysdeps/powerpc/power6/wcscpy.c.
41027
41028         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
41029         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
41030         file.
41031         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
41032         file.
41033         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
41034         file.
41035         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
41036         multiarch wcsrchr for PPC32.
41037         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
41038         multiarch objects.
41039         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41040         (__libc_ifunc_impl_list): Likewise.
41041         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
41042         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
41043         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
41044         sysdeps/powerpc/power6/wcsrchr.c.
41045
41046         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
41047         file.
41048         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
41049         file.
41050         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
41051         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
41052         multiarch wcschr for PPc32.
41053         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
41054         multiarch objects.
41055         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41056         (__libc_ifunc_impl_list): Likewise.
41057         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
41058         * sysdeps/powerpc/power6/wcschr.c: ... to here.
41059         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
41060         sysdeps/powerpc/power6/wcschr.c.
41061
41062         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
41063         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
41064         file.
41065         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
41066         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
41067         file: multiarch strchr for PPC32.
41068         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
41069         multiarch objects.
41070         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41071         (__libc_ifunc_impl_list): Likewise.
41072
41073         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
41074         name.
41075         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
41076         file.
41077         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
41078         file.
41079         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
41080         multiarch strchrnul for PPC32.
41081         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
41082         multiarch objects.
41083         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41084         (__libc_ifunc_impl_list): Likewise.
41085
41086         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
41087         file.
41088         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
41089         multiarch strncasecmp for PPC32.
41090         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
41091         file.
41092         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
41093         multiarch strncasecmp_l for PPC32.
41094         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
41095         strncasecmp multiarch objects.
41096         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41097         (__libc_ifunc_impl_list): Likewise.
41098
41099         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
41100         file.
41101         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
41102         multiarch strncasecmp for PPC32.
41103         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
41104         New file.
41105         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
41106         multiarch strcasecmp_l for PPC32.
41107         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
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/strncmp-power7.S: New
41113         file.
41114         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
41115         file.
41116         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
41117         multiarch strncmp for PPC32.
41118         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
41119         multiarch objects.
41120         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41121         (__libc_ifunc_impl_list): Likewise.
41122
41123         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
41124         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
41125         file.
41126         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
41127         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
41128         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
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/strlen-power7.S: New
41134         file.
41135         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
41136         file.
41137         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
41138         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
41139         multiarch objects.
41140         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41141         (__libc_ifunc_impl_list): Likewise.
41142
41143         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
41144         file.
41145         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
41146         file.
41147         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
41148         multiarch rawmemchr for PPC32.
41149         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
41150         multiarch objects.
41151         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41152         (__libc_ifunc_impl_list): Likewise.
41153
41154         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
41155         file.
41156         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
41157         file.
41158         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
41159         file: memrchr multiarch for PPC32.
41160         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
41161         multiarch objects.
41162         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41163         (__libc_ifunc_impl_list): Likewise.
41164
41165         * string/memchr.c (__memchr): Using macro to redefine symbol name.
41166         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
41167         file.
41168         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
41169         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
41170         multiarch memchr for PPC32.
41171         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
41172         multiarch objects.
41173         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41174         (__libc_ifunc_impl_list): Likewise.
41175
41176         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
41177         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
41178         file.
41179         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
41180         file.
41181         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
41182         file: multiarch mempcpy for PPC32.
41183         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
41184         multiarch objects.
41185         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41186         (__libc_ifunc_impl_list): Likewise.
41187
41188         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
41189         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
41190         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
41191         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
41192         multiarch bzero for PPC32.
41193         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
41194         file.
41195         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
41196         file.
41197         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
41198         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
41199         file: multiarch memset for PPC32.
41200         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
41201         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
41202         memset multiarch objects.
41203         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41204         (__libc_ifunc_impl_list): Likewise.
41205
41206         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
41207         file.
41208         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
41209         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
41210         memcmp for PPC32.
41211         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
41212         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
41213         multiarch objects.
41214         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41215         (__libc_ifunc_impl_list): Likewise.
41216
41217         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
41218         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
41219         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
41220         file.
41221         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
41222         file.
41223         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
41224         file.
41225         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
41226         multiarch memcpy for PPC32.
41227         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
41228         multiarch objects.
41229         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41230         (__libc_ifunc_impl_list): Likewise.
41231
41232         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
41233         support multiarch for POWER/PPC32.
41234         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
41235         Likewise.
41236         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
41237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
41238         Implies file to make multiarch folder appers before the fpu and
41239         default folder for power4 configuration.
41240
41241 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
41242
41243         * scripts/bench.pl: Append volatile keyword to type.
41244
41245 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41246
41247         * sysdeps/sh/sotruss-lib.c: New file.
41248         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
41249
41250 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41251
41252         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41253
41254 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
41255
41256         [BZ #6810]
41257         * math/w_tgamma.c: Include <errno.h>.
41258         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
41259         * math/w_tgammaf.c: Include <errno.h>.
41260         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
41261         * math/w_tgammal.c: Include <errno.h>.
41262         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
41263         * math/auto-libm-test-in: Do not allow missing errno on tgamma
41264         underflow.  Add more tgamma tests.
41265         * math/auto-libm-test-out: Regenerated.
41266         * sysdeps/i386/fpu/libm-test-ulps: Update.
41267         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41268
41269         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
41270         sin, sinh, tan, tanh, tgamma, y0 and y1.
41271         * math/auto-libm-test-out: Regenerated.
41272         * math/libm-test.inc (TEST_COND_x86_64): New macro.
41273         (TEST_COND_x86): Likewise.
41274         (M_E2l): Remove macro.
41275         (M_E3l): Likewise.
41276         (M_2_SQRT_PIl): Likewise.
41277         (M_SQRT_PIl): Likewise.
41278         (M_1_DIV_El): Likewise.
41279         (log_test_data): Use AUTO_TESTS_f_f.
41280         (log10_test_data): Likewise.
41281         (log1p_test_data): Likewise.
41282         (log2_test_data): Likewise.
41283         (sin_test_data): Likewise.
41284         (sin_tonearest_test_data): Likewise.
41285         (sin_towardzero_test_data): Likewise.
41286         (sin_downward_test_data): Likewise.
41287         (sin_upward_test_data): Likewise.
41288         (sinh_test_data): Likewise.
41289         (sinh_tonearest_test_data): Likewise.
41290         (sinh_towardzero_test_data): Likewise.
41291         (sinh_downward_test_data): Likewise.
41292         (sinh_upward_test_data): Likewise.
41293         (tan_test_data): Likewise.
41294         (tan_tonearest_test_data): Likewise.
41295         (tan_towardzero_test_data): Likewise.
41296         (tan_downward_test_data): Likewise.
41297         (tan_upward_test_data): Likewise.
41298         (tanh_test_data): Likewise.
41299         (tgamma_test_data): Likewise.
41300         (y0_test_data): Likewise.
41301         (y1_test_data): Likewise.
41302         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
41303         (special_real_inputs): Add pi/4.
41304         * sysdeps/i386/fpu/libm-test-ulps: Update.
41305         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41306
41307 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41308
41309         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
41310         "longjmp_target" static probes.
41311         (__longjmp): Rename to __longjmp_symbol.
41312         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
41313         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
41314         on which longjmp to generate.
41315         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
41316         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
41317         probe.
41318         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41319         (__sigjmp_save): Rename to __sigjmp_save_symbol.
41320         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
41321         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
41322         and __sigjmp_save_symbol based on which sigsetjmp to generated.
41323         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
41324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
41325         __longjmp_symbol based on which __longjmp to generate.
41326         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
41327         probe.
41328         (setjmp): Rename to setjmp_symbol.
41329         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41330         (_setjmp): Rename to _setjmp_symbol.
41331         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41332         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
41333         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
41334         which setjmp to generate.
41335         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
41336         "longjmp_target" static probes.
41337
41338 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
41339
41340         * benchtests/README: Add note about output arguments.
41341         * benchtests/bench-sincos.c: Remove file.
41342         * benchtests/sincos-inputs: New file.
41343         * scripts/bench.pl: Identify output arguments and define
41344         static variables for them.
41345
41346         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
41347
41348         [BZ #15941]
41349         * Makefile (INSTALL): Add install-plain.texi as the primary
41350         dependency.
41351         * manual/install-plain.texi: New file.
41352         * manual/install.texi: Include node directive only for
41353         non-plaintext output.
41354
41355 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
41356
41357         * stdlib/longlong.h: Update from GCC.
41358
41359         [BZ #6807]
41360         [BZ #15901]
41361         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
41362         * math/w_j0f.c (y0f): Likewise.
41363         * math/w_j0l.c (__y0l): Likewise.
41364         * math/w_j1.c (y1): Likewise.
41365         * math/w_j1f.c (y1f): Likewise.
41366         * math/w_j1l.c (__y1l): Likewise.
41367         * math/w_jn.c (yn): Likewise.
41368         * math/w_jnf.c (ynf): Likewise.
41369         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
41370         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
41371         value for Bessel function domain errors outside _SVID_ mode.
41372         Adjust sign of return value for yn (negative integer, 0).
41373         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
41374         by zero in return for negative x and set sign appropriately for
41375         negative n.
41376         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
41377         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
41378         * math/libm-test.inc (y0_test_data): Add more tests and adjust
41379         expectations in error cases.
41380         (y1_test_data): Likewise.
41381         (yn_test_data): Likewise.
41382         * sysdeps/i386/fpu/libm-test-ulps: Update.
41383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41384
41385 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41386
41387         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
41388         "64" to "64-v1".  Add "64-v2".
41389         (abi-64-options): Rename to ...
41390         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
41391         (abi-64-condition): Rename to ...
41392         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
41393         (abi-64-ld-soname): Rename to ...
41394         (abi-64-v1-ld-soname): ... this.
41395         (abi-64-v2-options): Define.
41396         (abi-64-v2-condition): Likewise.
41397         (abi-64-v2-ld-soname): Likewise.
41398         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
41399         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
41400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
41401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
41402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
41403
41404 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41405             Alan Modra  <amodra@gmail.com>
41406
41407         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
41408         New versions for use with the ELFv2 ABI.
41409         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
41410         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
41411         declaration.
41412         (struct La_ppc64v2_retval): Likewise.
41413         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
41414         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
41415         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
41416         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
41417         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
41418         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
41419         Do not save or restore CR.
41420         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
41421         (_dl_profile_resolve): Do no save or restore CR.  Support extended
41422         return values for ELFv2 ABI.  Fix location of FPR return registers.
41423         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
41424         updated values for _CALL_ELF == 2.
41425         (La_regs, La_retval, int_retval): Likewise.
41426
41427 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41428
41429         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
41430         (FRAME_MIN_SIZE_PARM): Likewise.
41431         (FRAME_BACKCHAIN): Likewise.
41432         (FRAME_CR_SAVE): Likewise.
41433         (FRAME_LR_SAVE): Likewise.
41434         (FRAME_TOC_SAVE): Likewise.
41435         (FRAME_PARM_SAVE): Likewise.
41436         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
41437         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
41438         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41439         (call_mcount_parm_offset): New macro.
41440         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
41441         (PROF): Use symbolic stack frame offsets.
41442         (TAIL_CALL_SYSCALL_ERROR): Likewise.
41443         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
41444         Redefine in terms of FRAME_MIN_SIZE.
41445         (_dl_runtime_resolve): Use symbolic stack frame offsets.
41446         (_dl_profile_resolve): Likewise.  Update comment.
41447         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
41448         symbols stack frame offsets.
41449         (__sigsetjmp): Likewise.
41450         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
41451         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
41452         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
41453         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
41454
41455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
41456         (FRAME_BACKCHAIN): Remove.
41457         (FRAME_CR_SAVE): Likewise.
41458         (FRAME_LR_SAVE): Likewise.
41459         (FRAME_COMPILER_DW): Likewise.
41460         (FRAME_LINKER_DW): Likewise.
41461         (FRAME_TOC_SAVE): Likewise.
41462         (FRAME_PARM_SAVE): Likewise.
41463         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
41464         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
41465         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
41467         (CHECK_SP): Use symbolic stack frame offsets.
41468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
41469         zone" instead of caller's parameter save area for temp storage.
41470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
41471         Likewise.  Also, use symbolic stack frame offsets.
41472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
41473         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
41474         our own stack frame instead of the caller's.
41475         (__socket): Use symbolic stack frame offsets.
41476
41477 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41478             Alan Modra  <amodra@gmail.com>
41479
41480         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
41481         Define.
41482         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
41483         (PPC64_LOCAL_ENTRY_OFFSET): Define.
41484         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
41485         New function.
41486         (elf_machine_fixup_plt): Call it.
41487         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
41488         reloc arguments.
41489         (elf_machine_rela): Update call to elf_machine_plt_conflict.
41490         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41491         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
41492         r2 before calling target.
41493
41494 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41495             Alan Modra  <amodra@gmail.com>
41496
41497         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
41498         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
41499         versions of macros to support ELFv2 ABI.
41500         (LOCALENTRY): New macro.
41501         (ENTRY, EALIGN): Use it.
41502         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
41503         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
41504         fall through into ENTRY entry point.
41505         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
41506         Only define if _CALL_ELF != 2.
41507
41508         (elf_machine_matches_host): Verify ABI version matches.
41509         (RTLD_START): Use LOCALENTRY.
41510         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
41511         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
41512         (PLT_ENTRY_WORDS): New macro.
41513         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
41514         (elf_machine_runtime_setup): Support ELFv2 ABI.
41515         (elf_machine_fixup_plt): Likewise.
41516         (elf_machine_plt_conflict): Likewise.
41517         (resolve_ifunc): Likewise.
41518         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41519         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41520         Likewise.
41521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
41522         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
41523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41524         (makecontext): Support ELFv2 ABI.
41525         * elf/elf.h (EF_PPC64_ABI): Define.
41526
41527 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41528
41529         * sysdeps/powerpc/powerpc64/sysdep.h
41530         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
41531         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
41532         (ENTRY) [ASSEMBLER]: ... but instead here ...
41533         (EALIGN) [ASSEMBLER]: ... and here.
41534         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
41535         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
41536         (ENTRY_2) [!ASSEMBLER]: Use it.
41537         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
41538         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
41539         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41540         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
41541         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
41542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
41543         Use PPC64_LOAD_FUNCPTR.
41544
41545         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
41546
41547 2013-12-04  Alan Modra  <amodra@gmail.com>
41548
41549         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
41550         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
41551         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
41552         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
41553
41554         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
41555         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
41556         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
41557         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
41558         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
41559         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
41560
41561 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41562
41563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41564         (__makecontext): Fix incorrect CFI when backtracing out of
41565         context created via makecontext.
41566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
41567         (__setcontext): Fix incorrect CFI during switch to new context.
41568         (__novec_setcontext): Likewise.
41569
41570 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41571
41572         [BZ #4772]
41573         * time/strptime_l.c (__strptime_internal): Allow modifiers
41574         in strptime.
41575         * time/tst-strptime.c (day_tests): Add testcase.
41576
41577 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41578
41579         * scripts/bench.pl: Skip over blank lines.
41580
41581 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41582
41583         [BZ #926]
41584         * manual/time.texi (Calendar Time): Clarify what timezone functions
41585         use.
41586
41587 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41588
41589         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41590
41591 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41592
41593         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
41594         implementation.
41595         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
41596         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
41597         * debug/memset_chk.c (__memset_chk): Likewise.
41598         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
41599         * debug/strncpy_chk.c: Likewise.
41600
41601 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41602
41603         [BZ #15268]
41604         [BZ #15425]
41605         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
41606         (__ieee754_exp): For possibly underflowing results, check size of
41607         result and force underflow exception if required.
41608         * math/auto-libm-test-in: Add more tests of exp.
41609         * math/auto-libm-test-out: Regenerated.
41610         * sysdeps/i386/fpu/libm-test-ulps: Update.
41611         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41612
41613         [BZ #16283]
41614         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
41615         * math/w_exp2f.c (__exp2f): Likewise.
41616         * math/w_exp2l.c (__exp2l): Likewise.
41617         * math/auto-libm-test-in: Do not allow missing errno on exp2
41618         underflow.
41619         * math/auto-libm-test-out: Regenerated.
41620
41621 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41622
41623         [BZ #16274]
41624         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41625         handle filename validation.
41626         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41627         (do_open): Delete.
41628
41629 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41630
41631         [BZ #6786]
41632         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41633         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41634         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41635         <float.h>.
41636         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41637         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41638         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41639         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41640         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41641         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41642         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41643         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41644         Add more erfc tests.
41645         * math/auto-libm-test-out: Regenerated.
41646         * sysdeps/i386/fpu/libm-test-ulps: Update.
41647         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41648
41649         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41650         exp2, expm1, j0 and j1.
41651         * math/auto-libm-test-out: Regenerated.
41652         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41653         (erfc_test_data): Likewise.
41654         (exp_test_data): Likewise.
41655         (exp_tonearest_test_data): Likewise.
41656         (exp_towardzero_test_data): Likewise.
41657         (exp_downward_test_data): Likewise.
41658         (exp_upward_test_data): Likewise.
41659         (exp10_test_data): Likewise.
41660         (exp2_test_data): Likewise.
41661         (expm1_test_data): Likewise.
41662         (j0_test_data): Likewise.
41663         (j1_test_data): Likewise.
41664         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41665         (input_flag_type): Add flag_xfail_rounding.
41666         (input_flags): Add xfail-rounding.
41667         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41668         (output_for_one_input_case): Handle flag_xfail_rounding.
41669         * sysdeps/i386/fpu/libm-test-ulps: Update.
41670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41671
41672 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41673
41674         [BZ #16289]
41675         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41676         division by 0.
41677
41678 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41679
41680         [BZ #16195]
41681         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41682         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41683         (STAP_PROBE0): New macro.
41684         (STAP_PROBE1): Likewise.
41685         (STAP_PROBE2): Likewise.
41686         (STAP_PROBE3): Likewise.
41687         (STAP_PROBE4): Likewise.
41688
41689 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41690
41691         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41692
41693 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41694
41695         * benchtests/Makefile (bench): Add sqrt.
41696         (LDLIBS-bench-sqrt): New.
41697         * benchtests/sqrt-input: New.
41698
41699 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41700
41701         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41702         (GAIH_EAI): Likewise.
41703         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41704         (gaih_inet): Likewise.
41705         (getaddrinfo): Don't use GAIH_EAI.
41706
41707         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41708         (struct gaih): Remove definition.
41709
41710 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41711
41712         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41713         Use HERRNOP directly.
41714
41715 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41716
41717         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41718
41719 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41720
41721         * math/gen-auto-libm-tests.c (test_functions): Add more
41722         single-argument functions.
41723         (special_fill_pi_2): New function.
41724         (special_fill_minus_pi_2): Likewise.
41725         (special_fill_pi_6): Likewise.
41726         (special_fill_minus_pi_6): Likewise.
41727         (special_fill_pi_3): Likewise.
41728         (special_fill_2pi_3): Likewise.
41729         (special_fill_e): Likewise.
41730         (special_fill_1_e): Likewise.
41731         (special_fill_e_minus_1): Likewise.
41732         (special_real_inputs): Add more special inputs.
41733         (output_for_one_input_case): Do not require ERANGE on underflow to
41734         zero if round-to-nearest result does not underflow to zero, unless
41735         exact results required.
41736         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41737         atan, atanh, cbrt, cos and cosh.
41738         * math/auto-libm-test-out: Regenerated.
41739         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41740         (acos_tonearest_test_data): Likewise.
41741         (acos_towardzero_test_data): Likewise.
41742         (acos_downward_test_data): Likewise.
41743         (acos_upward_test_data): Likewise.
41744         (acosh_test_data): Likewise.
41745         (asin_test_data): Likewise.
41746         (asin_tonearest_test_data): Likewise.
41747         (asin_towardzero_test_data): Likewise.
41748         (asin_upward_test_data): Likewise.
41749         (asinh_test_data): Likewise.
41750         (atan_test_data): Likewise.
41751         (atanh_test_data): Likewise.
41752         (cbrt_test_data): Likewise.
41753         (cos_test_data): Likewise.
41754         (cos_tonearest_test_data): Likewise.
41755         (cos_towardzero_test_data): Likewise.
41756         (cos_downward_test_data): Likewise.
41757         (cos_upward_test_data): Likewise.
41758         (cosh_test_data): Likewise.
41759         (cosh_tonearest_test_data): Likewise.
41760         (cosh_towardzero_test_data): Likewise.
41761         (cosh_downward_test_data): Likewise.
41762         (cosh_upward_test_data): Likewise.
41763         * sysdeps/i386/fpu/libm-test-ulps: Update.
41764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41765
41766 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41767
41768         [BZ #6787]
41769         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41770         * math/w_exp10f.c (__exp10f): Likewise.
41771         * math/w_exp10l.c (__exp10l): Likewise.
41772         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41773         errno settings in existing tests.
41774
41775         [BZ #14032]
41776         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41777         precision control set to double precision.
41778         * sysdeps/i386/fpu/w_sqrt.c: New file.
41779         * math/auto-libm-test-in: Add more tests.
41780         * math/auto-libm-test-out: Update.
41781
41782         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41783         (sqrt_test_tonearest): New function.
41784         (sqrt_towardzero_test_data): New variable.
41785         (sqrt_test_towardzero): New function.
41786         (sqrt_downward_test_data): New variable.
41787         (sqrt_test_downward): New function.
41788         (sqrt_upward_test_data): New variable.
41789         (sqrt_test_upward): New function.
41790         (main): Call the new functions.
41791
41792         * math/gen-auto-libm-tests.c: New file.
41793         * math/auto-libm-test-in: Likewise.
41794         * math/auto-libm-test-out: New generated file.
41795         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41796         variables.
41797         (%beautify): Add generated representations of zero.
41798         (top level): Set $auto_input and call parse_auto_input.
41799         (beautify): Remove trailing "f" from hex float constants.
41800         (parse_args): Handle XFAIL_TEST.
41801         (convert_condition): New function.
41802         (or_value): Likewise.
41803         (or_cond_value): Likewise.
41804         (generate_testfile): Handle AUTO_TESTS_* lines.
41805         (parse_auto_input): New function.
41806         * math/libm-test.inc (XFAIL_TEST): New macro.
41807         (ERRNO_UNCHANGED): Update value.
41808         (ERRNO_EDOM): Likewise.
41809         (ERRNO_ERANGE): Likewise.
41810         (IGNORE_RESULT): Likewise.
41811         (TEST_COND_flt_32): New macro.
41812         (TEST_COND_dbl_64): Likewise.
41813         (TEST_COND_ldbl_96_intel): Likewise.
41814         (TEST_COND_ldbl_96_m68k): Likewise.
41815         (TEST_COND_ldbl_128): Likewise.
41816         (TEST_COND_ldbl_128ibm): Likewise.
41817         (TEST_COND_long32): Likewise.
41818         (TEST_COND_long64): Likewise.
41819         (TEST_COND_before_rounding): Likewise.
41820         (TEST_COND_after_rounding): Likewise.
41821         (enable_test): Handle XFAIL_TEST flag.
41822         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41823         with finite results.
41824         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41825         auto-libm-test-out.
41826
41827 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41828             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41829
41830         [BZ #16214]
41831         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41832         __tls_get_addr_internal instead of __tls_get_offset in order to
41833         avoid GOT pointer dependency.  Make rtld export
41834         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41835         __tls_get_addr since we are a __tls_get_offset platform.
41836         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41837         GOT pointer being set up before.
41838         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41839
41840 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41841
41842         * manual/math.texi (Errors in Math Functions): Document accuracy
41843         goals.
41844
41845         [BZ #15004]
41846         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41847         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41848         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41849         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41850         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41851         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41852         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41853         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41854         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41855         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41856         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41857         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41858         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41859         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41860         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41861         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41862
41863         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41864         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41865         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41866         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41867         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41868         Likewise.
41869         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41870         Likewise.
41871         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41872         Likewise.
41873         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41874         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41875         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41876         atomic-feupdateenv and flt-rounds.
41877         * sysdeps/powerpc/nofpu/Versions (libc): Add
41878         __atomic_feholdexcept, __atomic_feclearexcept,
41879         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41880         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41881         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41882         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41883         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41884         here.
41885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41886         Update.
41887
41888         * manual/arith.texi (FP Exceptions): Document that exceptions may
41889         not be raised when matherr is used.
41890         (Math Error Reporting): Document overflow in directed rounding
41891         modes.  Document that errno may not be set when finite values are
41892         returned on overflow.  Document intent to set errno on underflow
41893         only for underflow to zero.
41894
41895         [BZ #16271]
41896         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41897         round-to-nearest then adjust result for other rounding modes.
41898         * include/fenv.h (fegetround): Use libm_hidden_proto.
41899         * math/fegetround.c (fegetround): Use libm_hidden_def.
41900         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41901         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41902         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41903         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41904         Likewise.
41905         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41906         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41907         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41908         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41909
41910 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41911
41912         [BZ #16077]
41913         * nss/Versions (libnss_files): Add
41914         _nss_files_gethostbyname3_r.
41915         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41916         New function.
41917         (HOST_DB_LOOKUP): Remove macro.
41918         (_nss_files_gethostbyname_r): Implement function without the
41919         HOST_DB_LOOKUP macro.
41920         (_nss_files_gethostbyname2_r): Likewise.
41921
41922 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41923
41924         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41925
41926 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41927
41928         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41929         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41930         warning.
41931
41932 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41933
41934         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41935         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41936         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41937         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41938         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41939         __fe_nomask_env_priv and attribute_hidden.
41940         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41941         (libc_feupdateenv_test_ppc): Likewise.
41942         (libc_feresetround_ppc): Likewise.
41943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41944         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41945         compat_symbol macro.
41946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41947         (__fe_nomask_env): Likewise.
41948         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41949
41950 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41951
41952         * string/Makefile: Remove ifunc tests.
41953         * string/test-string.h: Define TEST_IFUNC.
41954         * string/test-bcopy-ifunc.c: Remove.
41955         * string/test-bzero-ifunc.c: Likewise.
41956         * string/test-memccpy-ifunc.c: Likewise.
41957         * string/test-memchr-ifunc.c: Likewise.
41958         * string/test-memcmp-ifunc.c: Likewise.
41959         * string/test-memcpy-ifunc.c: Likewise.
41960         * string/test-memmem-ifunc.c: Likewise.
41961         * string/test-memmove-ifunc.c: Likewise.
41962         * string/test-mempcpy-ifunc.c: Likewise.
41963         * string/test-memrchr-ifunc.c: Likewise.
41964         * string/test-memset-ifunc.c: Likewise.
41965         * string/test-rawmemchr-ifunc.c: Likewise.
41966         * string/test-stpcpy-ifunc.c: Likewise.
41967         * string/test-stpncpy-ifunc.c: Likewise.
41968         * string/test-strcasecmp-ifunc.c: Likewise.
41969         * string/test-strcasestr-ifunc.c: Likewise.
41970         * string/test-strcat-ifunc.c: Likewise.
41971         * string/test-strchr-ifunc.c: Likewise.
41972         * string/test-strchrnul-ifunc.c: Likewise.
41973         * string/test-strcmp-ifunc.c: Likewise.
41974         * string/test-strcpy-ifunc.c: Likewise.
41975         * string/test-strcspn-ifunc.c: Likewise.
41976         * string/test-strlen-ifunc.c: Likewise.
41977         * string/test-strncasecmp-ifunc.c: Likewise.
41978         * string/test-strncat-ifunc.c: Likewise.
41979         * string/test-strncmp-ifunc.c: Likewise.
41980         * string/test-strncpy-ifunc.c: Likewise.
41981         * string/test-strnlen-ifunc.c: Likewise.
41982         * string/test-strpbrk-ifunc.c: Likewise.
41983         * string/test-strrchr-ifunc.c: Likewise.
41984         * string/test-strspn-ifunc.c: Likewise.
41985         * string/test-strstr-ifunc.c: Likewise.
41986
41987 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41988
41989         * benchtests/Makefile: Remove ifunc tests.
41990         * benchtests/bench-string.h: Define TEST_IFUNC.
41991         * benchtests/bench-bcopy-ifunc.c: Remove.
41992         * benchtests/bench-bzero-ifunc.c: Likewise.
41993         * benchtests/bench-memccpy-ifunc.c: Likewise.
41994         * benchtests/bench-memchr-ifunc.c: Likewise.
41995         * benchtests/bench-memcmp-ifunc.c: Likewise.
41996         * benchtests/bench-memcpy-ifunc.c: Likewise.
41997         * benchtests/bench-memmem-ifunc.c: Likewise.
41998         * benchtests/bench-memmove-ifunc.c: Likewise.
41999         * benchtests/bench-mempcpy-ifunc.c: Likewise.
42000         * benchtests/bench-memrchr-ifunc.c: Likewise.
42001         * benchtests/bench-memset-ifunc.c: Likewise.
42002         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
42003         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
42004         * benchtests/bench-stpcpy-ifunc.c: Likewise.
42005         * benchtests/bench-stpncpy-ifunc.c: Likewise.
42006         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
42007         * benchtests/bench-strcasestr-ifunc.c: Likewise.
42008         * benchtests/bench-strcat-ifunc.c: Likewise.
42009         * benchtests/bench-strchr-ifunc.c: Likewise.
42010         * benchtests/bench-strchrnul-ifunc.c: Likewise.
42011         * benchtests/bench-strcmp-ifunc.c: Likewise.
42012         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
42013         * benchtests/bench-strcpy-ifunc.c: Likewise.
42014         * benchtests/bench-strcspn-ifunc.c: Likewise.
42015         * benchtests/bench-strlen-ifunc.c: Likewise.
42016         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
42017         * benchtests/bench-strncat-ifunc.c: Likewise.
42018         * benchtests/bench-strncmp-ifunc.c: Likewise.
42019         * benchtests/bench-strncpy-ifunc.c: Likewise.
42020         * benchtests/bench-strnlen-ifunc.c: Likewise.
42021         * benchtests/bench-strpbrk-ifunc.c: Likewise.
42022         * benchtests/bench-strrchr-ifunc.c: Likewise.
42023         * benchtests/bench-strsep-ifunc.c: Likewise.
42024         * benchtests/bench-strspn-ifunc.c: Likewise.
42025         * benchtests/bench-strstr-ifunc.c: Likewise.
42026
42027 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42028
42029         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
42030
42031 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42032
42033         * resolv/netdb.h: Use __glibc_reserved instead __unused.
42034         * rt/aio.h: Likewise.
42035         * sysdeps/gnu/bits/utmp.h: Likewise.
42036         * sysdeps/gnu/bits/utmpx.h: Likewise.
42037         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
42038         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
42039         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
42040         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
42041         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
42042         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
42043         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
42044         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
42045         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
42046         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
42047         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
42048         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
42049         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
42050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
42051         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
42052         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
42053         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
42054         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
42055         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
42056         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
42057         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
42058         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
42059         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
42060         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
42061         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
42062         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
42063         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
42064         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
42065         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
42066         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
42067         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
42068         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
42069         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
42070         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
42071         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
42072         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
42073         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
42074         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
42075         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
42076         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
42077         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
42078         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
42079
42080 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
42081
42082         [BZ #16245]
42083         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
42084         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
42085
42086 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
42087
42088         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
42089         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
42090         Likewise.
42091
42092 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42093
42094         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
42095         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
42096         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
42097         (__fesetround): Remove define.
42098         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
42099         rounding and exceptions handling.
42100         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
42101         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
42102         (__fe_nomask_env): Likewise.
42103         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
42104         __fegetround instead of fegetround.
42105         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
42106         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
42107
42108 2013-11-21  Roland McGrath  <roland@hack.frob.com>
42109
42110         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
42111         it's there.
42112
42113         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
42114
42115 2013-11-21  Meador Inge  <meadori@codesourcery.com>
42116
42117         [BZ #11157]
42118         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
42119         (encrypt_r): Likewise.
42120         * malloc/obstack.h (obstack_free): Likewise.
42121         * posix/unistd.h (encrypt): Likewise.
42122
42123 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
42124
42125         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
42126         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
42127         DL_CALL_DT_FINI() that call the functions directly.
42128         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
42129         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
42130         * elf/dl-fini.c: Likewise.
42131
42132 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
42133
42134         * malloc/hooks.c (memalign_check): Add alignment rounding.
42135         * malloc/malloc.c (_mid_memalign): New function.
42136         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
42137         Implement by calling _mid_memalign.
42138         * manual/probes.texi (Memory Allocation Probes): Remove
42139         memory_valloc_retry and memory_pvalloc_retry.
42140
42141 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
42142
42143         * locale/programs/locarchive.c (open_archive): Add const
42144         qualifier to ARCHIVEFNAME and copy default fname to
42145         DEFAULT_FNAME.
42146
42147         [BZ #15601]
42148         * libio/tst-widetext.input: Rename Oriya to Odia.
42149         * locale/iso-639.def: Likewise.
42150
42151         * manual/probes.texi (Mathematical Function Probes): Add
42152         documentation for sin, cos, asin and acos probes.
42153         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
42154         (__sin32): Add slowasin probe.
42155         (__cos32): Add slowacos probe.
42156         (__mpsin): Add slowsin probe.
42157         (__mpcos): Add slowcos probe.
42158
42159 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
42160
42161         [BZ #15483]
42162         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
42163         thread-local __sim_exceptions_thread and global
42164         __sim_exceptions_global.
42165         (__sim_disabled_exceptions): Change to thread-local
42166         __sim_disabled_exceptions_thread and global
42167         __sim_disabled_exceptions_global.
42168         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42169         and global __sim_round_mode_global.
42170         (__simulate_exceptions): Use thread-local floating-point state and
42171         set global state from it as needed.
42172         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
42173         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
42174         __sim_round_mode_thread.
42175         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
42176         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
42177         and global __sim_exceptions_global.
42178         (__sim_disabled_exceptions): Change to thread-local
42179         __sim_disabled_exceptions_thread and global
42180         __sim_disabled_exceptions_global.
42181         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42182         and global __sim_round_mode_global.
42183         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
42184         (SIM_SET_GLOBAL): Likewise.
42185         * sysdeps/powerpc/soft-fp/sfp-machine.h
42186         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
42187         __sim_round_mode_thread.
42188         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
42189         __sim_disabled_exceptions_thread.
42190         (__sim_exceptions): Change to __sim_exceptions_thread.
42191         (__sim_disabled_exceptions): Change to
42192         __sim_disabled_exceptions_thread.
42193         (__sim_round_mode): Change to __sim_round_mode_thread.
42194         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
42195         thread-local floating-point state and set global state from it as
42196         needed.
42197         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
42198         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
42199         (__sim_disabled_exceptions): Remove extern declaration.
42200         (feenableexcept): Use thread-local floating-point state and set
42201         global state from it as needed.
42202         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
42203         extern declaration.
42204         (__sim_disabled_exceptions): Likewise.
42205         (__sim_round_mode): Likewise.
42206         (__fegetenv): Use thread-local floating-point state.
42207         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
42208         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
42209         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
42210         floating-point state and set global state from it as needed.
42211         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
42212         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
42213         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
42214         Likewise.
42215         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
42216         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
42217         Likewise.
42218         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
42219         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
42220         Use __sim_round_mode_thread.
42221         * math/test-fenv-tls.c: New file.
42222         * math/Makefile (tests): Add test-fenv-tls.
42223         ($(objpfx)test-fenv-tls): Depend on
42224         $(common-objpfx)nptl/libpthread.so.
42225
42226 2013-11-19  Andreas Schwab  <schwab@suse.de>
42227
42228         * locale/programs/locale.c (show_info): Decode wordarray elements.
42229         * locale/categories.def (LC_MONETARY): Add element for
42230         _NL_MONETARY_CRNCYSTR.
42231         * locale/C-monetary.c (conversion_rate): New variable.
42232         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
42233         element.
42234
42235 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
42236
42237         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
42238         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
42239
42240 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42241
42242         * elf/Makefile (tst-auxv): New test.
42243         * elf/tst-auxv.c: New
42244         * elf/rtld.c (dl_main): Adjust AT_EXECFN
42245
42246 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
42247
42248         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
42249         (hidden_proto): Caller changed.
42250         (hidden_tls_proto): New macro.
42251         (libc_hidden_tls_proto): Likewise.
42252         (rtld_hidden_tls_proto): Likewise.
42253         (libm_hidden_tls_proto): Likewise.
42254         (libresolv_hidden_tls_proto): Likewise.
42255         (librt_hidden_tls_proto): Likewise.
42256         (libdl_hidden_tls_proto): Likewise.
42257         (libnss_files_hidden_tls_proto): Likewise.
42258         (libnsl_hidden_tls_proto): Likewise.
42259         (libnss_nisplus_hidden_tls_proto): Likewise.
42260         (libutil_hidden_tls_proto): Likewise.
42261
42262 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
42263
42264         [BZ #10253]
42265         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
42266         (decompose_rpath): Defer expansion to fillin_rpath.
42267         (_dl_init_paths): Pass linkmap to fillin_rpath.
42268
42269 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
42270
42271         * benchtests/Makefile: Add strsep.
42272         * benchtests/bench-strsep.c: New file: strsep benchtest.
42273         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
42274
42275 2013-11-18  Andreas Schwab  <schwab@suse.de>
42276
42277         * locale/programs/locale.c (show_info) [case byte]: Check for
42278         '\377' instead of '\177'.
42279         * locale/C-monetary.c (not_available): Always use "\377".
42280         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
42281         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
42282         detect unavailable sign_posn locale elements.
42283         * locale/localeconv.c (__localeconv): For grouping and
42284         mon_grouping handle "\177" and "\377" like no grouping.
42285         (INT_ELEM): New macro.  Use it to set all numeric members.
42286         * locale/programs/ld-monetary.c (monetary_read)
42287         <tok_mon_grouping>: Normalize single -1 to the empty string.
42288         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
42289         Likewise.
42290
42291 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42292
42293         [BZ #16055]
42294         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
42295         when we match (nil).
42296         * stdio-common/tst-sscanf.c (struct test): Add testcase.
42297
42298 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
42299
42300         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
42301         (NO_TEST_INLINE): Update value.
42302         (ERRNO_UNCHANGED): Likewise.
42303         (ERRNO_EDOM): Likewise.
42304         (ERRNO_ERANGE): Likewise.
42305         (IGNORE_RESULT): Likewise.
42306         (check_float_internal): Check signs of NaN results if
42307         TEST_NAN_SIGN used.
42308         (check_complex): Pass TEST_NAN_SIGN flag through to second
42309         check_float_internal call.
42310         (copysign_test_data): Add tests with quiet NaNs as second
42311         argument.  Use TEST_NAN_SIGN.
42312         (fabs_test_data): Add test of negative quiet NaN argument.  Use
42313         TEST_NAN_SIGN.
42314         (signbit_test_data): Add tests of quiet NaN argument.
42315         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
42316
42317         * math/gen-libm-test.pl (show_exceptions): Take extra argument
42318         $ignore_result.
42319         (parse_args): Handle function results specified as IGNORE.
42320         * math/libm-test.inc (IGNORE_RESULT): New macro.
42321         (check_float_internal): Do not check numerical result if flag
42322         IGNORE_RESULT set.
42323         (check_complex): Pass through IGNORE_RESULT to second
42324         check_float_internal call.
42325         (check_int): Do not check numerical result if flag IGNORE_RESULT
42326         set.
42327         (check_long): Likewise.
42328         (check_bool): Likewise.
42329         (check_longlong): Likewise.
42330         (lrint_test_data): Add tests of infinite and NaN arguments.
42331         (lrint_tonearest_test_data): Likewise.
42332         (lrint_towardzero_test_data): Likewise.
42333         (lrint_downward_test_data): Likewise.
42334         (lrint_upward_test_data): Likewise.
42335         (llrint_test_data): Likewise.
42336         (llrint_tonearest_test_data): Likewise.
42337         (llrint_towardzero_test_data): Likewise.
42338         (llrint_downward_test_data): Likewise.
42339         (llrint_upward_test_data): Likewise.
42340         (lround_test_data): Likewise.
42341         (llround_test_data): Likewise.
42342
42343         * math/libm-test.inc (NO_TEST_INLINE): New macro.
42344         (ERRNO_UNCHANGED): Update value.
42345         (ERRNO_EDOM): Likewise.
42346         (ERRNO_ERANGE): Likewise.
42347         (NO_TEST_INLINE_FLOAT): New macro.
42348         (NO_TEST_INLINE_DOUBLE): Likewise.
42349         (enable_test): New function.
42350         (RUN_TEST_f_f): Check enable_test before running test.
42351         (RUN_TEST_2_f): Likewise.
42352         (RUN_TEST_fff_f): Likewise.
42353         (RUN_TEST_c_f): Likewise.
42354         (RUN_TEST_f_f1): Likewise.
42355         (RUN_TEST_fF_f1): Likewise.
42356         (RUN_TEST_fI_f1): Likewise.
42357         (RUN_TEST_ffI_f1): Likewise.
42358         (RUN_TEST_c_c): Likewise.
42359         (RUN_TEST_cc_c): Likewise.
42360         (RUN_TEST_f_i): Likewise.
42361         (RUN_TEST_f_i_tg): Likewise.
42362         (RUN_TEST_ff_i_tg): Likewise.
42363         (RUN_TEST_f_b): Likewise.
42364         (RUN_TEST_f_b_tg): Likewise.
42365         (RUN_TEST_f_l): Likewise.
42366         (RUN_TEST_f_L): Likewise.
42367         (RUN_TEST_fFF_11): Likewise.
42368         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
42369         conditionals.
42370         (cosh_test_data): Likewise.
42371         (exp_test_data): Likewise.
42372         (expm1_test_data): Likewise.
42373         (hypot_test_data): Likewise.
42374         (pow_test_data): Likewise.
42375         (sinh_test_data): Likewise.
42376         (tanh_test_data): Likewise.
42377         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
42378         flags argument.
42379
42380         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
42381         tests with quiet NaN input and output.
42382         (acosh_test_data): Likewise.
42383         (asin_test_data): Likewise.
42384         (asinh_test_data): Likewise.
42385         (atan_test_data): Likewise.
42386         (atanh_test_data): Likewise.
42387         (atan2_test_data): Likewise.
42388         (cbrt_test_data): Likewise.
42389         (cos_test_data): Likewise.
42390         (cosh_test_data): Likewise.
42391         (erf_test_data): Likewise.
42392         (erfc_test_data): Likewise.
42393         (exp_test_data): Likewise.
42394         (exp10_test_data): Likewise.
42395         (exp2_test_data): Likewise.
42396         (expm1_test_data): Likewise.
42397         (hypot_test_data): Likewise.
42398         (j0_test_data): Likewise.
42399         (j1_test_data): Likewise.
42400         (jn_test_data): Likewise.
42401         (lgamma_test_data): Likewise.
42402         (log_test_data): Likewise.
42403         (log10_test_data): Likewise.
42404         (log1p_test_data): Likewise.
42405         (log2_test_data): Likewise.
42406         (pow_test_data): Likewise.
42407         (scalb_test_data): Likewise.
42408         (sin_test_data): Likewise.
42409         (sincos_test_data): Likewise.
42410         (sinh_test_data): Likewise.
42411         (tan_test_data): Likewise.
42412         (tanh_test_data): Likewise.
42413         (tgamma_test_data): Likewise.
42414         (y0_test_data): Likewise.
42415         (y1_test_data): Likewise.
42416         (yn_test_data): Likewise.
42417
42418         [BZ #16167]
42419         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
42420         argument being NaN and avoid computations with second argument in
42421         that case.
42422         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
42423         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
42424         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
42425
42426 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
42427
42428         * locale/iso-639.def: Add Chitwani Tharu (the).
42429
42430 2013-11-14  Andreas Schwab  <schwab@suse.de>
42431
42432         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
42433         word instead of empty string.
42434
42435 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42436
42437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42438         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
42439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42440         (__fe_nomask_env): Likewise.
42441
42442 2013-11-13  Steve Ellcey  <sellcey@mips.com>
42443
42444         * benchtests/bench-timing.h: Include time.h.
42445
42446 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
42447
42448         [BZ #15997]
42449         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
42450         to 3.4.0 for x32.
42451         * sysdeps/unix/sysv/linux/configure: Regenerated.
42452
42453 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
42454
42455         [BZ #16151]
42456         * stdlib/strtod_l.c (round_and_return): Do not consider
42457         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
42458         exponent one less than half the least subnormal exponent.
42459         * stdlib/test-strtod-round-data: Add more tests.
42460         * stdlib/tst-strtod-round.c (tests): Regenerated.
42461
42462 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42463
42464         [BZ #14143]
42465         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
42466         (__fe_mask_env): Likewise.
42467         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
42468         libm_hidden_proto and add function prototype.
42469         (__fe_mask_env): Add function prototype.
42470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42471         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
42472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
42473         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
42474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42475         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
42476
42477 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42478
42479         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
42480         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
42481
42482 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42483
42484         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
42485         of htab_find_slot().
42486
42487 2013-11-11  David S. Miller  <davem@davemloft.net>
42488
42489         [BZ #16150]
42490         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
42491         symbol in the non-vis3 case in static builds.
42492         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
42493         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
42494         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
42495         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
42496
42497 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
42498
42499         [BZ #387]
42500         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
42501         it is empty.
42502
42503 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42504
42505         * benchtests/Makefile: Add bench-strtod.
42506         * benchtests/bench-strtod.c: New file: strtod benchtest
42507
42508 2013-11-11  Andreas Schwab  <schwab@suse.de>
42509
42510         [BZ #16153]
42511         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
42512         terminating NUL in key length.
42513
42514 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42515
42516         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
42517         Add artificial ODP entry for vDSO symbol for PPC64.
42518         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
42519         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
42520
42521 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42522
42523         [BZ #15374]
42524         * nss/getent.c (services_keys): Recognize services starting with digit.
42525
42526 2013-11-06  David S. Miller  <davem@davemloft.net>
42527
42528         [BZ #15985]
42529         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
42530         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
42531
42532 2013-11-06  Will Newton  <will.newton@linaro.org>
42533
42534         * manual/memory.texi (Malloc Examples): Remove register
42535         keyword from examples.
42536
42537 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
42538
42539         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
42540
42541 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
42542
42543         [BZ #6981]
42544         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
42545         depending on [__GCC_IEC_559 > 0].
42546         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
42547         depending on [__GCC_IEC_559_COMPLEX > 0].
42548
42549 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
42550
42551         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
42552         to iso-639.def.
42553
42554 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
42555
42556         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
42557
42558 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
42559
42560         [BZ #16112]
42561         * malloc/malloc (malloc_info): Do not handle first bin as
42562         special case.
42563
42564 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
42565
42566         * locale/iso-639.def: Add Central Nahuatl (nhn).
42567
42568 2013-11-01  Bruno Haible  <bruno@clisp.org>
42569
42570         [BZ #7003]
42571         * manual/math.texi (BSD Random): Specify range upper bound as
42572         in POSIX.
42573
42574 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
42575
42576         * locale/iso-639.def: Add Meadow Mari (mhr).
42577
42578 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
42579
42580         [BZ #14752], [BZ #15763]
42581         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
42582         Validate name.
42583         * rt/tst_shm.c: Add test for escaping directory.
42584
42585 2013-10-31  Andreas Schwab  <schwab@suse.de>
42586
42587         [BZ #15917]
42588         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
42589         followed by 'x' as part of digit sequence.
42590         * stdio-common/tst-sscanf.c (double_tests2): New tests.
42591
42592 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
42593
42594         [BZ #16037]
42595         * configure.ac: allow GNU Make 4.0 and greater.
42596         * configure: Regenerated.
42597
42598 2013-10-30  Will Newton  <will.newton@linaro.org>
42599
42600         [BZ #16038]
42601         * malloc/hooks.c (memalign_check): Limit alignment to the
42602         maximum representable power of two.
42603         * malloc/malloc.c (__libc_memalign): Likewise.
42604         * malloc/tst-memalign.c (do_test): Add test for very
42605         large alignment values.
42606         * malloc/tst-posix_memalign.c (do_test): Likewise.
42607
42608 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42609
42610         [BZ #11087]
42611         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
42612         (munmap_chunk): Likewise.
42613         (mremap_chunk): Likewise.
42614
42615 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42616
42617         [BZ #15799]
42618         * stdlib/div.c (div): Remove obsolete code.
42619         * stdlib/ldiv.c (ldiv): Likewise.
42620         * stdlib/lldiv.c (lldiv): Likewise.
42621
42622 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42623
42624         [BZ #16071]
42625         * nss/nss_files/files-XXX.c (get_contents_ret): New
42626         enumerator.
42627         (get_contents): New function.
42628         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42629
42630 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42631
42632         * configure.in: Moved to ...
42633         * configure.ac: ... here. Change reference to configure.in
42634         to configure.ac.
42635         * sysdeps/arm/preconfigure.ac: ... here.
42636         configure.in to configure.ac.
42637         * sysdeps/gnu/configure.in: Moved to ...
42638         * sysdeps/gnu/configure.ac: ... here.
42639         * sysdeps/i386/configure.in: Moved to ...
42640         * sysdeps/i386/configure.ac: ... here.
42641         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42642         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42643         * sysdeps/mach/configure.in: Moved to ...
42644         * sysdeps/mach/configure.ac: ... here.
42645         * sysdeps/mach/hurd/configure.in: Moved to ...
42646         * sysdeps/mach/hurd/configure.ac: ... here.
42647         * sysdeps/powerpc/configure.in: Moved to ...
42648         * sysdeps/powerpc/configure.ac: ... here.
42649         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42650         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42651         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42652         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42653         * sysdeps/s390/s390-32/configure.in: Moved to ...
42654         * sysdeps/s390/s390-32/configure.ac: ... here.
42655         * sysdeps/s390/s390-64/configure.in: Moved to ...
42656         * sysdeps/s390/s390-64/configure.ac: ... here.
42657         * sysdeps/sh/configure.in: Moved to ...
42658         * sysdeps/sh/configure.ac: ... here.
42659         * sysdeps/sparc/configure.in: Moved to ...
42660         * sysdeps/sparc/configure.ac: ... here.
42661         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42662         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42663         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42664         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42665         * sysdeps/x86_64/configure.in: Moved to ...
42666         * sysdeps/x86_64/configure.ac: ... here.
42667         * sysdeps/x86_64/preconfigure.in: Moved to ...
42668         * sysdeps/x86_64/preconfigure.ac: ... here.
42669         * aclocal.m4: Change reference to configure.in to configure.ac.
42670         * config.h.in: Likewise.
42671         * manual/install.texi: Likewise.
42672         * manual/maint.texi: Likewise.
42673         * Makefile: Likewise.
42674         * malloc/Makefile: Likewise.
42675         * nscd/Makefile: Likewise.
42676         * Makeconfig: Change reference to configure.in and
42677         preconfigure.in to configure.ac and preconfigure.ac
42678         respectively.
42679         * INSTALL: Regenerated.
42680         * configure: Likewise.
42681         * sysdeps/gnu/configure: Likewise.
42682         * sysdeps/i386/configure: Likewise.
42683         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42684         * sysdeps/mach/configure: Likewise.
42685         * sysdeps/mach/hurd/configure: Likewise.
42686         * sysdeps/powerpc/configure: Likewise.
42687         * sysdeps/powerpc/powerpc32/configure: Likewise.
42688         * sysdeps/powerpc/powerpc64/configure: Likewise.
42689         * sysdeps/s390/s390-32/configure: Likewise.
42690         * sysdeps/s390/s390-64/configure: Likewise.
42691         * sysdeps/sh/configure: Likewise.
42692         * sysdeps/sparc/configure: Likewise.
42693         * sysdeps/unix/sysv/linux/configure: Likewise.
42694         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42695         * sysdeps/x86_64/configure: Likewise.
42696         * sysdeps/x86_64/preconfigure: Likewise.
42697
42698 2013-10-29  Andreas Schwab  <schwab@suse.de>
42699
42700         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42701
42702 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42703
42704         * benchtests/pow-inputs: Add new inputs.
42705
42706         * benchtests/exp-inputs: Add new inputs.
42707
42708         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42709         conditional check for return value.
42710         (__cos32): Likewise.
42711
42712 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42713
42714         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42715         to provide a boost for large inputs with word alignment.
42716         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42717         implementation based on optimized PPC64 strcpy.
42718         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42719         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42720         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42721         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42722
42723 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42724
42725         [BZ #2801]
42726         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42727
42728 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42729
42730         [BZ #14876]
42731         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42732         * time/tst-strptime.c (day_tests): Add testcase.
42733
42734 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42735
42736         [BZ #14029]
42737         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42738
42739 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42740
42741         [BZ #16074]
42742         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42743         MAP_FAILED on error.
42744
42745 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42746
42747         [BZ #16072]
42748         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42749         heap for large requests.
42750
42751 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42752
42753         [BZ #9954]
42754         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42755         result if the result has no associated interface.
42756         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42757         interface for all 127.X.Y.Z addresses.
42758
42759 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42760
42761         * locale/iso-639.def: Add Ligurian (lij)
42762
42763 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42764
42765         [BZ #15825]
42766         * sunrpc/rpc_main.c: Document rpcgen -5.
42767
42768 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42769
42770         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42771
42772 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42773
42774         [BZ #10278]
42775         * posix/glob.c: Match only directories when trailing slash is present.
42776         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42777         (main): Add testcase.
42778
42779 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42780
42781         [BZ #15670]
42782         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42783
42784 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42785
42786         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42787         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42788         AUTH_DES and cindex for FIPS 140-2.
42789         (DES Encryption): Add cindex FIPS 46-3.
42790
42791         * locale/locarchive.h (struct locarhandle): Add fname.
42792         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42793         if an optional argument was specified to --list-archive,
42794         otherwise NULL.
42795         * locale/programs/locarchive.c (show_archive_content): Take new
42796         argument fname and pass it via ah.fname to open_archive.
42797         * locale/programs/localedef.h: Update decl.
42798         (open_archive): If AH->fname is non-null, open that file
42799         rather than the default file name, and don't ignore ENOENT.
42800         (create_archive): Set AH.fname to NULL.
42801         (delete_locales_from_archive): Likewise.
42802         (add_locales_to_archive): Likewise.
42803         * locale/programs/locfile.c (write_all_categories): Likewise.
42804
42805 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42806             Aldy Hernandez  <aldyh@redhat.com>
42807
42808         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42809         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42810         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42811         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42812         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42813         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42814         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42815         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42816         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42817         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42818         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42819         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42820         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42821         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42822         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42823         Likewise.
42824         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42825         Likewise.
42826         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42827         Likewise.
42828         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42829         Likewise.
42830         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42831         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42832         Likewise.
42833         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42834         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42835         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42836         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42837         Likewise.
42838         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42839         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42840         * sysdeps/powerpc/preconfigure: Likewise.
42841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42842         Likewise.
42843         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42844         Replace contents of file by #include of <fenv_libc.h>.
42845         * sysdeps/powerpc/soft-fp/sfp-machine.h
42846         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42847         and <sys/prctl.h>.
42848         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42849         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42850         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42851         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42852         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42853         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42854         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42855         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42856         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42857         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42858         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42859         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42861         Allow copysignl PLT reference to be missing.
42862
42863 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42864             Joseph Myers  <joseph@codesourcery.com
42865
42866         [BZ #15948]
42867         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42868         single character.
42869         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42870
42871 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42872
42873         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42874         * elf/tst-tls1.c: Likewise.
42875         * elf/tst-tls10.h: Likewise.
42876         * elf/tst-tls14.c: Likewise.
42877         * elf/tst-tls2.c: Likewise.
42878         * elf/tst-tls3.c: Likewise.
42879         * elf/tst-tls4.c: Likewise.
42880         * elf/tst-tls5.c: Likewise.
42881         * elf/tst-tls6.c: Likewise.
42882         * elf/tst-tls7.c: Likewise.
42883         * elf/tst-tls8.c: Likewise.
42884         * elf/tst-tls9.c: Likewise.
42885         * elf/tst-tlsmod1.c: Likewise.
42886         * elf/tst-tlsmod13.c: Likewise.
42887         * elf/tst-tlsmod13a.c: Likewise.
42888         * elf/tst-tlsmod14a.c: Likewise.
42889         * elf/tst-tlsmod16a.c: Likewise.
42890         * elf/tst-tlsmod16b.c: Likewise.
42891         * elf/tst-tlsmod2.c: Likewise.
42892         * elf/tst-tlsmod3.c: Likewise.
42893         * elf/tst-tlsmod4.c: Likewise.
42894         * elf/tst-tlsmod5.c: Likewise.
42895         * elf/tst-tlsmod6.c: Likewise.
42896
42897 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42898
42899         [BZ #12486]
42900         * malloc/malloc.c: remove checks for statistics.
42901
42902 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42903
42904         [BZ #15277]
42905         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42906         * inet/tst-network.c: Add testcase.
42907
42908 2013-10-17  Andreas Schwab  <schwab@suse.de>
42909
42910         [BZ #15218]
42911         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42912         to determine canonical name.
42913
42914 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42915
42916         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42917         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42918         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42919         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42920         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42921         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42922         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42923         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42924         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42925         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42926         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42927         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42928         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42929         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42930         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42931         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42932         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42933         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42934         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42935         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42936         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42937         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42938         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42939         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42940         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42941         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42942         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42943         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42944         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42945         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42946         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42947         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42948         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42949         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42950         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42951         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42952         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42953         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42954         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42955         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42956         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42957         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42958         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42959         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42960         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42961         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42962         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42963         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42964         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42965         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42966         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42967         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42968         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42969         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42970         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42971         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42972         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42973         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42974
42975 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42976
42977         [BZ #16041]
42978         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42979         make result into a quiet NaN.
42980
42981 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42982
42983         * soft-fp/adddf3.c: Fix horizontal whitespace.
42984         * soft-fp/addsf3.c: Likewise.
42985         * soft-fp/addtf3.c: Likewise.
42986         * soft-fp/divdf3.c: Likewise.
42987         * soft-fp/divsf3.c: Likewise.
42988         * soft-fp/divtf3.c: Likewise.
42989         * soft-fp/double.h: Likewise.
42990         * soft-fp/eqdf2.c: Likewise.
42991         * soft-fp/eqsf2.c: Likewise.
42992         * soft-fp/eqtf2.c: Likewise.
42993         * soft-fp/extenddftf2.c: Likewise.
42994         * soft-fp/extended.h: Likewise.
42995         * soft-fp/extendsfdf2.c: Likewise.
42996         * soft-fp/extendsftf2.c: Likewise.
42997         * soft-fp/extendxftf2.c: Likewise.
42998         * soft-fp/fixdfdi.c: Likewise.
42999         * soft-fp/fixdfsi.c: Likewise.
43000         * soft-fp/fixdfti.c: Likewise.
43001         * soft-fp/fixsfdi.c: Likewise.
43002         * soft-fp/fixsfsi.c: Likewise.
43003         * soft-fp/fixsfti.c: Likewise.
43004         * soft-fp/fixtfdi.c: Likewise.
43005         * soft-fp/fixtfsi.c: Likewise.
43006         * soft-fp/fixtfti.c: Likewise.
43007         * soft-fp/fixunsdfdi.c: Likewise.
43008         * soft-fp/fixunsdfsi.c: Likewise.
43009         * soft-fp/fixunsdfti.c: Likewise.
43010         * soft-fp/fixunssfdi.c: Likewise.
43011         * soft-fp/fixunssfsi.c: Likewise.
43012         * soft-fp/fixunssfti.c: Likewise.
43013         * soft-fp/fixunstfdi.c: Likewise.
43014         * soft-fp/fixunstfsi.c: Likewise.
43015         * soft-fp/fixunstfti.c: Likewise.
43016         * soft-fp/floatdidf.c: Likewise.
43017         * soft-fp/floatdisf.c: Likewise.
43018         * soft-fp/floatditf.c: Likewise.
43019         * soft-fp/floatsidf.c: Likewise.
43020         * soft-fp/floatsisf.c: Likewise.
43021         * soft-fp/floatsitf.c: Likewise.
43022         * soft-fp/floattidf.c: Likewise.
43023         * soft-fp/floattisf.c: Likewise.
43024         * soft-fp/floattitf.c: Likewise.
43025         * soft-fp/floatundidf.c: Likewise.
43026         * soft-fp/floatundisf.c: Likewise.
43027         * soft-fp/floatunditf.c: Likewise.
43028         * soft-fp/floatunsidf.c: Likewise.
43029         * soft-fp/floatunsisf.c: Likewise.
43030         * soft-fp/floatunsitf.c: Likewise.
43031         * soft-fp/floatuntidf.c: Likewise.
43032         * soft-fp/floatuntisf.c: Likewise.
43033         * soft-fp/floatuntitf.c: Likewise.
43034         * soft-fp/fmadf4.c: Likewise.
43035         * soft-fp/fmasf4.c: Likewise.
43036         * soft-fp/fmatf4.c: Likewise.
43037         * soft-fp/gedf2.c: Likewise.
43038         * soft-fp/gesf2.c: Likewise.
43039         * soft-fp/getf2.c: Likewise.
43040         * soft-fp/ledf2.c: Likewise.
43041         * soft-fp/lesf2.c: Likewise.
43042         * soft-fp/letf2.c: Likewise.
43043         * soft-fp/muldf3.c: Likewise.
43044         * soft-fp/mulsf3.c: Likewise.
43045         * soft-fp/multf3.c: Likewise.
43046         * soft-fp/negdf2.c: Likewise.
43047         * soft-fp/negsf2.c: Likewise.
43048         * soft-fp/negtf2.c: Likewise.
43049         * soft-fp/op-1.h: Likewise.
43050         * soft-fp/op-2.h: Likewise.
43051         * soft-fp/op-4.h: Likewise.
43052         * soft-fp/op-8.h: Likewise.
43053         * soft-fp/op-common.h: Likewise.
43054         * soft-fp/quad.h: Likewise.
43055         * soft-fp/single.h: Likewise.
43056         * soft-fp/soft-fp.h: Likewise.
43057         * soft-fp/sqrtdf2.c: Likewise.
43058         * soft-fp/sqrtsf2.c: Likewise.
43059         * soft-fp/sqrttf2.c: Likewise.
43060         * soft-fp/subdf3.c: Likewise.
43061         * soft-fp/subsf3.c: Likewise.
43062         * soft-fp/subtf3.c: Likewise.
43063         * soft-fp/truncdfsf2.c: Likewise.
43064         * soft-fp/trunctfdf2.c: Likewise.
43065         * soft-fp/trunctfsf2.c: Likewise.
43066         * soft-fp/trunctfxf2.c: Likewise.
43067         * soft-fp/unorddf2.c: Likewise.
43068         * soft-fp/unordsf2.c: Likewise.
43069         * soft-fp/unordtf2.c: Likewise.
43070
43071 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
43072
43073         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
43074         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
43075
43076 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
43077
43078         * elf/dl-libc.c: Clear initfini list after freeing.
43079
43080 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
43081
43082         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
43083         * soft-fp/addsf3.c: Likewise.
43084         * soft-fp/addtf3.c: Likewise.
43085         * soft-fp/divdf3.c: Likewise.
43086         * soft-fp/divsf3.c: Likewise.
43087         * soft-fp/divtf3.c: Likewise.
43088         * soft-fp/double.h: Likewise.
43089         * soft-fp/eqdf2.c: Likewise.
43090         * soft-fp/eqsf2.c: Likewise.
43091         * soft-fp/eqtf2.c: Likewise.
43092         * soft-fp/extenddftf2.c: Likewise.
43093         * soft-fp/extended.h: Likewise.
43094         * soft-fp/extendsfdf2.c: Likewise.
43095         * soft-fp/extendsftf2.c: Likewise.
43096         * soft-fp/extendxftf2.c: Likewise.
43097         * soft-fp/fixdfdi.c: Likewise.
43098         * soft-fp/fixdfsi.c: Likewise.
43099         * soft-fp/fixdfti.c: Likewise.
43100         * soft-fp/fixsfdi.c: Likewise.
43101         * soft-fp/fixsfsi.c: Likewise.
43102         * soft-fp/fixsfti.c: Likewise.
43103         * soft-fp/fixtfdi.c: Likewise.
43104         * soft-fp/fixtfsi.c: Likewise.
43105         * soft-fp/fixtfti.c: Likewise.
43106         * soft-fp/fixunsdfdi.c: Likewise.
43107         * soft-fp/fixunsdfsi.c: Likewise.
43108         * soft-fp/fixunsdfti.c: Likewise.
43109         * soft-fp/fixunssfdi.c: Likewise.
43110         * soft-fp/fixunssfsi.c: Likewise.
43111         * soft-fp/fixunssfti.c: Likewise.
43112         * soft-fp/fixunstfdi.c: Likewise.
43113         * soft-fp/fixunstfsi.c: Likewise.
43114         * soft-fp/fixunstfti.c: Likewise.
43115         * soft-fp/floatdidf.c: Likewise.
43116         * soft-fp/floatdisf.c: Likewise.
43117         * soft-fp/floatditf.c: Likewise.
43118         * soft-fp/floatsidf.c: Likewise.
43119         * soft-fp/floatsisf.c: Likewise.
43120         * soft-fp/floatsitf.c: Likewise.
43121         * soft-fp/floattidf.c: Likewise.
43122         * soft-fp/floattisf.c: Likewise.
43123         * soft-fp/floattitf.c: Likewise.
43124         * soft-fp/floatundidf.c: Likewise.
43125         * soft-fp/floatundisf.c: Likewise.
43126         * soft-fp/floatunsidf.c: Likewise.
43127         * soft-fp/floatunsisf.c: Likewise.
43128         * soft-fp/floatuntidf.c: Likewise.
43129         * soft-fp/floatuntisf.c: Likewise.
43130         * soft-fp/floatuntitf.c: Likewise.
43131         * soft-fp/fmadf4.c: Likewise.
43132         * soft-fp/fmasf4.c: Likewise.
43133         * soft-fp/fmatf4.c: Likewise.
43134         * soft-fp/gedf2.c: Likewise.
43135         * soft-fp/gesf2.c: Likewise.
43136         * soft-fp/getf2.c: Likewise.
43137         * soft-fp/ledf2.c: Likewise.
43138         * soft-fp/lesf2.c: Likewise.
43139         * soft-fp/letf2.c: Likewise.
43140         * soft-fp/muldf3.c: Likewise.
43141         * soft-fp/mulsf3.c: Likewise.
43142         * soft-fp/multf3.c: Likewise.
43143         * soft-fp/negdf2.c: Likewise.
43144         * soft-fp/negsf2.c: Likewise.
43145         * soft-fp/negtf2.c: Likewise.
43146         * soft-fp/op-1.h: Likewise.
43147         * soft-fp/op-2.h: Likewise.
43148         * soft-fp/op-4.h: Likewise.
43149         * soft-fp/op-8.h: Likewise.
43150         * soft-fp/op-common.h: Likewise.
43151         * soft-fp/quad.h: Likewise.
43152         * soft-fp/single.h: Likewise.
43153         * soft-fp/soft-fp.h: Likewise.
43154         * soft-fp/sqrtdf2.c: Likewise.
43155         * soft-fp/sqrtsf2.c: Likewise.
43156         * soft-fp/sqrttf2.c: Likewise.
43157         * soft-fp/subdf3.c: Likewise.
43158         * soft-fp/subsf3.c: Likewise.
43159         * soft-fp/subtf3.c: Likewise.
43160         * soft-fp/truncdfsf2.c: Likewise.
43161         * soft-fp/trunctfdf2.c: Likewise.
43162         * soft-fp/trunctfsf2.c: Likewise.
43163         * soft-fp/trunctfxf2.c: Likewise.
43164         * soft-fp/unorddf2.c: Likewise.
43165         * soft-fp/unordsf2.c: Likewise.
43166         * soft-fp/unordtf2.c: Likewise.
43167
43168 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
43169
43170         [BZ #15672]
43171         * misc/error.c (error_tail): Fix possible buffer overflow.
43172
43173 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
43174
43175         [BZ #13028]
43176         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
43177         address.
43178
43179 2013-10-14  P. J. McDermott  <pj@pehjota.net>
43180
43181         [BZ #832]
43182         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
43183         testing pipefail option.
43184
43185 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43186
43187         * soft-fp/double.h: Indent preprocessor directives inside #if.
43188         * soft-fp/extended.h: Likewise.
43189         * soft-fp/op-2.h: Likewise.
43190         * soft-fp/op-4.h: Likewise.
43191         * soft-fp/op-common.h: Likewise.
43192         * soft-fp/quad.h: Likewise.
43193         * soft-fp/single.h: Likewise.
43194         * soft-fp/soft-fp.h: Likewise.
43195
43196 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
43197
43198         * iconv/iconv_prog.c: Fix typos.
43199         * stdio-common/psiginfo-data.h: Likewise.
43200
43201 2013-10-12   Reuben Thomas <rrt@sc3d.org>
43202
43203         [BZ #15764]
43204         * locale/setlocale.c: Fix typo.
43205
43206 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43207
43208         [BZ #16036]
43209         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
43210         signaling NaN arguments.
43211         * soft-fp/unordsf2.c (__unordsf2): Likewise.
43212         * soft-fp/unordtf2.c (__unordtf2): Likewise.
43213
43214         [BZ #14910]
43215         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
43216         unordered operands.
43217         * soft-fp/gesf2.c (__gesf2): Likewise.
43218         * soft-fp/getf2.c (__getf2): Likewise.
43219         * soft-fp/ledf2.c (__ledf2): Likewise.
43220         * soft-fp/lesf2.c (__lesf2): Likewise.
43221         * soft-fp/letf2.c (__letf2): Likewise.
43222
43223         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
43224         * soft-fp/eqsf2.c (__eqsf2): Likewise.
43225         * soft-fp/eqtf2.c (__eqtf2): Likewise.
43226         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
43227         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
43228         * soft-fp/fixdfti.c (__fixdfti): Likewise.
43229         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
43230         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
43231         * soft-fp/fixsfti.c (__fixsfti): Likewise.
43232         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
43233         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
43234         * soft-fp/fixtfti.c (__fixtfti): Likewise.
43235         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
43236         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
43237         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
43238         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
43239         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
43240         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
43241         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
43242         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
43243         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
43244         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
43245         * soft-fp/floatdisf.c (__floatdisf): Likewise.
43246         * soft-fp/floatsisf.c (__floatsisf): Likewise.
43247         * soft-fp/floattidf.c (__floattidf): Likewise.
43248         * soft-fp/floattisf.c (__floattisf): Likewise.
43249         * soft-fp/floattitf.c (__floattitf): Likewise.
43250         * soft-fp/floatundidf.c (__floatundidf): Likewise.
43251         * soft-fp/floatundisf.c (__floatundisf): Likewise.
43252         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
43253         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
43254         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
43255         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
43256         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
43257         * soft-fp/gesf2.c (__gesf2): Likewise.
43258         * soft-fp/getf2.c (__getf2): Likewise.
43259         * soft-fp/ledf2.c (__ledf2): Likewise.
43260         * soft-fp/lesf2.c (__lesf2): Likewise.
43261         * soft-fp/letf2.c (__letf2): Likewise.
43262
43263         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
43264         Undefine and redefine.
43265         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
43266         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
43267         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
43268         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
43269         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43270         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
43271         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43272         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
43273         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43274         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
43275         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43276         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
43277         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43278         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
43279         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43280
43281         [BZ #16032]
43282         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
43283         without decrementing exponent if mantissa >= that for the
43284         denominator, not >.
43285         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
43286         denominator, not >.  Decrement exponent in < case instead of
43287         incrementing in >= case.
43288         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
43289         without decrementing exponent if mantissa >= that for the
43290         denominator, not >.
43291
43292         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
43293         computing saturated result for unsigned overflow.
43294
43295 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
43296             Jeff Law  <law@redhat.com>
43297
43298         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
43299         (atan2Mp): Add systemtap probe marker.
43300         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
43301         (__ieee754_log): Add systemtap probe marker.
43302         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
43303         (atanMp): Add systemtap probe marker.
43304         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
43305         (tanMp): Add systemtap probe marker.
43306         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
43307         (__slowexp): Add systemtap probe marker.
43308         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
43309         (__slowpow): Add systemtap probe marker.
43310         * manual/probes.texi: Document probes.
43311
43312 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
43313
43314         [BZ #15362]
43315         * libio/fileops.c (_IO_new_file_write): Return count of bytes
43316         written.
43317         (_IO_new_file_xsputn): Don't return EOF if nothing has been
43318         written.
43319         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
43320         written to buffer but not flushed.
43321         * libio/iofwrite_u.c:  Likewise.
43322         * libio/iopadn.c:  Return bytes returned even if EOF was
43323         encountered.
43324         * libio/iowpadn.c:  Likewise.
43325         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
43326         if _IO_padn does not write the whole buffer.
43327         [!COMPILE_WPRINTF] (PAD): Likewise.
43328
43329 2013-10-10  David S. Miller  <davem@davemloft.net>
43330
43331         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
43332         directory block.
43333
43334 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43335
43336         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
43337         instead of FSF address.
43338         * soft-fp/fixdfti.c: Likewise.
43339         * soft-fp/fixsfti.c: Likewise.
43340         * soft-fp/fixtfti.c: Likewise.
43341         * soft-fp/fixunsdfti.c: Likewise.
43342         * soft-fp/fixunssfti.c: Likewise.
43343         * soft-fp/fixunstfti.c: Likewise.
43344         * soft-fp/floattidf.c: Likewise.
43345         * soft-fp/floattisf.c: Likewise.
43346         * soft-fp/floattitf.c: Likewise.
43347         * soft-fp/floatuntidf.c: Likewise.
43348         * soft-fp/floatuntisf.c: Likewise.
43349         * soft-fp/floatuntitf.c: Likewise.
43350         * soft-fp/trunctfxf2.c: Likewise.
43351
43352         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
43353         * soft-fp/fixdfti.c: Likewise.
43354         * soft-fp/fixsfti.c: Likewise.
43355         * soft-fp/fixtfti.c: Likewise.
43356         * soft-fp/fixunsdfti.c: Likewise.
43357         * soft-fp/fixunssfti.c: Likewise.
43358         * soft-fp/fixunstfti.c: Likewise.
43359         * soft-fp/floattidf.c: Likewise.
43360         * soft-fp/floattisf.c: Likewise.
43361         * soft-fp/floattitf.c: Likewise.
43362         * soft-fp/floatuntidf.c: Likewise.
43363         * soft-fp/floatuntisf.c: Likewise.
43364         * soft-fp/floatuntitf.c: Likewise.
43365         * soft-fp/trunctfxf2.c: Likewise.
43366
43367 2013-10-10  David S. Miller  <davem@davemloft.net>
43368
43369         * sysdeps/sparc/fpu/libm-test-ulps: Update.
43370
43371 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
43372
43373         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
43374         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
43375         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
43376         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
43377         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
43378         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
43379         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
43380
43381         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
43382         for NaNs before doing comparisons on argument.
43383         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
43384         Likewise.
43385
43386 2013-10-10  Will Newton  <will.newton@linaro.org>
43387
43388         * malloc/hooks.c (memalign_check): Ensure the value of bytes
43389         passed to _int_memalign does not overflow.
43390
43391 2013-10-10  Torvald Riegel  <triegel@redhat.com>
43392
43393         * scripts/bench.pl: Add include-sources directive.
43394         * benchtests/README: Update documentation.
43395
43396 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43397
43398         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
43399         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
43400         instead of FP_INIT_ROUNDMODE.
43401         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
43402         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
43403
43404         [BZ #16034]
43405         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
43406         copy class of input value.
43407         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
43408         not handle exceptions.
43409         * soft-fp/negsf2.c (__negsf2): Likewise.
43410         * soft-fp/negtf2.c (__negtf2): Likewise.
43411         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
43412
43413 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
43414
43415         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
43416         semicolon.  From Linux kernel.
43417
43418 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
43419
43420         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
43421
43422 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
43423
43424         [BZ #156]
43425         * manual/socket.texi: Added statement about buffer
43426         for gethostbyname2_r.
43427
43428 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
43429
43430         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
43431         Use .p2align directive instead, throughout.
43432         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
43433         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
43434         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
43435         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
43436         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
43437         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
43438         * sysdeps/x86_64/strchr.S: Likewise.
43439         * sysdeps/x86_64/strrchr.S: Likewise.
43440
43441 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
43442
43443         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
43444
43445         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
43446
43447         * sysdeps/generic/math_private.h (__mpsin1): Remove
43448         declaration.
43449         (__mpcos1): Likewise.
43450         (__mpsin): New argument __range_reduce.
43451         (__mpcos): Likewise.
43452         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43453         (slow): Use __mpsin and __mpcos.
43454         (slow1): Likewise.
43455         (slow2): Likewise.
43456         (sloww): Likewise.
43457         (sloww1): Likewise.
43458         (sloww2): Likewise.
43459         (bsloww): Likewise.
43460         (bsloww1): Likewise.
43461         (bsloww2): Likewise.
43462         (cslow2): Likewise.
43463         (csloww): Likewise.
43464         (csloww1): Likewise.
43465         (csloww2): Likewise.
43466         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
43467         range_reduce.  Merge in __mpsin1.
43468         (__mpcos): Likewise.
43469         (__mpsin1): Remove.
43470         (__mpcos1): Likewise.
43471
43472 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
43473
43474         * locale/loadlocale.c (_nl_intern_locale_data): Use
43475         LOCFILE_ALIGNED_P.
43476         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
43477         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
43478         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
43479         obstack data is appropriately aligned.
43480         (obstack_int32_grow_fast): Likewise.
43481         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
43482         * locale/programs/locfile.c (add_locale_uint32): Likewise.
43483         (add_locale_uint32_array): Likewise.
43484
43485 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
43486
43487         * benchtests/Makefile: Remove ARGLIST and RET variables.
43488         ($(objpfx)bench-%.c): Pass only function name to the script.
43489         * benchtests/README: Update documentation.
43490         * benchtests/acos-inputs: Add new directives.
43491         * benchtests/acosh-inputs: Likewise.
43492         * benchtests/asin-inputs: Likewise.
43493         * benchtests/asinh-inputs: Likewise.
43494         * benchtests/atan-inputs: Likewise.
43495         * benchtests/atanh-inputs: Likewise.
43496         * benchtests/cos-inputs: Likewise.
43497         * benchtests/cosh-inputs: Likewise.
43498         * benchtests/exp-inputs: Likewise.
43499         * benchtests/log-inputs: Likewise.
43500         * benchtests/pow-inputs: Likewise.
43501         * benchtests/rint-inputs: Likewise.
43502         * benchtests/sin-inputs: Likewise.
43503         * benchtests/sinh-inputs: Likewise.
43504         * benchtests/tan-inputs: Likewise.
43505         * benchtests/tanh-inputs: Likewise.
43506         * scripts/bench.pl: Add support for new directives.
43507
43508 2013-10-07  Alan Modra  <amodra@gmail.com>
43509
43510         * README: Fix careless merge.
43511
43512 2013-10-05  Alan Modra  <amodra@gmail.com>
43513
43514         * NEWS: Mention powerpc64le support and bugs fixed.
43515         * README: Both big-endian and little-endian powerpc64 supported.
43516
43517 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43518
43519         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
43520         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
43521         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
43522         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
43523
43524 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
43525
43526         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
43527         match prototype.
43528
43529 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
43530
43531         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
43532         Move -mhard-float appending from
43533         ports/sysdeps/powerpc/powerpc32/Makefile.
43534         [$(with-fp) = yes] (ASFLAGS): Likewise.
43535         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
43536         * sysdeps/powerpc/nofpu: Move directory from
43537         ports/sysdeps/powerpc/nofpu.
43538         * sysdeps/powerpc/soft-fp: Move directory from
43539         ports/sysdeps/powerpc/soft-fp.
43540         * sysdeps/powerpc/powerpc32/405: Move directory from
43541         ports/sysdeps/powerpc/powerpc32/405.
43542         * sysdeps/powerpc/powerpc32/440: Move directory from
43543         ports/sysdeps/powerpc/powerpc32/440.
43544         * sysdeps/powerpc/powerpc32/464: Move directory from
43545         ports/sysdeps/powerpc/powerpc32/464.
43546         * sysdeps/powerpc/powerpc32/476: Move directory from
43547         ports/sysdeps/powerpc/powerpc32/476.
43548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
43549         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
43551         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
43552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
43553         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
43554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
43555         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
43556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
43557         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
43558         * README: Update for powerpc-*-linux-gnu software floating point
43559         support in libc.
43560
43561         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
43562         case to powerpc/powerpc32*.
43563         * sysdeps/unix/sysv/linux/configure: Regenerated.
43564
43565         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
43566         (_FPU_MASK_OM): Define as 0x04.
43567         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
43568         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
43569         0x00c10080.
43570         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
43571         0x0000003c.
43572         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
43573
43574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
43575         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43576         getcontext_e500.
43577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43578         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43579         setcontext_e500.
43580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
43581         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
43582         and setcontext_e500.
43583
43584 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
43585
43586         * locale/iso-3166.def: Update iso-1366.def and related occurrences
43587
43588 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43589
43590         * manual/threads.texi (Default Thread Attributes): Fix typo.
43591
43592 2013-10-04  Will Newton  <will.newton@linaro.org>
43593
43594         * malloc/Makefile: Add tst-memalign.
43595         * malloc/tst-memalign.c: New file.
43596
43597         * malloc/tst-posix_memalign.c: Add comments.
43598         (do_test): Add comments and call free on all potentially
43599         allocated pointers. Add space after cast.
43600
43601         * malloc/tst-pvalloc.c: Add comments.
43602         (do_test): Add comments and call free on all potentially
43603         allocated pointers. Remove duplicate check for NULL pointer.
43604         Add space after cast.
43605
43606         * malloc/tst-valloc.c: Add comments.
43607         (do_test): Add comments and call free on all potentially
43608         allocated pointers. Remove duplicate check for NULL pointer.
43609         Add space after cast.
43610
43611 2013-10-04  Alan Modra  <amodra@gmail.com>
43612
43613         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43614         Use stdint types in rather than __attribute__((mode())).
43615         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43616
43617 2013-10-04  Alan Modra  <amodra@gmail.com>
43618
43619         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43620         Correct handling of unaligned relocs for little-endian.
43621         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43622
43623 2013-10-04  Alan Modra  <amodra@gmail.com>
43624
43625         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43626         * configure: Regenerate.
43627         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43628         * shlib-versions: Likewise.
43629
43630 2013-10-04  Alan Modra  <amodra@gmail.com>
43631
43632         * string/tester.c (test_memrchr): Increment reported test cycle.
43633
43634 2013-10-04  Alan Modra  <amodra@gmail.com>
43635
43636         * string/test-memcpy.c (do_one_test): When reporting errors, print
43637         string address and don't overrun end of string.
43638
43639 2013-10-04  Alan Modra  <amodra@gmail.com>
43640
43641         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43642         insrdi.  Make better use of reg selection to speed exit slightly.
43643         Schedule entry path a little better.  Remove useless "are we done"
43644         checks on entry to main loop.  Handle wrapping around zero address.
43645         Correct main loop count.  Handle single left-over word from main
43646         loop inline rather than by using loop_small.  Remove extra word
43647         case in loop_small caused by wrong loop count.  Add little-endian
43648         support.
43649         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43650         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43651         cache hint.
43652         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43653         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43654         support.  Avoid rlwimi.
43655         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43656
43657 2013-10-04  Alan Modra  <amodra@gmail.com>
43658
43659         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43660         insrdi.  Formatting.
43661         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43662         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43663         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43664         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43665         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43666         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43667
43668 2013-10-04  Alan Modra  <amodra@gmail.com>
43669
43670         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43671         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43672         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43673         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43674         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43675         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43676         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43677         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43678         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43679         use of regs.  Use power7 mtocrf.  Tidy function tails.
43680
43681 2013-10-04  Alan Modra  <amodra@gmail.com>
43682
43683         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43684         Formatting.  Consistently use rXXX register defines or rN defines.
43685         Use early exit labels that avoid restoring unused non-volatile regs.
43686         Make cr field use more consistent with rWORDn compares.  Rename
43687         regs used as shift registers for unaligned loop, using rN defines
43688         for short lifetime/multiple use regs.
43689         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43690         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43691         addi 1,1,64 to pop stack frame.  Simplify return value code.
43692         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43693
43694 2013-10-04  Alan Modra  <amodra@gmail.com>
43695
43696         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43697         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43698         rather than rlwimi.
43699         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43700         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43701         little-endian support.  Correct typos.
43702         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43703         rather than rlwimi.
43704         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43705         in loop and entry code to keep "and." results.
43706         (strchr): Add little-endian support.  Comment.  Move cntlzd
43707         earlier in tail.
43708         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43709
43710 2013-10-04  Alan Modra  <amodra@gmail.com>
43711
43712         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43713         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43714         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43715         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43716
43717 2013-10-04  Alan Modra  <amodra@gmail.com>
43718
43719         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43720         (rTMP): Define as r11.
43721         (strcmp): Add little-endian support.  Optimise tail.
43722         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43723         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43724         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43725         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43726         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43727         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43728         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43729
43730 2013-10-04  Alan Modra  <amodra@gmail.com>
43731
43732         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43733         little-endian support.  Remove unnecessary "are we done" tests.
43734         Handle "s" wrapping around zero and extremely large "size".
43735         Correct main loop count.  Handle single left-over word from main
43736         loop inline rather than by using small_loop.  Correct comments.
43737         Delete "zero" tail, use "end_max" instead.
43738         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43739
43740 2013-10-04  Alan Modra  <amodra@gmail.com>
43741
43742         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43743         support.  Don't branch over align.
43744         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43745         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43746         support.  Rearrange tmp reg use to suit.  Comment.
43747         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43748
43749 2013-10-04  Alan Modra  <amodra@gmail.com>
43750
43751         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43752
43753 2013-10-04  Alan Modra  <amodra@gmail.com>
43754
43755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43756         conditional form of branch and link when obtaining pc.
43757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43758
43759 2013-10-04  Alan Modra  <amodra@gmail.com>
43760
43761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43762         HIWORD/LOWORD.
43763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43765
43766 2013-10-04  Alan Modra  <amodra@gmail.com>
43767
43768         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43769         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43770         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43771         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43772         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43773         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43774         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43775         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43776         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43777         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43778
43779 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43780             Alistair Popple <alistair@ozlabs.au.ibm.com>
43781             Alan Modra <amodra@gmail.com>
43782
43783         [BZ #15723]
43784         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43785         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43786         _dl_hwcap access for little-endian.
43787         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43788         destroy vmx regs when saving unaligned.
43789         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43790         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43791         destroy vmx regs when saving unaligned.
43792
43793 2013-10-04  Alan Modra  <amodra@gmail.com>
43794
43795         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43796         Don't use a union to pack hi/low value.
43797
43798 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43799
43800         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43801         for little-endian.
43802         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43803         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43804         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43805         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43806         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43807
43808 2013-10-04  Alan Modra  <amodra@gmail.com>
43809
43810         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43811         constants to usual value for .cst8 section, and remove redundant
43812         high address load.
43813         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43814         constant for 0x1p52.  Load little-endian words of double from
43815         correct stack offsets.
43816
43817 2013-10-04  Alan Modra  <amodra@gmail.com>
43818
43819         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43820         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43821         words of double from correct stack offsets.
43822         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43823         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43824         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43825         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43826         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43827         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43828         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43829         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43830         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43831         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43832         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43833         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43834         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43835         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43836         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43837         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43838         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43839
43840 2013-10-04  Alan Modra  <amodra@gmail.com>
43841
43842         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43843         64-bit int/double union.
43844         (_FPU_SETCW): Likewise.
43845         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43846         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43847
43848 2013-10-04  Alan Modra  <amodra@gmail.com>
43849
43850         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43851         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43852
43853 2013-10-04  Alan Modra  <amodra@gmail.com>
43854
43855         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43856         use vector int constants.
43857         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43858
43859 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43860
43861         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43862         array with long long.
43863         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43864         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43865         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43866         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43867         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43868         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43869         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43870         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43871         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43872         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43873         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43874         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43875         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43876
43877 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43878
43879         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43880         (__signbit): Likewise.  Correct for little-endian.
43881         (__signbitl): Call __signbit.
43882         (lrint): Correct for little-endian.
43883         (lrintf): Call lrint.
43884
43885 2013-10-04  Alan Modra  <amodra@gmail.com>
43886
43887         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43888         union 32-bit int array member with 64-bit int array.
43889         (t515, tm256): Double rather than long double.
43890         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43891
43892 2013-10-04  Alan Modra  <amodra@gmail.com>
43893
43894         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43895         Delete.
43896         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43897         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43898         version of math_ldbl.h.
43899
43900 2013-10-04  Alan Modra  <amodra@gmail.com>
43901
43902         [BZ #15734], [BZ #15735]
43903         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43904         all uses of ieee875 long double macros and unions.  Simplify test
43905         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43906         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43907         normalize after ldbl_extract_mantissa, and don't add hidden bit
43908         already handled.  Don't treat low word of ieee854 mantissa like
43909         low word of IBM long double and mask off bit when testing for
43910         zero.
43911         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43912         all uses of ieee875 long double macros and unions.  Simplify tests
43913         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43914         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43915         two1022, instead use their values.  Recognise that tests for large
43916         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43917         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43918         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43919         test for 0.0L and nan.  Correct negation.
43920         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43921         ieee875 long double macros and unions.  Correct output for large
43922         magnitude x.  Correct absolute value calculation.
43923         (__erfcl): Likewise.
43924         * math/libm-test.inc: Add tests for errors discovered in IBM long
43925         double versions of fmodl, remainderl, erfl and erfcl.
43926
43927 2013-10-04  Alan Modra  <amodra@gmail.com>
43928
43929         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43930         all uses of ieee854 long double macros and unions.  Simplify tests
43931         for long doubles that are fully specified by the high double.
43932         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43933         Likewise.
43934         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43935         Remove dead code too.
43936         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43937         (__ieee754_ynl): Likewise.
43938         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43939         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43940         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43941         Remove dead code too.
43942         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43943         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43944         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43945         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43946         Simplify.
43947         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43948         Simplify.
43949         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43950         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43951         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43952         Comment on variable precision.
43953         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43954         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43955         Likewise.
43956         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43957         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43958         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43959         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43960         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43961
43962 2013-10-04  Alan Modra  <amodra@gmail.com>
43963
43964         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43965         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43966         all uses of ieee854 long double macros and unions.
43967         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43968         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43969         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43970         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43971         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43972         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43973         Likewise.
43974         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43975         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43976         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43977         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43978         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43979         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43980         Simplify sign and nan test too.
43981         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43982         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43983         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43984         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43985         Likewise.
43986         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43987         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43988         Likewise.
43989         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43990         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43991         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43992         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43993         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43994         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43995
43996 2013-10-04  Alan Modra  <amodra@gmail.com>
43997
43998         * stdio-common/printf_size.c (__printf_size): Don't use
43999         union ieee854_long_double in fpnum union.
44000         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
44001         signbit macro to retrieve sign from long double.
44002         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
44003         retrieve sign from long double.
44004         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
44005         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
44006         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
44007         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
44008         * math/test-misc.c (main): Don't use union ieee854_long_double.
44009
44010 2013-10-04  Alan Modra  <amodra@gmail.com>
44011
44012         [BZ #15680]
44013         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
44014         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
44015         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
44016         calculation.  Remove unnecessary test for denormal exponent.
44017         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
44018         Correct handling of denormals.  Avoid undefined shift behaviour.
44019         Correct normalisation of low mantissa when low double is denormal.
44020         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
44021         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
44022         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
44023         Correct normalisation of low mantissa.  Test for overflow of high
44024         mantissa and normalise.
44025         (ldbl_nearbyint): Use more readable constant for two52.
44026         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
44027         (__mpn_construct_long_double): Fix test for overflow of high
44028         mantissa and correct normalisation.  Avoid undefined shift.
44029
44030 2013-10-04  Alan Modra  <amodra@gmail.com>
44031
44032         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44033         (union ibm_extended_long_double): Define as an array of ieee754_double.
44034         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
44035         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
44036         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
44037         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
44038         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44039         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
44040         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
44041         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
44042         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
44043         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
44044         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
44045
44046 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
44047
44048         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
44049         page size instead of calling getpagesize.
44050
44051         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
44052         (LOCFILE_ALIGN_MASK): Likewise.
44053         (LOCFILE_ALIGN_UP): Likewise.
44054         (LOCFILE_ALIGNED_P): Likewise.
44055         * locale/programs/ld-collate.c (collate_output): Use the new
44056         macros instead of __alignof__ (int32_t).
44057         * locale/weight.h (findidx): Likewise.
44058
44059 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
44060
44061         [BZ #431]
44062         * manual/string.texi: Fix strncat and wcsncat.
44063
44064 2013-10-03  Brooks Moses  <bmoses@google.com>
44065
44066         [BZ #15915]
44067         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
44068         * Makerules: ...here, and adjust associated comments.
44069
44070 2013-10-02  Will Newton  <will.newton@linaro.org>
44071
44072         * malloc/Makefile: Add tst-pvalloc.
44073         * malloc/tst-pvalloc.c: New file.
44074
44075 2013-10-02  Will Newton  <will.newton@linaro.org>
44076
44077         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
44078         improve test coverage.
44079
44080 2013-10-02  Will Newton  <will.newton@linaro.org>
44081
44082         * malloc/Makefile: Add tst-posix_memalign.
44083         * malloc/tst-posix_memalign.c: New file.
44084
44085 2013-10-01  Eric Blake  <eblake@redhat.com>
44086
44087         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
44088         Use __THROWNL rather than __THROW on static functions.
44089
44090 2013-09-30  Petr Machata  <pmachata@redhat.com>
44091
44092         * elf/elf.h (R_AARCH64_ABS16): New macro.
44093         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
44094         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
44095         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
44096         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
44097         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
44098         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
44099         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
44100         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
44101         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
44102         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
44103         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
44104         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
44105         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
44106         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
44107         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
44108         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
44109         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
44110         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
44111         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
44112         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
44113         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
44114         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
44115         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
44116         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
44117         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
44118         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
44119         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
44120         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
44121         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
44122         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
44123         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
44124         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
44125         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
44126         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
44127         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
44128         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
44129         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
44130         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
44131         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
44132         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
44133         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
44134         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
44135         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
44136         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
44137         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
44138         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
44139         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
44140         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
44141         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
44142         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
44143         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
44144         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
44145         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
44146         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
44147         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
44148         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
44149         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
44150         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
44151         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
44152         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
44153         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
44154         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
44155         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
44156         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
44157         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
44158         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
44159         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
44160         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
44161         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
44162         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
44163         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
44164         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
44165         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
44166         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
44167         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
44168         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
44169         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
44170         (R_AARCH64_TLSDESC_LDR): Likewise.
44171         (R_AARCH64_TLSDESC_ADD): Likewise.
44172         (R_AARCH64_TLSDESC_CALL): Likewise.
44173
44174 2013-09-30  Andreas Schwab  <schwab@suse.de>
44175
44176         [BZ #15048]
44177         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
44178         the nss database lookup.
44179         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44180         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44181
44182 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
44183
44184         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
44185
44186 2013-09-28  P. J. McDermott  <pj@pehjota.net>
44187
44188         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
44189         ${Bash-specific parameter/pattern/string} parameter expansion.
44190         * sysdeps/unix/make-syscalls.sh: Likewise.
44191
44192 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44193
44194         * sysdeps/sh/stackguard-macros.h: New file.
44195
44196 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
44197
44198         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
44199         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
44200         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
44201         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
44202         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44203         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
44204
44205 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44206
44207         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
44208         Fix thread ID register.
44209
44210 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
44211
44212         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
44213         [POSIX || UNIX98]: Require rather than permitting all symbols from
44214         <time.h>.
44215         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
44216         element of struct sched_param.
44217         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
44218         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
44219         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
44220         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
44221         constant.
44222
44223 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
44224
44225         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
44226         argument calculation.
44227
44228 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44229
44230         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
44231         Expect macro.
44232         [POSIX] (pthread_attr_t): Do not require type.
44233         [POSIX] (pthread_cond_t): Likewise.
44234         [POSIX] (pthread_condattr_t): Likewise.
44235         [POSIX] (pthread_key_t): Likewise.
44236         [POSIX] (pthread_mutex_t): Likewise.
44237         [POSIX] (pthread_mutexattr_t): Likewise.
44238         [POSIX] (pthread_once_t): Likewise.
44239         [POSIX] (pthread_t): Likewise.
44240         [POSIX-based standards] (pthread_atfork): Expect function.
44241
44242 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44243             Richard Sandiford  <richard@codesourcery.com>
44244
44245         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
44246         (swap_endianness_p): New extern variable.
44247         (set_big_endian): New inline function.
44248         (maybe_swap_uint32): Likewise.
44249         (maybe_swap_uint32_array): Likewise.
44250         (maybe_swap_uint32_obstack): Likewise.
44251         * locale/programs/locfile.c: Include <stdbool.h>.
44252         (swap_endianness_p): New variable.
44253         (add_locale_uint32): Call maybe_swap_uint32.
44254         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
44255         (write_locale_data): Call maybe_swap_uint32_array.
44256         * locale/programs/ld-collate.c (obstack_int32_grow): Call
44257         maybe_swap_uint32.
44258         (obstack_int32_grow_fast): Likewise.
44259         (output_weightwc): Call maybe_swap_uint32_obstack.
44260         (collate_output): Likewise.
44261         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
44262         (OPT_LITTLE_ENDIAN): Likewise.
44263         (options): Add --little-endian and --big-endian options.
44264         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
44265         * locale/programs/locarchive.c: Include "locfile.h".
44266         (GET): New macro.
44267         (SET): Likewise.
44268         (INC): Likewise.
44269         (create_archive): Use the new macros to access fields of
44270         structures directly mapped from or written to locale archives.
44271         (oldlocrecentcmp): Likewise.
44272         (enlarge_archive): Likewise.
44273         (insert_name): Likewise.
44274         (add_alias): Likewise.
44275         (add_locale): Likewise.
44276         (delete_locales_from_archive): Likewise.
44277         (show_archive_content): Likewise.
44278         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
44279         locale data.
44280
44281 2013-09-24  Roland McGrath  <roland@hack.frob.com>
44282
44283         * manual/freemanuals.texi: Updated from (newly) canonical copy at
44284         http://www.gnu.org/doc/freemanuals.texi.
44285         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
44286
44287 2013-09-24  Will Newton  <will.newton@linaro.org>
44288
44289         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
44290         macro.
44291
44292 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
44293
44294         * locale/hashval.h (compute_hashval): Interpret bytes of key as
44295         unsigned char.
44296
44297 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
44298
44299         * manual/threads.texi (POSIX Threads): Fix a typo.
44300
44301 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
44302
44303         [BZ #14547]
44304         * string/tst-strcoll-overflow.c: New test case.
44305         * string/Makefile (xtests): Add tst-strcoll-overflow.
44306         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
44307         cache if string sizes may cause integer overflow.
44308
44309         [BZ #14547]
44310         * string/strcoll_l.c (coll_seq): New members rule, idx,
44311         save_idx and back_us.
44312         (get_next_seq_nocache): New function.
44313         (do_compare_nocache): New function.
44314         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
44315         when malloc fails.
44316
44317 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
44318
44319         [BZ #15754]
44320         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
44321         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
44322         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
44323
44324         [BZ #15754]
44325         * elf/Makefile (tests): Add tst-ptrguard1.
44326         (tests-static): Add tst-ptrguard1-static.
44327         (tst-ptrguard1-ARGS): Define.
44328         (tst-ptrguard1-static-ARGS): Define.
44329         * elf/tst-ptrguard1.c: New file.
44330         * elf/tst-ptrguard1-static.c: New file.
44331         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
44332         * sysdeps/i386/stackguard-macros.h: Likewise.
44333         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
44334         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
44335         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
44336         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
44337         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
44338         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
44339
44340 2013-09-23  Hector Marco  <hecmargi@upv.es>
44341             Ismael Ripoll  <iripoll@disca.upv.es>
44342             Carlos O'Donell  <carlos@redhat.com>
44343
44344         [BZ #15754]
44345         * sysdeps/generic/stackguard-macros.h: Define
44346         __pointer_chk_guard_local and POINTER_CHK_GUARD.
44347         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
44348         Define __pointer_chk_guard_local.
44349         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
44350         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
44351
44352 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
44353
44354         [BZ #15859]
44355         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
44356
44357 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
44358
44359         * include/string.h (__ffs): Declare as hidden.
44360         * string/ffs.c (__ffs): Define as hidden.
44361         * sysdeps/i386/ffs.c (__ffs): Likewise.
44362         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
44363         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
44364         * sysdeps/s390/ffs.c (__ffs): Likewise.
44365         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
44366
44367 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
44368
44369         * NEWS: Mention malloc probes.
44370
44371         * malloc/arena.c (new_heap): New memory_heap_new probe.
44372         (grow_heap): New memory_heap_more probe.
44373         (shrink_heap): New memory_heap_less probe.
44374         (heap_trim): New memory_heap_free probe.
44375         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
44376         (systrim): New memory_sbrk_less probe.
44377         * manual/probes.texi: Document them.
44378
44379         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
44380         * manual/probes.texi: Document it.
44381
44382         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
44383         (__libc_realloc): Add memory_realloc_retry probe.
44384         (__libc_memalign): Add memory_memalign_retry probe.
44385         (__libc_valloc): Add memory_valloc_retry probe.
44386         (__libc_pvalloc): Add memory_pvalloc_retry probe.
44387         (__libc_calloc): Add memory_calloc_retry probe.
44388         * manual/probes.texi: Document them.
44389
44390         * malloc/arena.c (get_free_list): Add probe
44391         memory_arena_reuse_free_list.
44392         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
44393         and memory_arena_reuse.
44394         (arena_get2) [!PER_THREAD]: Likewise.
44395         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
44396         memory_arena_reuse_realloc.
44397         * manual/probes.texi: Document them.
44398
44399         * malloc/malloc.c (__libc_free): Add
44400         memory_mallopt_free_dyn_thresholds probe.
44401         (__libc_mallopt): Add multiple memory_mallopt probes.
44402         * manual/probes.texi: Document them.
44403
44404         * malloc/malloc.c: Include stap-probe.h.
44405         (__libc_mallopt): Add memory_mallopt probe.
44406         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
44407         * manual/probes.texi: New.
44408         * manual/Makefile (chapters): Add probes.
44409         * manual/threads.texi: Set next node.
44410
44411 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
44412
44413         [BZ #15963, #13985]
44414         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
44415         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
44416         Add `Chinese' to `nan' entry name.
44417
44418 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44419
44420         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
44421         (POLYNOMIAL): Likewise.
44422         (TAYLOR_SINCOS): Likewise.
44423         (TAYLOR_SLOW): Likewise.
44424         (__sin): Use TAYLOR_SINCOS.
44425         (__cos): Likewise.
44426         (slow): Use TAYLOR_SLOW.
44427         (sloww): Likewise.
44428         (bsloww): Likewise.
44429         (csloww): Likewise.
44430
44431 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44432
44433         * stdlib/strtod_l.c: Fix buffer overrun.
44434
44435 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44436
44437         * benchtests/Makefile (bench): Add sincos.
44438         * benchtests/bench-sincos.c: New file.
44439
44440         * math/libm-test.inc (cos_test_data): New test inputs.
44441         (sin_test_data): Likewise.
44442
44443         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
44444         macro.
44445         (__sin): Use it.
44446         (__cos): Likewise.
44447         (slow1): Likewise.
44448         (slow2): Likewise.
44449         (sloww1): Likewise.
44450         (sloww2): Likewise.
44451         (bsloww1): Likewise.
44452         (bsloww2): Likewise.
44453         (cslow2): Likewise.
44454         (csloww1): Likewise.
44455         (csloww2): Likewise.
44456
44457         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
44458         function.
44459         (__sin): Use it.
44460         (__cos): Likewise.
44461
44462         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
44463         gotos.
44464         (__cos): Likewise.
44465
44466 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
44467
44468         * config.h.in (HAVE_MIPS_NAN2008): New macro.
44469         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
44470         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
44471         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
44472         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
44473         * elf/cache.c (print_entry): Handle the new cache flags.
44474
44475 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44476             Aldy Hernandez  <aldyh@redhat.com>
44477
44478         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
44479         Change condition to [_SOFT_FLOAT].
44480         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
44481         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
44482         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
44483         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
44484         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
44485         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
44486         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
44487         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
44488         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
44489         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
44490         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
44491         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
44492         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
44493         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
44494         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
44495         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
44496         declaration.
44497
44498 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44499
44500         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
44501         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44502         (__longjmp): Use LOAD_GP to load saved GPRs.
44503         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
44504         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44505         (__sigsetjmp): Use SAVE_GP to save GPRs.
44506
44507         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
44508         Do not append -msoft-float.
44509         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
44510
44511 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
44512
44513         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
44514
44515 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
44516
44517         [BZ #15966]
44518         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
44519         (_FPU_GETCW): Use initial "__" on variable and field names but not
44520         on macro parameter name.
44521         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
44522         parentheses around reference to macro parameter.
44523
44524 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
44525
44526         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
44527         prototype.
44528         (ctype_startup): Use uint32_t in cast and sizeof for
44529         ctype->charnames.
44530
44531 2013-09-11  Jia Liu  <proljc@gmail.com>
44532
44533         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
44534         __daddr_t_defined.
44535         [__FreeBSD__]: Likewise.
44536
44537 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
44538
44539         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
44540         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
44541         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
44542         (strchr): Remove __strchr_sse42 ifunc selection.
44543         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
44544         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
44545
44546 2013-09-11  Will Newton  <will.newton@linaro.org>
44547
44548         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
44549         parameter to RES. Remove hardcoded 1000 value.
44550         * benchtests/bench-skeleton.c (main): Pass RES parameter
44551         to TIMING_INIT and multiply result by 1000.
44552
44553 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44554
44555         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44556
44557 2013-09-11  Andreas Schwab  <schwab@suse.de>
44558
44559         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
44560         if not defined.
44561         (O_TMPFILE) [__USE_GNU]: Define.
44562         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
44563         Define.
44564
44565 2013-09-11  Will Newton  <will.newton@linaro.org>
44566
44567         [BZ #15857]
44568         * malloc/malloc.c (__libc_memalign): Check the value of bytes
44569         does not overflow.
44570
44571 2013-09-11  Will Newton  <will.newton@linaro.org>
44572
44573         [BZ #15856]
44574         * malloc/malloc.c (__libc_valloc): Check the value of bytes
44575         does not overflow.
44576
44577 2013-09-11  Will Newton  <will.newton@linaro.org>
44578
44579         [BZ #15855]
44580         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
44581         does not overflow.
44582
44583 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
44584
44585         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
44586         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44587         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44588         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44589         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44590
44591 2013-09-10  Allan McRae  <allan@archlinux.org>
44592
44593         [BZ #15748]
44594         * manual/arith.texi (Parsing of Floats): Clarify
44595         cross-reference.
44596
44597         [BZ #15849]
44598         * manual/install.texi (Running make install): Mention
44599         --enable-pt-chown.
44600         * INSTALL: Regenerated.
44601
44602 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
44603
44604         * csu/init-first.c (_init): Remove the !SHARED condition around
44605         FPU control word initialization.
44606         * elf/dl-support.c (_dl_fpu_control): New variable.
44607         (_dl_aux_init) <AT_FPUCW>: Initialize it.
44608         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
44609         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
44610         * math/test-fpucw-static.c: New file.
44611         * math/test-fpucw-ieee.c: New file.
44612         * math/test-fpucw-ieee-static.c: New file.
44613         * math/Makefile (tests): Add `test-fpucw-ieee' and
44614         `$(tests-static)'.
44615         (tests-static): New variable.
44616         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
44617         dependency to...
44618         [($(build-shared),yes)]
44619         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
44620         ... this.
44621         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44622         New dependency.
44623
44624 2013-09-09  Allan McRae  <allan@archlinux.org>
44625
44626         [BZ #15939]
44627         * manual/string.texi (Collation Functions): Fix typo in
44628         strcoll example.
44629         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44630
44631         [BZ #15893]
44632         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44633
44634         [BZ #15892]
44635         * libio/memstream.c (open_memstream): Fix memory leak.
44636         * libio/wmemstream.c (open_wmemstream): Likewise.
44637
44638         [BZ #15895]
44639         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44640
44641 2013-09-09  Will Newton  <will.newton@linaro.org>
44642
44643         * malloc/Makefile: Add tst-realloc to tests.
44644         * malloc/tst-realloc.c: New file.
44645
44646 2013-09-09  Allan McRae  <allan@archlinux.org>
44647
44648         [BZ #15844]
44649         * COPYING: Update from GNU website to fix FSF address.
44650         * COPYING.LIB: Likewise.
44651
44652 2013-09-06  David S. Miller  <davem@davemloft.net>
44653
44654         * po/zh_TW.po: Update Chinese (traditional) translation from
44655         translation project.
44656
44657 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44658             Joseph Myers  <joseph@codesourcery.com>
44659
44660         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44661         "localeinfo.h".
44662         (obstack_chunk_alloc): New macro.
44663         (obstack_chunk_free): Likewise.
44664         (record_offset): New function.
44665         (init_locale_data): Likewise.
44666         (align_locale_data): Likewise.
44667         (add_locale_empty): Likewise.
44668         (add_locale_raw_data): Likewise.
44669         (add_locale_raw_obstack): Likewise.
44670         (add_locale_string): Likewise.
44671         (add_locale_wstring): Likewise.
44672         (add_locale_uint32): Likewise.
44673         (add_locale_uint32_array): Likewise.
44674         (add_locale_char): Likewise.
44675         (start_locale_structure): Likewise.
44676         (end_locale_structure): Likewise.
44677         (start_locale_prelude): Likewise.
44678         (end_locale_prelude): Likewise.
44679         (write_locale_data): Take locale_file structure rather than an
44680         iovec.
44681         * locale/programs/locfile.h: Include "obstack.h".
44682         (struct locale_file): Change to store locale file contents instead
44683         of header.
44684         (init_locale_data): New prototype.
44685         (align_locale_data): Likewise.
44686         (add_locale_empty): Likewise.
44687         (add_locale_raw_data): Likewise.
44688         (add_locale_raw_obstack): Likewise.
44689         (add_locale_string): Likewise.
44690         (add_locale_wstring): Likewise.
44691         (add_locale_uint32): Likewise.
44692         (add_locale_uint32_array): Likewise.
44693         (add_locale_char): Likewise.
44694         (start_locale_structure): Likewise.
44695         (end_locale_structure): Likewise.
44696         (start_locale_prelude): Likewise.
44697         (end_locale_prelude): Likewise.
44698         (write_locale_data): Update prototype.
44699         * locale/programs/3level.h (struct TABLE): Remove result field.
44700         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44701         Use new locale_file interface.
44702         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44703         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44704         * locale/programs/ld-address.c (address_output): Use new
44705         locale_file interface.
44706         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44707         NO_ADD_LOCALE.
44708         (collate_finish): Don't call collseq_table_finalize.
44709         (collate_output): Use new locale_file interface.
44710         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44711         in file.
44712         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44713         (TABLE): Move defines earlier in file.
44714         (ELEMENT): Likewise.
44715         (DEFAULT): Likewise.
44716         (wctrans_table_add): Move macro and inline function earlier in
44717         file.
44718         (struct wctype_table): Move type earlier in file.
44719         (add_locale_wctype_table): New static prototype.
44720         (struct locale_ctype_t): Use logical types instead of struct iovec
44721         pointers for members.
44722         (ctype_output): Use new locale_file interface.
44723         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44724         new locale_file interface.
44725         (allocate_arrays): Update for use of new locale_file interface.
44726         * locale/programs/ld-identification.c (identification_output): Use
44727         new locale_file interface.
44728         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44729         * locale/programs/ld-messages.c (messages_output): Likewise.
44730         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44731         * locale/programs/ld-name.c (name_output): Likewise.
44732         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44733         * locale/programs/ld-paper.c (paper_output): Likewise.
44734         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44735         * locale/programs/ld-time.c (time_output): Likewise.
44736
44737 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44738
44739         * benchtests/Makefile: Add memrchr benchmark.
44740         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44741         benchmark as memrchr.
44742         * benchtests/bench-memrchr-ifunc.c: New file.
44743         * benchtests/bench-memrchr.c: New file.
44744
44745 2013-09-06   Will Newton  <will.newton@linaro.org>
44746
44747         * benchtests/Makefile (string-bench): Add memcpy.
44748
44749 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44750             Cong Wang  <amwang@redhat.com>
44751
44752         [BZ #15850]
44753         * sysdeps/unix/sysv/linux/bits/in.h
44754         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44755         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44756         before __USE_KERNEL_IPV6_DEFS uses.
44757         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44758         IPPROTO_BEETPH.
44759         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44760         sockaddr_in6, or ipv6_mreq.
44761
44762 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44763
44764         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44765         memory access for final bytes in some large inputs.
44766         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44767
44768 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44769
44770         * string/test-memrchr.c: New file.
44771         * string/test-memrchr-ifunc.c: New file.
44772         * string/Makefile: Add new memrchr testcase.
44773
44774 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44775
44776         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44777         fanotify_init returns EPERM.
44778
44779 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44780
44781         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44782         errors.
44783         (top level): Treat second token from macro or constant entries for
44784         allowed headers as allowed.
44785         * include/complex.h: Condition internal declarations on
44786         [!_ISOMAC].
44787         * include/fenv.h: Condition include of <stdbool.h> and internal
44788         declarations on [!_ISOMAC].
44789
44790 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44791
44792         [BZ #15923]
44793         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44794
44795 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44796
44797         * configure.in (--enable-versioning): Remove configure option.
44798         (libc_cv_asm_symver_directive): Remove configure test.
44799         (libc_cv_ld_version_script_option): Likewise.
44800         (VERSIONING): Remove variable and AC_SUBST.
44801         (DO_VERSIONING): Remove AC_DEFINE.
44802         * configure: Regenerated.
44803         * config.h.in (DO_VERSIONING): Remove macro.
44804         * Makerules [$(versioning) = yes]: Change conditionals to
44805         [$(build-shared) = yes].
44806         * config.make.in (versioning): Remove variable.
44807         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44808         [$(build-shared) = yes].
44809         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44810         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44811         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44812         [$(build-shared) = yes].
44813         * extra-lib.mk [$(versioning) = yes]: Likewise.
44814         * hurd/Makefile [$(versioning) = yes]: Likewise.
44815         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44816         [SHARED].
44817         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44818         [SHARED].
44819         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44820         [SHARED && !NO_HIDDEN].
44821         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44822         [SHARED].
44823         [SHARED && DO_VERSIONING]: Likewise..
44824         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44825         [$(build-shared) = yes].
44826         * manual/install.texi (--disable-versioning): Remove
44827         documentation.
44828         * INSTALL: Regenerated.
44829         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44830         to [SHARED].
44831         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44832         [$(build-shared) = yes].
44833         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44834         * sysdeps/i386/i686/multiarch/strstr-c.c
44835         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44836         [SHARED && !NO_HIDDEN].
44837         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44838         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44839         * sysdeps/powerpc/powerpc32/dl-machine.c
44840         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44841         * sysdeps/powerpc/powerpc32/sysdep.h
44842         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44843         to [SHARED && PIC && !NO_HIDDEN].
44844         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44845         conditional to [SHARED].
44846
44847 2013-09-04   Will Newton  <will.newton@linaro.org>
44848
44849         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44850         * benchtests/bench-string.h: Include bench-timing.h instead
44851         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44852         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44853         call to HP_TIMING_DIFF_INIT.
44854         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44855         instead of hp-timing.h macros.
44856         * benchtests/bench-memchr.c: Likewise.
44857         * benchtests/bench-memcmp.c: Likewise.
44858         * benchtests/bench-memcpy.c: Likewise.
44859         * benchtests/bench-memmem.c: Likewise.
44860         * benchtests/bench-memmove.c: Likewise.
44861         * benchtests/bench-memset.c: Likewise.
44862         * benchtests/bench-rawmemchr.c: Likewise.
44863         * benchtests/bench-strcasecmp.c: Likewise.
44864         * benchtests/bench-strcasestr.c: Likewise.
44865         * benchtests/bench-strcat.c: Likewise.
44866         * benchtests/bench-strchr.c: Likewise.
44867         * benchtests/bench-strcmp.c: Likewise.
44868         * benchtests/bench-strcpy.c: Likewise.
44869         * benchtests/bench-strcpy_chk.c: Likewise.
44870         * benchtests/bench-strlen.c: Likewise.
44871         * benchtests/bench-strncasecmp.c: Likewise.
44872         * benchtests/bench-strncat.c: Likewise.
44873         * benchtests/bench-strncmp.c: Likewise.
44874         * benchtests/bench-strncpy.c: Likewise.
44875         * benchtests/bench-strnlen.c: Likewise.
44876         * benchtests/bench-strpbrk.c: Likewise.
44877         * benchtests/bench-strrchr.c: Likewise.
44878         * benchtests/bench-strspn.c: Likewise.
44879         * benchtests/bench-strstr.c: Likewise.
44880
44881 2013-09-04  Will Newton  <will.newton@linaro.org>
44882
44883         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44884
44885 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44886
44887         [BZ #15427]
44888         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44889         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44890         * math/libm-test.inc (lgamma_test_data): Add more tests.
44891         * sysdeps/i386/fpu/libm-test-ulps: Update.
44892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44893
44894 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44895
44896         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44897         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44898         Add ifunc.
44899         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44900         Add strcmp-sse2-unaligned
44901         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44902
44903 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44904
44905         * Versions.def (libc): Add GLIBC_2.19.
44906
44907 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44908
44909         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44910         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44911
44912 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44913
44914         [BZ #14155]
44915         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44916         intermediate calculations in recurrence.
44917         (__ieee754_ynf): Likewise.
44918         * math/libm-test.inc (jn_test_data): Do not allow spurious
44919         underflow exception.  Add more tests.
44920         (yn_test_data): Add more tests.
44921         * sysdeps/i386/fpu/libm-test-ulps: Update.
44922         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44923
44924 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44925
44926         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44927
44928 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44929
44930         * csu/init-first.c: Fix then/than typos.
44931         * locale/programs/ld-collate.c: Likewise.
44932         * locale/programs/linereader.h: Likewise.
44933         * manual/charset.texi: Likewise.
44934         * manual/filesys.texi: Likewise.
44935         * manual/stdio.texi: Likewise.
44936         * manual/string.texi: Likewise.
44937         * stdlib/fmtmsg.c: Likewise.
44938         * sysdeps/i386/stpncpy.S: Likewise.
44939         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44940         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44941         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44942         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44943
44944 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44945
44946         * elf/dl-open.c: Fix typos.
44947         * iconvdata/gbbig5.c: Likewise.
44948         * iconvdata/iso-2022-jp.c: Likewise.
44949         * iconv/gconv_int.h: Likewise.
44950         * iconv/loop.c: Likewise.
44951         * nis/rpcsvc/nis.h: Likewise.
44952         * resolv/ns_name.c: Likewise.
44953         * stdio-common/vfscanf.c: Likewise.
44954         * streams/stropts.h: Likewise.
44955         * sunrpc/rpc_thread.c: Likewise.
44956         * sysdeps/i386/strpbrk.S: Likewise.
44957         * sysdeps/ieee754/k_standard.c: Likewise.
44958         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44959         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44960         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44961         * sysdeps/mach/hurd/profil.c: Likewise.
44962         * sysdeps/s390/dl-procinfo.h: Likewise.
44963         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44964         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44965         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44966         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44967         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44968
44969 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44970
44971         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44972         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44973
44974 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44975
44976         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44977         aix specific files.
44978         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44979         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44980         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44981         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44982         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44983         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44984         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44985         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44986
44987 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44988             Roland McGrath  <roland@hack.frob.com>
44989
44990         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44991         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44992
44993 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44994
44995         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44996         __executable_start symbol instead of _start.
44997
44998 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44999
45000         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
45001         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
45002         Move macros to...
45003         * sysdeps/gnu/ldsodefs.h: ... this new file.
45004
45005         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
45006         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
45007         instead of ELFOSABI_LINUX.
45008
45009         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
45010         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
45011         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
45012         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
45013         Likewise.
45014         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
45015         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
45016         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
45017         Likewise.
45018         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
45019         (ibm_extended_long_double): Add ieee_nan member.
45020         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
45021         (do_test): New function.
45022
45023         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
45024         TEST_TRUNC.
45025         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
45026         functions, renamed from truncdfsf_test, trunctfsf_test,
45027         trunctfdf_test.
45028         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
45029         functions.
45030         (do_test): Run all these.
45031
45032 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
45033
45034         * argp/argp-help.c: Fix typos.
45035         * argp/argp-parse.c: Likewise.
45036         * debug/backtracesyms.c: Likewise.
45037         * elf/elf.h: Likewise.
45038         * malloc/malloc.c: Likewise.
45039         * nis/nis_print.c: Likewise.
45040         * resolv/res_comp.c: Likewise.
45041         * stdlib/stdlib.h: Likewise.
45042         * sunrpc/clnt_tcp.c: Likewise.
45043         * sunrpc/clnt_udp.c: Likewise.
45044         * sunrpc/clnt_unix.c: Likewise.
45045         * sysdeps/unix/bsd/ptsname.c: Likewise.
45046         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
45047         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
45048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
45049         Likewise.
45050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
45051         Likewise.
45052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
45053         Likewise.
45054         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
45055
45056 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
45057
45058         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
45059         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
45060
45061 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
45062
45063         [BZ #15897]
45064         * dlfcn/Makefile (tests): Add bug-dl-leaf.
45065         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
45066         ($(objpfx)bug-dl-leaf): New rule.
45067         ($(objpfx)bug-dl-leaf.so): Likewise.
45068         ($(objpfx)bug-dl-leaf.out): Likewise.
45069         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
45070         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
45071         * dlfcn/bug-dl-leaf.c: New test.
45072         * dlfcn/bug-dl-leaf-lib.c: Likewise.
45073         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
45074         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
45075         (dlclose): Likewise.
45076         (dlmopen): Likewise.
45077
45078 2013-08-27  Roland McGrath  <roland@hack.frob.com>
45079
45080         * include/netdb.h [!_ISOMAC]:
45081         Don't include <tls.h>.
45082         (h_errno, __libc_h_errno): Move declaration and macros out of
45083         [_LIBC_REENTRANT].
45084
45085         * include/resolv.h [_RESOLV_H_]:
45086         Don't include <tls.h>.
45087         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
45088         * resolv/res_libc.c: Don't include <tls.h>.
45089         (_res): Use __attribute__ ((nocommon)) in place of
45090         __attribute__ ((section (".bss"))).
45091
45092         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
45093         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
45094
45095         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
45096
45097         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
45098         only under [SIOCGIFCONF && SIOCGIFNETMASK].
45099
45100         * resolv/res_mkquery.c: Include <sys/time.h>.
45101
45102         * inet/ifreq.c: Moved to ...
45103         * sysdeps/unix/ifreq.c: ... here.
45104         * inet/ifreq.c: New file, true stub version.
45105
45106         * socket/sa_len.c: New file.
45107         * socket/Makefile (aux): Add it.
45108         * sysdeps/unix/sysv/linux/Makefile
45109         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
45110         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
45111         and #include <socket/sa_len.c>.
45112         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
45113         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
45114
45115         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
45116         * bits/socket.h: ... here.
45117
45118         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
45119         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
45120         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
45121
45122 2013-08-27  Andreas Schwab  <schwab@suse.de>
45123
45124         [BZ #15736]
45125         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
45126         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
45127         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
45128         * string/test-strcasecmp.c (test_main): Run tests in several
45129         locales.
45130         * string/test-strncasecmp.c (test_main): Likewise.
45131
45132         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
45133         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
45134         to __strcasecmp_nonascii and __strncasecmp_nonascii.
45135         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
45136         (__strncasecmp_ssse3) [PIC]: Likewise.
45137
45138 2013-08-26  Roland McGrath  <roland@hack.frob.com>
45139
45140         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
45141
45142         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
45143         instead of explicitly declaring xdecrypt.
45144         * nis/nss_nis/nis-publickey.c: Likewise.
45145
45146 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45147
45148         [BZ #15890]
45149         * nscd/aicache.c: Include res_hconf.h.
45150         (addhstaiX): Initialize res_hconf.
45151
45152 2013-08-26  Andreas Schwab  <schwab@suse.de>
45153
45154         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
45155         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
45156
45157 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45158
45159         * nscd/aicache.c (addhstaiX): Fix indentation.
45160
45161 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
45162
45163         * configure.ac: Quote $build_pt_chown test.
45164         * configure: Regenerated.
45165
45166 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
45167
45168         [BZ #15532]
45169         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
45170         * math/s_cexpf.c (__cexpf): Likewise.
45171         * math/s_cexpl.c (__cexpl): Likewise.
45172         * math/libm-test.inc (cexp_test_data): Correct expected return
45173         value for NaN + i0.  Add another test.
45174
45175 2013-08-22  David S. Miller  <davem@davemloft.net>
45176
45177         * po/ca.po: Update Catalan translation from translation project.
45178         * po/uk.po: Add Ukrainian translations from translation project.
45179
45180 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
45181
45182         [BZ #15797]
45183         * math/s_fdim.c (__fdim): Check for infinite arguments if result
45184         is infinite, not alongside NaN test.
45185         * math/s_fdimf.c (__fdimf): Likewise.
45186         * math/s_fdiml.c (__fdiml): Likewise.
45187         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
45188         errno is unchanged.
45189
45190 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
45191
45192         * argp/argp-help.c: Fix typos.
45193         * crypt/speeds.c: Likewise.
45194         * csu/check_fds.c: Likewise.
45195         * elf/dl-load.c: Likewise.
45196         * elf/dl-open.c: Likewise.
45197         * elf/reldep3.c: Likewise.
45198         * elf/reldep.c: Likewise.
45199         * elf/sprof.c: Likewise.
45200         * iconv/iconv_charmap.c: Likewise.
45201         * iconv/skeleton.c: Likewise.
45202         * iconv/strtab.c: Likewise.
45203         * io/lockf64.c: Likewise.
45204         * libio/libioP.h: Likewise.
45205         * resolv/gai_notify.c: Likewise.
45206         * resolv/ns_name.c: Likewise.
45207         * resolv/ns_samedomain.c: Likewise.
45208         * resolv/res_send.c: Likewise.
45209         * stdlib/random.c: Likewise.
45210         * sunrpc/rpc/xdr.h: Likewise.
45211         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
45212         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
45213         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
45214         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
45215         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
45216         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
45217         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
45218         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
45219         * sysdeps/mach/hurd/check_fds.c: Likewise.
45220         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
45221         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
45222         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45223         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
45224         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
45225         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
45226         * sysdeps/pthread/aio_notify.c: Likewise.
45227         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
45228         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
45229         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
45230         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
45231         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
45232
45233 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45234
45235         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
45236         version if bit_Slow_SSE4_2 is set.
45237         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
45238         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
45239
45240 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45241
45242         [BZ #15867]
45243         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
45244         trampoline stack frame information.
45245         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
45246         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
45247         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
45248         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
45249         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
45250         * sysdeps/unix/sysv/linux/powerpc/init-first.c
45251         (_libc_vdso_platform_setup): Initialize the signal trampolines.
45252         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
45253         sa_flags value.
45254         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
45255         interrupting a syscall and set with option SA_SIGINFO.
45256
45257 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45258
45259         [BZ #15531]
45260         * math/s_cproj.c (__cproj): Only return an infinity if one part of
45261         argument is infinite.
45262         * math/s_cprojf.c (__cprojf): Likewise.
45263         * math/s_cprojl.c (__cprojl): Likewise.
45264         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
45265         * math/libm-test.inc (cproj_test_data): Add more tests.
45266
45267         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
45268
45269         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
45270         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
45271         size.  Use __ffs to determine corresponding shift.
45272
45273 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45274             Roland McGrath  <roland@hack.frob.com>
45275
45276         * Makefile (INSTALL): Remove trailing blank lines from output of
45277         makeinfo.
45278
45279 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45280
45281         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
45282         Align 32 bit compat elf_greg to 8 bytes.
45283
45284 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
45285
45286         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
45287
45288 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45289
45290         * string/strcoll_l.c (coll_seq): New structure.
45291         (get_next_seq_cached): New function.
45292         (get_next_seq): New function.
45293         (do_compare): New function.
45294         (STRCOLL): Use GNU style definition.  Simplify implementation
45295         by using get_next_seq, get_next_seq_cached and do_compare.
45296
45297 2013-08-16  Florian Weimer  <fweimer@redhat.com>
45298
45299         [BZ #14699]
45300         CVE-2013-4237
45301         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
45302         member.
45303         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
45304         member.
45305         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
45306         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
45307         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
45308         conditional.
45309         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
45310         GETDENTS_64BIT_ALIGNED.
45311         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
45312         * manual/filesys.texi (Reading/Closing Directory): Document
45313         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
45314         strongly.
45315         * manual/conf.texi (Limits for Files): Add portability note to
45316         NAME_MAX, PATH_MAX.
45317         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
45318
45319 2013-08-13  Andreas Schwab  <schwab@suse.de>
45320
45321         [BZ #15749]
45322         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
45323         of fabs.
45324         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
45325         LDBL_MAX_EXP >= 16384]: Add tests for it.
45326
45327 2013-08-12  David S. Miller  <davem@davemloft.net>
45328
45329         * version.h (RELEASE): Set to "development".
45330         (VERSION): Set to "2.18.90".
45331         * NEWS: Add 2.19 section.
45332
45333 2013-08-03  David S. Miller  <davem@davemloft.net>
45334
45335         * po/ko.po: Update Korean translation from translation project.
45336
45337 2013-08-01  David S. Miller  <davem@davemloft.net>
45338
45339         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
45340         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
45341         Bilka.
45342
45343 2013-07-30  David S. Miller  <davem@davemloft.net>
45344
45345         * po/fr.po: Update French translation from translation project.
45346
45347 2013-07-28  David S. Miller  <davem@davemloft.net>
45348
45349         * po/cs.po: Update Czech translation from translation project.
45350
45351         * po/sv.po: Update Swedish translation from translation project.
45352
45353 2013-07-27  David S. Miller  <davem@davemloft.net>
45354
45355         * po/eo.po: Update Esperanto translation from translation project.
45356
45357         * po/vi.po: Update Vietnamese translation from translation project.
45358
45359         * po/de.po: Update German translation from translation project.
45360
45361 2013-07-26  David S. Miller  <davem@davemloft.net>
45362
45363         * po/bg.po: Update Bulgarian translation from translation project.
45364
45365         * po/nl.po: Update Dutch translation from translation project.
45366         * po/pl.po: Update Polish translation from translation project.
45367         * po/ru.po: Update Russian translation from translation project.
45368
45369 2013-07-24  David S. Miller  <davem@davemloft.net>
45370
45371         * po/libc.pot: Update.
45372
45373 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45374
45375         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
45376         variable page size.
45377         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
45378         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
45379         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
45380
45381 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45382
45383         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
45384
45385 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
45386             Andreas Schwab  <schwab@suse.de>
45387             Roland McGrath  <roland@hack.frob.com>
45388             Joseph Myers  <joseph@codesourcery.com>
45389             Carlos O'Donell  <carlos@redhat.com>
45390
45391         [BZ #15755]
45392         * config.h.in: Define HAVE_PT_CHOWN.
45393         * config.make.in (build-pt-chown): New variable.
45394         * configure.in (--enable-pt_chown): New configure option.
45395         * configure: Regenerate.
45396         * login/Makefile: Include Makeconfig.  Build pt_chown only if
45397         build-pt-chown is enabled.
45398         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
45399         pt_chown to fix pty ownership.
45400         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
45401         CLOSE_ALL_FDS.
45402         * manual/install.texi (Configuring and compiling): Mention
45403         --enable-pt_chown. Add @findex for grantpt.
45404         * INSTALL: Regenerate.
45405
45406 2013-07-20  David S. Miller  <davem@davemloft.net>
45407
45408         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
45409         difference between 32-bit and 64-bit.
45410
45411 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
45412
45413         [BZ #15711]
45414         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
45415         Avoid system header dependency with -ffreestanding.
45416         ($(objpfx)bits/syscall%d): Likewise.
45417
45418 2013-07-13  David S. Miller  <davem@davemloft.net>
45419
45420         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
45421         underflows from atanl/atan2l due to bug 15319.
45422         (casinh_test_data): Likewise.
45423
45424 2013-07-07  David S. Miller  <davem@davemloft.net>
45425
45426         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
45427
45428 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
45429
45430         * sysdeps/i386/fpu/libm-test-ulps: Update.
45431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45432
45433 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
45434
45435         * configure.in (--enable-lock-elision): Fix message text.
45436         * INSTALL: Regenerate.
45437         * configure: Regenerate.
45438
45439 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45440
45441         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45442
45443 2013-07-03  Andreas Jaeger  <aj@suse.de>
45444
45445         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
45446         define.
45447         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
45448         (ptrace_peeksiginfo_args): Add.
45449         (__ptrace_peeksiginfo_flags): Add.
45450         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45451         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45452         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45453
45454 2013-07-03  Allan McRae  <allan@archlinux.org>
45455
45456         * sysdeps/i386/fpu/libm-test-ulps: Update.
45457
45458 2013-07-02  David S. Miller  <davem@davemloft.net>
45459
45460         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45461
45462 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
45463
45464         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
45465
45466 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45467
45468         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45470
45471 2013-07-02  Andi Kleen <ak@linux.intel.com>
45472
45473         * config.h.in (ENABLE_LOCK_ELISION): Add.
45474         * configure.in (--enable-lock-elision): Add option.
45475         * manual/install.texi: Document --enable lock elision.
45476         * configure: Regenerate
45477         * INSTALL: Regenerate.
45478
45479 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
45480
45481         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
45482         SSE4.2 strcasecmp for libc.a.
45483         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
45484
45485 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45486
45487         [BZ #13304]
45488         * soft-fp/op-common.h (_FP_FMA): New macro.
45489         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
45490         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
45491         (_FP_MUL_MEAT_1_imm): ... here.
45492         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
45493         (_FP_MUL_MEAT_1_wide): ... here.
45494         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
45495         (_FP_MUL_MEAT_1_hard): ... here.
45496         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
45497         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
45498         (_FP_MUL_MEAT_2_wide): ... here.
45499         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
45500         (_FP_MUL_MEAT_2_wide_3mul): ... here.
45501         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
45502         (_FP_MUL_MEAT_2_gmp): ... here.
45503         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
45504         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
45505         (_FP_MUL_MEAT_4_wide): ... here.
45506         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
45507         (_FP_MUL_MEAT_4_gmp): ... here.
45508         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
45509         (_FP_WFRACBITS_DW_S): Likewise.
45510         (_FP_WFRACXBITS_DW_S): Likewise.
45511         (_FP_HIGHBIT_DW_S): Likewise.
45512         (FP_FMA_S): Likewise.
45513         (_FP_FRAC_HIGH_DW_S): Likewise.
45514         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
45515         (_FP_WFRACBITS_DW_D): Likewise.
45516         (_FP_WFRACXBITS_DW_D): Likewise.
45517         (_FP_HIGHBIT_DW_D): Likewise.
45518         (FP_FMA_D): Likewise.
45519         (_FP_FRAC_HIGH_DW_D): Likewise.
45520         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
45521         (_FP_WFRACBITS_DW_E): Likewise.
45522         (_FP_WFRACXBITS_DW_E): Likewise.
45523         (_FP_HIGHBIT_DW_E): Likewise.
45524         (FP_FMA_E): Likewise.
45525         (_FP_FRAC_HIGH_DW_E): Likewise.
45526         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
45527         (_FP_WFRACBITS_DW_Q): Likewise.
45528         (_FP_WFRACXBITS_DW_Q): Likewise.
45529         (_FP_HIGHBIT_DW_Q): Likewise.
45530         (FP_FMA_Q): Likewise.
45531         (_FP_FRAC_HIGH_DW_Q): Likewise.
45532         * soft-fp/fmasf4.c: New file.
45533         * soft-fp/fmadf4.c: Likewise.
45534         * soft-fp/fmatf4.c: Likewise.
45535
45536 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45537
45538         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45539         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
45540         Silvermont.
45541         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
45542         macro.
45543         (index_Slow_SSE4_2): Likewise.
45544         (index_Prefer_PMINUB_for_stringop): Likewise.
45545         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
45546         bit_Slow_SSE4_2 is set.
45547         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
45548         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
45549
45550 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45551
45552         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
45553         rtld_global._dl_hwcap2.
45554         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
45555         POWER8.
45556         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
45557         POWER8 feature descriptions defined in _dl_hwcap2.
45558         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
45559         string handling for POWER8 feature bits.
45560         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
45561         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
45562         _dl_powerpc_cap_flags.
45563         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
45564         * sysdeps/powerpc/rtld-global-offsets.sym
45565         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
45566         _dl_hwcap2 in the rtld_global_ro structure.
45567
45568 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45569
45570         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
45571         hardware capabilities in support of AT_HWCAP2.
45572         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
45573         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
45574         GLRO(dl_hwcap2).
45575         (_dl_show_auxv): Add support for calling _dl_procinfo to display
45576         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
45577         explicitly the unknown a_type display mechanism is used.
45578         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
45579         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
45580         struct member.
45581         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
45582         to macro prototype for AT_HWCAP2 support.
45583         * sysdeps/i386/dl-procinfo.h: Likewise.
45584         * sysdeps/s390/dl-procinfo.h: Likewise.
45585         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
45586         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
45587         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
45588         return -1 for unknown a_type display fallback.
45589         * sysdeps/sparc/dl-procinfo.h: Likewise.
45590         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
45591         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
45592
45593 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
45594
45595         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
45596         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
45597
45598 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
45599
45600         [BZ #12492]
45601         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
45602         mprotect making __stack_prot writable.
45603
45604 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
45605             Joseph Myers  <joseph@codesourcery.com>
45606
45607         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
45608         as being properly aligned.
45609
45610 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
45611
45612         * dlfcn/modstatic5.c: New file.
45613         * dlfcn/tststatic5.c: New file.
45614         * dlfcn/Makefile (tests): Add tststatic5.
45615         (tests-static): Likewise.
45616         (modules-names): Add modstatic5.
45617         (tststatic5-ENV): New variable.
45618         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
45619
45620         [BZ #15022]
45621         * elf/dl-support.c (_dl_main_map): New variable.
45622         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45623         (_dl_nns, _dl_load_adds): Set to 1.
45624         (_dl_initial_searchlist): Refer to _dl_main_map.
45625         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45626         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45627         call to _dl_get_origin.
45628         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45629         around call_map.
45630         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45631         * dlfcn/modstatic3.c: New file.
45632         * dlfcn/tststatic3.c: New file.
45633         * dlfcn/tststatic4.c: New file.
45634         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45635         (tests-static): Likewise.
45636         (modules-names): Add modstatic3.
45637         (tststatic3-ENV, tststatic4-ENV): New variables.
45638         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45639         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45640
45641 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45642
45643         * configure.in (CC): Require GCC version 4.4 or later.
45644         * configure: Regenerated.
45645         * manual/install.texi (Tools for Compilation): Update GCC version
45646         requirement.
45647         * INSTALL: Regenerated.
45648
45649 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45650
45651         [BZ #15674]
45652         * string/test-memcmp.c (check2): New.
45653         (main): Call check2.
45654
45655         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45656
45657 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45658
45659         [BZ #15022]
45660         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45661         over to...
45662         (dl_open_worker) [!SHARED]: ... here.
45663
45664 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45665
45666         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45667
45668 2013-06-25  Richard Henderson  <rth@redhat.com>
45669
45670         * locale/programs/locarchive.c: Include <libc-internal.h>
45671
45672 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45673
45674         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45675         trailing whitespace removed.
45676
45677 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45678
45679         [BZ #10283]
45680         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45681         * locale/programs/locarchive.c: Include libc-mmap.h.
45682         (prepare_address_space): Take two new outputs (the mmap base and len).
45683         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45684         values.
45685         (create_archive): Declare new mmap base and len values for
45686         prepare_address_space, and store the result in ah.
45687         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45688         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45689         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45690         Declare new mmap base and len values for
45691         prepare_address_space, and store the result in new_ah.
45692         (open_archive): Declare new mmap base and len values for
45693         prepare_address_space, and store the result in ah.
45694         (close_archive): If ah->mmap_base is not NULL, use that and
45695         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45696         * sysdeps/generic/libc-mmap.h: New file.
45697
45698 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45699
45700         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45701         (ALIGN_UP): Likewise.
45702         (PTR_ALIGN_DOWN): Likewise.
45703         (PTR_ALIGN_UP): Likewise.
45704
45705 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45706
45707         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45708         entry mapped to PPC_PLATFORM_POWER8.
45709         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45710         POWER8.
45711         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45712         (_dl_string_platform): Add case for exporting platform position for
45713         POWER8.
45714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45715         search path to sysdeps/powerpc/powerpc32/power8 directory.
45716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45717         search path to sysdeps/powerpc/powerpc64/power8 directory.
45718         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45719         power7 directories.
45720         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45721         power7 directories.
45722
45723 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45724
45725         * INSTALL: Regenerate.
45726
45727         * nscd/connections.c (nscd_init): Fix comment.
45728
45729 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45730
45731         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45732
45733         [BZ #15667]
45734         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45735         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45736
45737 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45738
45739         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45740         DL_DST_REQ_STATIC.
45741         (DL_DST_REQ_STATIC): Remove macro.
45742
45743 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45744
45745         [BZ #7006]
45746         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45747         with a shift of 0 bits.
45748
45749 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45750
45751         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45752         $(tststatic-ENV).
45753
45754 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45755
45756         [BZ #15655]
45757         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45758
45759 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45760
45761         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45762         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45763         accepts -fno-tree-loop-distribute-patterns.
45764         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45765         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45766         recursive call.
45767         * string/memset.c (memset): Likewise.
45768         * string/test-memmove.c (simple_memmove): Disable loop transformation
45769         to library calls.
45770         * string/test-memset.c (simple_memset): Likewise.
45771         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45772         * benchtests/bench-memset.c (simple_memset): Likewise.
45773         * configure: Regenerated.
45774
45775 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45776
45777         * math/test-misc.c (main): Ignore fesetround failure when failures
45778         of subsequent rounding tests would be ignored.
45779
45780         [BZ #15654]
45781         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45782         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45783         * math/fegetenv.c (__fegetenv): Return 0.
45784         * math/fegetexcept.c (fegetexcept): Return 0.
45785         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45786         FE_TONEAREST.
45787         * math/feholdexcpt.c (feholdexcept): Return 0.
45788         * math/fesetenv.c (__fesetenv): Return 0.
45789         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45790         argument FE_TONEAREST.
45791         * math/feupdateenv.c (__feupdateenv): Return 0.
45792         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45793
45794 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45795
45796         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45797         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45798         ($(objpfx)rtld-%.os rules): Use them.
45799
45800 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45801
45802         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45803         fields.
45804
45805 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45806
45807         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45808         length of target pattern, then descending length of dependency pattern.
45809         * configure.in (AWK): Require gawk 3.1.2 or newer.
45810         * manual/install.texi (Tools for Compilation): Say that we do.
45811         * configure: Regenerated.
45812
45813         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45814         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45815         * scripts/sysd-rules.awk: ... this new script.
45816         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45817         than a glob-style pattern.
45818
45819 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45820
45821         * math/test-misc.c (main): Do not treat incorrectly rounded
45822         conversions as failure unless ROUNDING_TESTS passes.
45823
45824 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45825
45826         [BZ #15631]
45827         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45828         restore exception state around main square root computation, then
45829         check for inexactness explicitly.
45830
45831         * math/libm-test.inc (fma_test_data): Add another test.
45832
45833 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45834
45835         * manual/threads.texi (Non-POSIX Extensions): New document
45836         node.  Document pthread_getattr_default_np and
45837         pthread_setattr_default_np.
45838
45839         * Versions.def (libpthread): Add GLIBC_2.18.
45840         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45842         Likewise.
45843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45844         Likewise.
45845         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45846         Likewise.
45847         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45848         Likewise.
45849         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45850         Likewise.
45851         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45852         Likewise.
45853         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45854         Likewise.
45855         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45856         Likewise.
45857         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45858         Likewise.
45859
45860 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45861
45862         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45863         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45864
45865 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45866             H.J. Lu  <hjl.tools@gmail.com>
45867
45868         [BZ #15627]
45869         * sysdeps/x86_64/rtld-memset.c: Remove file.
45870         * sysdeps/x86_64/rtld-memset.S: New file.
45871
45872 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45873
45874         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45875         (test_in_one_mode): Take arguments for whether the rounding mode
45876         is supported for each floating-point type.
45877         (do_test): Pass new arguments to test_in_one_mode using
45878         ROUNDING_TESTS.
45879
45880 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45881
45882         * posix/tst-waitid.c (do_test): Distinguish different instances of
45883         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45884         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45885         before entering the kernel for waitpid.
45886
45887 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45888
45889         * NEWS: Fix note on clock function precision.  Text by Roland
45890         McGrath.
45891
45892 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45893
45894         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45895         it into place only when and if the sanity check passes.
45896
45897 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45898
45899         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45900         output for whether conversion result is exact.  Take argument
45901         indicating whether type is IBM long double.
45902         (round_for_all): Change need_exact field to ibm_ld.
45903         * stdlib/tst-strtod-round.c (struct exactness): New type.
45904         (struct test): Change bool ld_ok field to struct exactness exact.
45905         (TEST): Update all definitions for change to field.
45906         (tests): Regenerate array contents.
45907         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45908         field value.  Check for IBM long double here.
45909         (do_test): Update calls to test_in_one_mode.
45910
45911 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45912
45913         [BZ #12515]
45914         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45915         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45916
45917 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45918
45919         [BZ #15605]
45920         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45921         generated by the compiler on loop optimizations.
45922         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45923         general definitions.
45924
45925 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45926
45927         * math/bug-nextafter.c: Include <math-tests.h>.
45928         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45929         the relevant type.
45930         * math/bug-nexttoward.c: Include <math-tests.h>.
45931         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45932         the relevant type.
45933         * math/test-misc.c: Include <math-tests.h>.
45934         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45935         the relevant type.
45936
45937 2013-06-12  Andreas Jaeger  <aj@suse.de>
45938
45939         * po/ia.po: Update Interlingua translation from translation
45940         project.
45941
45942 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45943
45944         * include/fenv.h: Include stdbool.h.
45945         (struct rm_ctx): New structure.
45946         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45947         Define macro.
45948         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45949         (SET_RESTORE_ROUNDF): Likewise.
45950         (SET_RESTORE_ROUNDL): Likewise.
45951         (SET_RESTORE_ROUND_NOEX): Likewise.
45952         (SET_RESTORE_ROUND_NOEXF): Likewise.
45953         (SET_RESTORE_ROUND_NOEXL): Likewise.
45954         (SET_RESTORE_ROUND_53BIT): Likewise.
45955         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45956         (libc_feresetround_noexf_ctx): Likewise.
45957         (libc_feresetround_noexl_ctx): Likewise.
45958         (libc_feholdsetround_53bit_ctx): Likewise.
45959         (libc_feresetround_53bit_ctx): Likewise.
45960         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45961         (libc_feholdexcept_setround_sse_ctx): New function.
45962         (libc_fesetenv_sse_ctx): Likewise.
45963         (libc_feupdateenv_sse_ctx): Likewise.
45964         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45965         (libc_feholdexcept_setround_387_ctx): Likewise.
45966         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45967         (libc_feholdsetround_387_prec_ctx): Likewise.
45968         (libc_feholdsetround_387_ctx): Likewise.
45969         (libc_feholdsetround_387_53bit_ctx): Likewise.
45970         (libc_feholdsetround_sse_ctx): Likewise.
45971         (libc_feresetround_sse_ctx): Likewise.
45972         (libc_feresetround_387_ctx): Likewise.
45973         (libc_feupdateenv_387_ctx): Likewise.
45974         (libc_feholdexcept_setroundf_ctx): Define macro.
45975         (libc_fesetenvf_ctx): Likewise.
45976         (libc_feupdateenvf_ctx): Likewise.
45977         (libc_feholdsetroundf_ctx): Likewise.
45978         (libc_feresetroundf_ctx): Likewise.
45979         (libc_feholdexcept_setround_ctx): Likewise.
45980         (libc_fesetenv_ctx): Likewise.
45981         (libc_feupdateenv_ctx): Likewise.
45982         (libc_feholdsetround_ctx): Likewise.
45983         (libc_feresetround_ctx): Likewise.
45984         (libc_feholdexcept_setroundl_ctx): Likewise.
45985         (libc_feupdateenvl_ctx): Likewise.
45986         (libc_feholdsetroundl_ctx): Likewise.
45987         (libc_feresetroundl_ctx): Likewise.
45988         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45989         (libc_feresetround_53bit_ctx): Likewise.
45990
45991 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45992
45993         * locale/iso-639.def: Convert to UTF-8.
45994
45995 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45996
45997         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45998         (EXCEPTION_TESTS_double): Likewise.
45999         (EXCEPTION_TESTS_long_double): Likewise.
46000         (EXCEPTION_TESTS): Likewise.
46001         * math/libm-test.inc (test_exceptions): Only test exceptions if
46002         EXCEPTION_TESTS (FLOAT).
46003
46004 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46005
46006         * benchtests/Makefile (string-bench): Add strcpy_chk and
46007         stpcpy_chk.
46008         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
46009         * benchtests/bench-stpcpy_chk.c: New file.
46010         * benchtests/bench-strcpy_chk-ifunc.c: New file.
46011         * benchtests/bench-strcpy_chk.c: New file.
46012         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
46013         code.
46014         (do_test): Likewise.
46015
46016 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46017
46018         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
46019         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
46020         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
46021         with tabs where appropriate.
46022         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
46023         dl-procinfo.h.
46024         [PPC_PLATFORM_PPC440]: Likewise.
46025         [PPC_PLATFORM_PPC464]: Likewise.
46026         [PPC_PLATFORM_PPC476]: Likewise.
46027         (_dl_string_platform): Add support for detecting ppc405, ppc440,
46028         ppc464, and ppc476 platform strings merging from ports/
46029         dl-procinfo.h.
46030
46031 2013-06-11  Andreas Schwab  <schwab@suse.de>
46032
46033         [BZ #14991]
46034         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
46035         (from_ucs4_idx): Regenerate.
46036         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
46037         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
46038         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
46039         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
46040         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
46041         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
46042         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
46043         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
46044         from FROM_LOOP and TO_LOOP specific macros.
46045         (BODY): Handle combining characters.
46046         * iconvdata/BIG5HKSCS.irreversible: Update.
46047         * iconvdata/BIG5HKSCS.precomposed: New file.
46048         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
46049         characters.
46050         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
46051
46052 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46053
46054         * include/sys/time.h: Fix indentation and add copyright header.
46055
46056         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
46057         (do_test): Likewise.
46058         * string/test-memchr.c (do_one_test): Likewise.
46059         (do_test): Likewise.
46060         * string/test-memcmp.c (do_one_test): Likewise.
46061         (do_test): Likewise.
46062         * string/test-memcpy.c (do_one_test): Likewise.
46063         (do_test): Likewise.
46064         * string/test-memmem.c (do_one_test): Likewise.
46065         (do_test): Likewise.
46066         (do_random_tests): Likewise.
46067         * string/test-memmove.c (do_one_test): Likewise.
46068         (do_test): Likewise.
46069         * string/test-memset.c (do_one_test): Likewise.
46070         (do_test): Likewise.
46071         * string/test-rawmemchr.c (do_one_test): Likewise.
46072         (do_test): Likewise.
46073         * string/test-strcasecmp.c (do_one_test): Likewise.
46074         (do_test): Likewise.
46075         * string/test-strcasestr.c (do_one_test): Likewise.
46076         (do_test): Likewise.
46077         * string/test-strcat.c (do_one_test): Likewise.
46078         (do_test): Likewise.
46079         * string/test-strchr.c (do_one_test): Likewise.
46080         (do_test): Likewise.
46081         * string/test-strcmp.c (do_one_test): Likewise.
46082         (do_test): Likewise.
46083         * string/test-strcpy.c (do_one_test): Likewise.
46084         (do_test): Likewise.
46085         * string/test-string.h: Likewise.
46086         (test_init): Likewise.
46087         * string/test-strlen.c (do_one_test): Likewise.
46088         (do_test): Likewise.
46089         * string/test-strncasecmp.c (do_one_test): Likewise.
46090         (do_test): Likewise.
46091         * string/test-strncat.c (do_one_test): Likewise.
46092         (do_test): Likewise.
46093         * string/test-strncmp.c (do_one_test): Likewise.
46094         (do_test_limit): Likewise.
46095         (do_test): Likewise.
46096         * string/test-strncpy.c (do_one_test): Likewise.
46097         (do_test): Likewise.
46098         * string/test-strnlen.c (do_one_test): Likewise.
46099         (do_test): Likewise.
46100         * string/test-strpbrk.c (do_one_test): Likewise.
46101         (do_test): Likewise.
46102         * string/test-strrchr.c (do_one_test): Likewise.
46103         (do_test): Likewise.
46104         * string/test-strspn.c (do_one_test): Likewise.
46105         (do_test): Likewise.
46106         * string/test-strstr.c (do_one_test): Likewise.
46107         (do_test): Likewise.
46108
46109         * benchtests/Makefile (string-bench): Add string benchmarks.
46110         * benchtests/bench-bcopy-ifunc.c: New file.
46111         * benchtests/bench-bcopy.c: New file.
46112         * benchtests/bench-bzero-ifunc.c: New file.
46113         * benchtests/bench-bzero.c: New file.
46114         * benchtests/bench-memccpy-ifunc.c: New file.
46115         * benchtests/bench-memccpy.c: New file.
46116         * benchtests/bench-memchr-ifunc.c: New file.
46117         * benchtests/bench-memchr.c: New file.
46118         * benchtests/bench-memcmp-ifunc.c: New file.
46119         * benchtests/bench-memcmp.c: New file.
46120         * benchtests/bench-memmem-ifunc.c: New file.
46121         * benchtests/bench-memmem.c: New file.
46122         * benchtests/bench-memmove-ifunc.c: New file.
46123         * benchtests/bench-memmove.c: New file.
46124         * benchtests/bench-mempcpy-ifunc.c: New file.
46125         * benchtests/bench-mempcpy.c: New file.
46126         * benchtests/bench-memset-ifunc.c: New file.
46127         * benchtests/bench-memset.c: New file.
46128         * benchtests/bench-rawmemchr-ifunc.c: New file.
46129         * benchtests/bench-rawmemchr.c: New file.
46130         * benchtests/bench-stpcpy-ifunc.c: New file.
46131         * benchtests/bench-stpcpy.c: New file.
46132         * benchtests/bench-stpncpy-ifunc.c: New file.
46133         * benchtests/bench-stpncpy.c: New file.
46134         * benchtests/bench-strcasecmp-ifunc.c: New file.
46135         * benchtests/bench-strcasecmp.c: New file.
46136         * benchtests/bench-strcasestr-ifunc.c: New file.
46137         * benchtests/bench-strcasestr.c: New file.
46138         * benchtests/bench-strcat-ifunc.c: New file.
46139         * benchtests/bench-strcat.c: New file.
46140         * benchtests/bench-strchr-ifunc.c: New file.
46141         * benchtests/bench-strchr.c: New file.
46142         * benchtests/bench-strchrnul-ifunc.c: New file.
46143         * benchtests/bench-strchrnul.c: New file.
46144         * benchtests/bench-strcmp-ifunc.c: New file.
46145         * benchtests/bench-strcmp.c: New file.
46146         * benchtests/bench-strcpy-ifunc.c: New file.
46147         * benchtests/bench-strcpy.c: New file.
46148         * benchtests/bench-strcspn-ifunc.c: New file.
46149         * benchtests/bench-strcspn.c: New file.
46150         * benchtests/bench-strlen-ifunc.c: New file.
46151         * benchtests/bench-strlen.c: New file.
46152         * benchtests/bench-strncasecmp-ifunc.c: New file.
46153         * benchtests/bench-strncasecmp.c: New file.
46154         * benchtests/bench-strncat-ifunc.c: New file.
46155         * benchtests/bench-strncat.c: New file.
46156         * benchtests/bench-strncmp-ifunc.c: New file.
46157         * benchtests/bench-strncmp.c: New file.
46158         * benchtests/bench-strncpy-ifunc.c: New file.
46159         * benchtests/bench-strncpy.c: New file.
46160         * benchtests/bench-strnlen-ifunc.c: New file.
46161         * benchtests/bench-strnlen.c: New file.
46162         * benchtests/bench-strpbrk-ifunc.c: New file.
46163         * benchtests/bench-strpbrk.c: New file.
46164         * benchtests/bench-strrchr-ifunc.c: New file.
46165         * benchtests/bench-strrchr.c: New file.
46166         * benchtests/bench-strspn-ifunc.c: New file.
46167         * benchtests/bench-strspn.c: New file.
46168         * benchtests/bench-strstr-ifunc.c: New file.
46169         * benchtests/bench-strstr.c: New file.
46170
46171         * benchtests/Makefile: Disable parallel execution of targets.
46172         (string-bench): Add memcpy.
46173         (benchset): New variable to store a list of benchmark sets.
46174         (bench-func): Renamed from bench.
46175         (bench-set): New target.
46176         (bench): Depend on bench-func and bench-set.
46177         * benchtests/README: Add section on benchmark sets.
46178         * benchtests/bench-memcpy-ifunc.c: New file.
46179         * benchtests/bench-memcpy.c: New file.
46180         * benchtests/bench-string.h: New file.
46181
46182 2013-06-11  Andreas Schwab  <schwab@suse.de>
46183
46184         [BZ #15577]
46185         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
46186         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
46187         values in the triple.
46188         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
46189         terminator in the group key.
46190
46191 2013-06-11  Andreas Jaeger  <aj@suse.de>
46192
46193         * po/zh_TW.po: Update Chinese (traditional) translation from
46194         translation project.
46195
46196 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46197
46198         * include/time.h (__clock_gettime): Add libc_hidden_proto.
46199         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
46200         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
46201         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
46202         (clock_getcpuclockid): Likewise.
46203         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
46204         Add weak_alias and libc_hidden_def.
46205         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
46206         * rt/clock_gettime.c (clock_gettime): Rename to
46207         __clock_gettime.  Add weak_alias and libc_hidden_def.
46208         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
46209         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
46210         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
46211         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
46212         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
46213         Likewise.
46214         * rt/clock_settime.c (clock_settime): Rename to
46215         __clock_settime.  Add weak_alias and libc_hidden_def.
46216         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
46217
46218 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
46219
46220         * mach/err_boot.sub: Remove trailing whitespace.
46221         * mach/err_ipc.sub: Likewise.
46222         * mach/err_mach.sub: Likewise.
46223
46224         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
46225         (ROUNDING_TESTS_double): Likewise.
46226         (ROUNDING_TESTS_long_double): Likewise.
46227         (ROUNDING_TESTS): Likewise.
46228         * math/libm-test.inc: Include <math-tests.h>.
46229         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
46230         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
46231         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
46232         (IF_ROUND_INIT_FE_UPWARD): Likewise.
46233
46234 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
46235
46236         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
46237         of assigning.
46238
46239 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
46240
46241         * sysdeps/gnu/errlist.awk: Do not generate space at end of
46242         otherwise empty TRANS lines.
46243         * sysdeps/gnu/errlist.c: Regenerated.
46244
46245         * catgets/gencat.c (error_print): Use (void) in function
46246         definition.
46247         * crypt/crypt_util.c (__init_des): Likewise.
46248         * crypt/speeds.c (Stop): Likewise.
46249         (main): Likewise.
46250         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
46251         * inet/ruserpass.c (token): Likewise.
46252         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
46253         * intl/localealias.c (extend_alias_table): Likewise.
46254         * intl/plural-exp.c (init_germanic_plural): Likewise.
46255         * libio/fcloseall.c (__fcloseall): Likewise.
46256         * libio/genops.c (_IO_flush_all): Likewise.
46257         (_IO_flush_all_linebuffered): Likewise.
46258         (_IO_cleanup): Likewise.
46259         (_IO_iter_begin): Likewise.
46260         (_IO_iter_end): Likewise.
46261         (_IO_list_lock): Likewise.
46262         (_IO_list_unlock): Likewise.
46263         (_IO_list_resetlock): Likewise.
46264         * libio/getchar.c (getchar): Likewise.
46265         * libio/getchar_u.c (getchar_unlocked): Likewise.
46266         * libio/getwchar.c (getwchar): Likewise.
46267         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
46268         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
46269         * login/getpt.c (__getpt): Likewise.
46270         * login/tst-utmp.c (main): Likewise.
46271         * malloc/hooks.c (__malloc_check_init): Likewise.
46272         * malloc/malloc.c (__malloc_stats): Likewise.
46273         * malloc/mtrace.c (tr_break): Likewise.
46274         (mtrace): Likewise.
46275         (muntrace): Likewise.
46276         * misc/fstab.c (endfsent): Likewise.
46277         * misc/getclktck.c (__getclktck): Likewise.
46278         * misc/getdtsz.c (__getdtablesize): Likewise.
46279         * misc/gethostid.c (gethostid): Likewise.
46280         * misc/getpagesize.c (__getpagesize): Likewise.
46281         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
46282         (__get_nprocs): Likewise.
46283         (__get_phys_pages): Likewise.
46284         (__get_avphys_pages): Likewise.
46285         * misc/getttyent.c (getttyent): Likewise.
46286         (setttyent): Likewise.
46287         (endttyent): Likewise.
46288         * misc/getusershell.c (getusershell): Likewise.
46289         (endusershell): Likewise.
46290         (setusershell): Likewise.
46291         (initshells): Likewise.
46292         * misc/hsearch.c (__hdestroy): Likewise.
46293         * misc/sync.c (sync): Likewise.
46294         * misc/syslog.c (closelog_internal): Likewise.
46295         (closelog): Likewise.
46296         * misc/ttyslot.c (ttyslot): Likewise.
46297         * misc/vhangup.c (vhangup): Likewise.
46298         * posix/fork.c (__fork): Likewise.
46299         * posix/getegid.c (__getegid): Likewise.
46300         * posix/geteuid.c (__geteuid): Likewise.
46301         * posix/getgid.c (__getgid): Likewise.
46302         * posix/getpid.c (__getpid): Likewise.
46303         * posix/getppid.c (__getppid): Likewise.
46304         * posix/getuid.c (__getuid): Likewise.
46305         * posix/pause.c (pause): Likewise.
46306         * posix/setpgrp.c (setpgrp): Likewise.
46307         * posix/setsid.c (__setsid): Likewise.
46308         * posix/test-vfork.c (noop): Likewise.
46309         * resolv/gethnamaddr.c (_endhtent): Likewise.
46310         (_gethtent): Likewise.
46311         (ht_endhostent): Likewise.
46312         (gethostent): Likewise.
46313         (dns_service): Likewise.
46314         * stdlib/drand48.c (drand48): Likewise.
46315         * stdlib/lrand48.c (lrand48): Likewise.
46316         * stdlib/mrand48.c (mrand48): Likewise.
46317         * stdlib/rand.c (rand): Likewise.
46318         * stdlib/random.c (__random): Likewise.
46319         * stdlib/setenv.c (clearenv): Likewise.
46320         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
46321         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
46322         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
46323         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
46324         (__get_nprocs): Likewise.
46325         (__get_phys_pages): Likewise.
46326         (__get_avphys_pages): Likewise.
46327         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
46328         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
46329         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
46330         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
46331         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
46332         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
46333         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
46334         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
46335         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
46336         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
46337         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
46338         * sysdeps/mach/hurd/sync.c (sync): Likewise.
46339         * sysdeps/posix/clock.c (clock): Likewise.
46340         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
46341         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
46342         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
46343         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
46344         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
46345         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
46346         (__get_nprocs_conf): Likewise.
46347         (__get_phys_pages): Likewise.
46348         (__get_avphys_pages): Likewise.
46349         * time/clock.c (clock): Likewise.
46350         * time/tzset.c (__tzname_max): Likewise.
46351
46352 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
46353
46354         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
46355         (__bswap_32): Do not use "register".
46356         * crypt/crypt.c (_ufc_doit_r): Likewise.
46357         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
46358         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
46359         * gmon/gmon.c (__monstartup): Likewise.
46360         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
46361         * hurd/hurdmalloc.c (more_memory): Likewise.
46362         (malloc): Likewise.
46363         (free): Likewise.
46364         (realloc): Likewise.
46365         (malloc_fork_prepare): Likewise.
46366         (malloc_fork_parent): Likewise.
46367         (malloc_fork_child): Likewise.
46368         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
46369         (_svcauth_des): Likewise.
46370         * inet/inet_lnaof.c (inet_lnaof): Likewise.
46371         * inet/inet_net.c (inet_network): Likewise.
46372         * inet/inet_netof.c (inet_netof): Likewise.
46373         * inet/rcmd.c (__validuser2_sa): Likewise.
46374         * io/fts.c (fts_open): Likewise.
46375         (fts_load): Likewise.
46376         (fts_close): Likewise.
46377         (fts_read): Likewise.
46378         (fts_children): Likewise.
46379         (fts_build): Likewise.
46380         (fts_stat): Likewise.
46381         (fts_sort): Likewise.
46382         (fts_alloc): Likewise.
46383         (fts_lfree): Likewise.
46384         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
46385         (_IO_file_xsgetn): Likewise.
46386         (_IO_file_xsgetn_mmap): Likewise.
46387         * libio/iofopncook.c (_IO_cookie_read): Likewise.
46388         (_IO_cookie_write): Likewise.
46389         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
46390         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
46391         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
46392         * malloc/obstack.c (_obstack_begin): Likewise.
46393         (_obstack_begin_1): Likewise.
46394         (_obstack_newchunk): Likewise.
46395         (_obstack_allocated_p): Likewise.
46396         (obstack_free): Likewise.
46397         (_obstack_memory_used): Likewise.
46398         * misc/getttyent.c (getttynam): Likewise.
46399         (getttyent): Likewise.
46400         (skip): Likewise.
46401         (value): Likewise.
46402         * misc/getusershell.c (initshells): Likewise.
46403         * misc/syslog.c (__vsyslog_chk): Likewise.
46404         * misc/ttyslot.c (ttyslot): Likewise.
46405         * nis/nis_hash.c (__nis_hash): Likewise.
46406         * posix/fnmatch_loop.c (FCT): Likewise.
46407         * posix/getconf.c (print_all): Likewise.
46408         (main): Likewise.
46409         * posix/getopt.c (exchange): Likewise.
46410         * posix/glob.c (globfree): Likewise.
46411         (prefix_array): Likewise.
46412         (__glob_pattern_type): Likewise.
46413         * resolv/arpa/nameser.h (NS_GET16): Likewise.
46414         (NS_GET32): Likewise.
46415         (NS_PUT16): Likewise.
46416         (NS_PUT32): Likewise.
46417         * resolv/gethnamaddr.c (getanswer): Likewise.
46418         (gethostbyname2): Likewise.
46419         (gethostbyaddr): Likewise.
46420         (_gethtent): Likewise.
46421         (_gethtbyname2): Likewise.
46422         (_gethtbyaddr): Likewise.
46423         * resolv/ns_print.c (dst_s_get_int16): Likewise.
46424         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
46425         * resolv/res_init.c (__res_vinit): Likewise.
46426         (net_mask): Likewise.
46427         * resolv/res_mkquery.c (outchar): Likewise.
46428         (PRINT): Likewise.
46429         * stdio-common/printf_fp.c (outchar): Likewise.
46430         (PRINT): Likewise.
46431         * stdio-common/printf_fphex.c (outchar): Likewise.
46432         (PRINT): Likewise.
46433         * stdio-common/printf_size.c (outchar): Likewise.
46434         (PRINT): Likewise.
46435         * stdio-common/test_rdwr.c (main): Likewise.
46436         * stdio-common/tfformat.c (matches): Likewise.
46437         * stdio-common/vfprintf.c (outchar): Likewise.
46438         (printf_unknown): Likewise.
46439         (buffered_vfprintf): Likewise.
46440         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
46441         * stdio-common/xbug.c (AppendToBuffer): Likewise.
46442         (ReadFile): Likewise.
46443         * stdlib/qsort.c (SWAP): Likewise.
46444         (_quicksort): Likewise.
46445         * stdlib/setenv.c (__add_to_environ): Likewise.
46446         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
46447         * stdlib/strtol_l.c (__strtol_l): Likewise.
46448         * stdlib/tst-strtod.c (main): Likewise.
46449         * stdlib/tst-strtol.c (main): Likewise.
46450         * stdlib/tst-strtoll.c (main): Likewise.
46451         * string/bits/string2.h (__strcmp_cc): Likewise.
46452         (__strcmp_cg): Likewise.
46453         (__strcspn_c1): Likewise.
46454         (__strcspn_c2): Likewise.
46455         (__strcspn_c3): Likewise.
46456         (__strspn_c1): Likewise.
46457         (__strspn_c2): Likewise.
46458         (__strspn_c3): Likewise.
46459         (__strsep_1c): Likewise.
46460         (__strsep_2c): Likewise.
46461         (__strsep_3c): Likewise.
46462         * string/memccpy.c (__memccpy): Likewise.
46463         * string/stpcpy.c (__stpcpy): Likewise.
46464         * string/strcmp.c (strcmp): Likewise.
46465         * string/strrchr.c (strrchr): Likewise.
46466         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
46467         Likewise.
46468         * sysdeps/mach/hurd/getcwd.c
46469         (_hurd_canonicalize_directory_name_internal): Likewise.
46470         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
46471         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
46472         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
46473         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
46474         Likewise, in both definitions.
46475         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
46476         definitions.
46477         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
46478         64] (__bswap_64): Likewise.
46479         * time/test_time.c (main): Likewise.
46480         * time/tzfile.c (__tzfile_read): Likewise.
46481         (__tzfile_compute): Likewise.
46482         * time/tzset.c (__tzset_parse_tz): Likewise.
46483         (tzset_internal): Likewise.
46484         (compute_change): Likewise.
46485         * wcsmbs/wcscat.c (__wcscat): Likewise.
46486         * wcsmbs/wcschr.c (wcschr): Likewise.
46487         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
46488         * wcsmbs/wcscspn.c (wcscspn): Likewise.
46489         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
46490         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
46491         * wcsmbs/wcsspn.c (wcsspn): Likewise.
46492         * wcsmbs/wcsstr.c (wcsstr): Likewise.
46493         * wcsmbs/wmemchr.c (wmemchr): Likewise.
46494         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
46495         * wcsmbs/wmemset.c (wmemset): Likewise.
46496
46497 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
46498
46499         * scripts/config.guess: Update to version 2013-05-16.
46500         * scripts/config.sub: Update to version 2013-04-24.
46501         * scripts/install-sh: Update to version 2011-11-20.07.
46502         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
46503         * scripts/move-if-change: Update to version 2012-01-06 07:23.
46504
46505 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
46506
46507         * debug/fgetws_u_chk.c: Fix leading whitespaces.
46508         * elf/sln.c: Likewise.
46509         * hurd/hurd/ioctl.h: Likewise.
46510         * hurd/hurdmalloc.c: Likewise.
46511         * hurd/xattr.c: Likewise.
46512         * include/shlib-compat.h: Likewise.
46513         * inet/ruserpass.c: Likewise.
46514         * libio/iofgets_u.c: Likewise.
46515         * libio/iofgetws_u.c: Likewise.
46516         * locale/programs/ld-identification.c: Likewise.
46517         * locale/programs/ld-time.c: Likewise.
46518         * mach/msg-destroy.c: Likewise.
46519         * nss/nss_files/files-netgrp.c: Likewise.
46520         * resolv/res_data.c: Likewise.
46521         * soft-fp/op-1.h: Likewise.
46522         * soft-fp/op-2.h: Likewise.
46523         * soft-fp/op-4.h: Likewise.
46524         * soft-fp/op-common.h: Likewise.
46525         * stdio-common/printf_fphex.c: Likewise.
46526         * stdlib/strtod_l.c: Likewise.
46527         * sunrpc/rpc/clnt.h: Likewise.
46528         * sysdeps/generic/framestate.c: Likewise.
46529         * sysdeps/i386/bsd-_setjmp.S: Likewise.
46530         * sysdeps/i386/bsd-setjmp.S: Likewise.
46531         * sysdeps/i386/__longjmp.S: Likewise.
46532         * sysdeps/i386/setjmp.S: Likewise.
46533         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46534         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46535         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46536         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
46537         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46538         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
46539         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46540         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46541         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46542         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
46543         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
46544         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
46545         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
46546         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
46547         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
46548         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46549         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
46550         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
46551         * sysdeps/ieee754/support.c: Likewise.
46552         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
46553         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
46554         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
46555         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
46556         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
46557         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
46558         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
46559         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
46560         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
46561         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
46562         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
46563         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
46564         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
46565         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
46566         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
46567         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
46568         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46570
46571 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
46572
46573         * posix/transbug.c: Remove executable mode.
46574
46575 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
46576
46577         * crypt/speeds.c: Remove trailing whitespace.
46578         * dlfcn/default.c: Likewise.
46579         * elf/ifuncdep2.c: Likewise.
46580         * elf/ifuncmain1.c: Likewise.
46581         * elf/ifuncmain1vis.c: Likewise.
46582         * elf/testobj.h: Likewise.
46583         * elf/tst-stackguard1.c: Likewise.
46584         * gmon/sys/gmon.h: Likewise.
46585         * hurd/hurdmsg.c: Likewise.
46586         * hurd/new-fd.c: Likewise.
46587         * hurd/ports-get.c: Likewise.
46588         * iconvdata/ibm1008_420.c: Likewise.
46589         * inet/tst-getni1.c: Likewise.
46590         * inet/tst-getni2.c: Likewise.
46591         * libio/ioungetc.c: Likewise.
46592         * libio/wfiledoalloc.c: Likewise.
46593         * manual/libm-err-tab.pl: Likewise.
46594         * math/w_dremf.c: Likewise.
46595         * misc/ftruncate.c: Likewise.
46596         * posix/bug-glob2.c: Likewise.
46597         * posix/tst-pcre.c: Likewise.
46598         * posix/wait4.c: Likewise.
46599         * resolv/README: Likewise.
46600         * resolv/res_debug.h: Likewise.
46601         * resolv/tst-inet_ntop.c: Likewise.
46602         * setjmp/bug269-setjmp.c: Likewise.
46603         * soft-fp/extended.h: Likewise.
46604         * soft-fp/op-1.h: Likewise.
46605         * soft-fp/op-2.h: Likewise.
46606         * soft-fp/op-4.h: Likewise.
46607         * soft-fp/op-8.h: Likewise.
46608         * soft-fp/testit.c: Likewise.
46609         * stdio-common/bug16.c: Likewise.
46610         * stdlib/random.c: Likewise.
46611         * sunrpc/rpcsvc/rquota.x: Likewise.
46612         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
46613         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46614         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46615         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46616         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46617         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46618         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46619         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46620         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46621         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46622         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46623         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46624         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46625         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46626         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46627         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46628         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46629         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46630         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46631         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46632         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46633         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46634         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46635         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46636         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46637         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46638         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46639         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46640         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46641         * sysdeps/ieee754/s_lib_version.c: Likewise.
46642         * sysdeps/mach/hurd/check_fds.c: Likewise.
46643         * sysdeps/mach/hurd/getsockname.c: Likewise.
46644         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46645         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46646         * sysdeps/powerpc/bits/link.h: Likewise.
46647         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46648         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46649         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46650         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46651         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46652         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46653         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46654         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46655         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46656         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46657         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46658         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46659         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46660         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46661         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46662         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46663         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46664         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46665         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46666         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46667         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46668         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46669         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46670         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46671         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46672         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46673         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46674         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46675         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46676         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46677         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46678         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46679         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46680         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46681         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46682         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46683         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46684         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46685         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46686         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46687         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46688         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46689         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46690         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46691         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46692         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46693         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46694         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46695         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46696         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46697         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46698         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46699         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46700         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46701         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46702         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46703         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46704         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46705         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46706         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46707         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46708         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46709         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46710         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46711         * sysdeps/powerpc/sysdep.h: Likewise.
46712         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46713         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46714         * sysdeps/sh/dl-trampoline.S: Likewise.
46715         * sysdeps/sh/memset.S: Likewise.
46716         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46717         * sysdeps/sh/strlen.S: Likewise.
46718         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46719         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46720         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46721         * sysdeps/sparc/sparc32/rem.S: Likewise.
46722         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46723         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46724         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46725         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46726         * sysdeps/sparc/sparc32/urem.S: Likewise.
46727         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46728         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46729         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46730         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46731         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46732         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46733         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46734         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46735         * sysdeps/unix/bsd/times.c: Likewise.
46736         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46737         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46741         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46742         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46743         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46744         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46745         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46746         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46747         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46748         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46749         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46750         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46751         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46752         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46753         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46754         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46755         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46756         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46757         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46758         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46759         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46760         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46761         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46762         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46763         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46764         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46765         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46766         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46767         * sysdeps/x86_64/strcspn.S: Likewise.
46768
46769 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46770
46771         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46772         generated file.  Regenerate properly from gen-translit.pl.
46773         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46774         locale/C-translit.h.
46775
46776 2013-06-05  Andreas Schwab  <schwab@suse.de>
46777
46778         [BZ #15100]
46779         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46780         week as 6 instead of -1.
46781         * time/tst-strptime.c (day_tests): Add test case.
46782
46783 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46784
46785         * sysdeps/generic/math_private.h
46786         (libc_feholdexcept_setround_53bit): Replace with
46787         libc_feholdsetround_53bit.
46788         (libc_feupdateenv_53bit): Replace with
46789         libc_feresetround_53bit.
46790         (SET_RESTORE_ROUND_53BIT): Adjust.
46791
46792 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46793
46794         * string/test-strchrnul.c: Add copyright header.
46795
46796         * posix/tst-getaddrinfo4.c: Increase test timeout.
46797
46798 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46799
46800         [BZ #15536]
46801         * math/libm-test.inc (MAX_EXP): Remove
46802         (MIN_EXP): Define.
46803         (ulp): Use MIN_EXP - MANT_DIG.
46804         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46805
46806 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46807
46808         * po/be.po: Revert last change.
46809         * po/zh_CN.po: Likewise.
46810         * po/header.pot: Likewise.
46811
46812 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46813
46814         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46815         link-libc-deps to empty as target-specific variable.
46816         * Makerules (link-libc-args): New variable.
46817         (libc-for-link): Likewise.
46818         (link-libc-deps): Likewise.
46819         (lib%.so): Depend on $(link-libc-deps).  Link with
46820         $(link-libc-args).
46821         (build-module): Link with $(link-libc-args).
46822         (build-module-asneeded): Likewise.
46823         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46824         list of objects.
46825         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46826         target-specific variable.
46827         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46828         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46829         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46830         libc.
46831         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46832         libc and ld.so.
46833         ($(objpfx)libpcprofile.so): Likewise.
46834         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46835         libc_nonshared.a.
46836         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46837         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46838         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46839         $(link-libc-deps).
46840         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46841         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46842         * login/Makefile ($(objpfx)libutil.so): Likewise.
46843         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46844         * math/Makefile ($(objpfx)libm.so): Likewise.
46845         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46846         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46847         variable instead of depending directly on libc.
46848         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46849         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46850         $(link-libc-deps).
46851         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46852         libc.
46853         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46854         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46855         ($(objpfx)libanl.so): Likewise.
46856         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46857         ld.so.
46858         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46859         $(link-libc-deps).
46860         * sysdeps/i386/fpu/Makefile: Remove file.
46861         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46862         ($(objpfx)libm.so): Remove dependency on ld.so.
46863
46864 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46865
46866         [BZ # 15553]
46867         * nis/yp_xdr.c (XDRMAXNAME): Define.
46868         (XDRMAXRECORD): Define.
46869         (xdr_domainname): Use XDRMAXNAME.
46870         (xdr_mapname): Likewise.
46871         (xdr_peername): Likewise.
46872         (xdr_keydat): Use XDRMAXRECORD.
46873         (xdr_valdat): Likewise.
46874
46875 2013-05-30  Jeff Law  <law@redhat.com>
46876
46877         [BZ #14256]
46878         * manual/errno.texi (ESTALE): Update to account for more than
46879         just NFS file systems.
46880         * sysdeps/gnu/errlist.c: Regenerated.
46881
46882 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46883
46884         [BZ #15465]
46885         * elf/Makefile (tests): Add tst-null-argv.
46886         (modules-names):  Add tst-null-argv-lib.
46887         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46888         (tst-null-argv-ENV): Set environment for tst-null-argv.
46889         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46890         (RTLD_PROGNAME): New macro.
46891         * elf/tst-null-argv.c: New test case.
46892         * elf/tst-null-argv-lib.c: Library for test case.
46893         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46894         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46895         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46896         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46897         * elf/dl-init.c (call_init): Likewise.
46898         (_dl_init): Likewise.
46899         * elf/dl-load.c (print_search_path): Likewise.
46900         (_dl_map_object): Likewise.
46901         * elf/dl-lookup.c (do_lookup_x): Likewise.
46902         (add_dependency): Likewise.
46903         (_dl_lookup_symbol_x): Likewise.
46904         (_dl_debug_bindings): Likewise.
46905         * elf/dl-open.c (_dl_show_scope): Likewise.
46906         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46907         * elf/dl-version.c (match_symbol): Likewise.
46908         (_dl_check_map_versions): Likewise.
46909         * elf/rtld.c (dl_main): Likewise.
46910         (print_unresolved): Use RTLD_PROGNAME.
46911         (print_missing_version): Likewise.
46912         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46913         (elf_machine_rela): Likewise.
46914         * sysdeps/powerpc/powerpc32/dl-machine.c
46915         (__process_machine_rela): Likewise.
46916         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46917         Likewise.
46918         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46919         Likewise.
46920         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46921         Likewise.
46922         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46923         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46924         Likewise.
46925         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46926         Likewise.
46927         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46928
46929 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46930
46931         * po/be.po: Add descriptive title.
46932         * po/zh_CN.po: Likewise.
46933         * po/header.pot: Likewise.
46934
46935 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46936
46937         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46938         error message.
46939         (enlarge_archive): Likewise.
46940
46941 2013-05-28  Ben North  <ben@redfrontdoor.org>
46942
46943         * manual/arith.texi (frexp): It is the magnitude of the return
46944         value which lies in [0.5, 1), not the return value itself.
46945
46946 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46947
46948         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46949
46950 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46951
46952         * stdio-common/bug26.c (main): Correct fscanf template.
46953
46954         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46955         declare _dl_skip_args.
46956
46957         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46958         Don't declare.
46959
46960         * manual/platform.texi: Add missing @end deftypefun.
46961
46962 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46963
46964         [BZ #15529]
46965         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46966         bit of mantissa of 2^16382.
46967         * math/libm-test.inc (hypot_test_data): Add more tests.
46968
46969         * math/libm-test.inc: Add drem and pow10 to list of tested
46970         functions.
46971         (pow10_test): New function.
46972         (drem_test): Likewise.
46973         (drem_test_tonearest): Likewise.
46974         (drem_test_towardzero): Likewise.
46975         (drem_test_downward): Likewise.
46976         (drem_test_upward): Likewise.
46977         (main): Call the new functions.
46978
46979         * math/libm-test.inc (finite_test_data): Remove.
46980         (finite_test): Run tests from isfinite_test_data.
46981         (gamma_test_data): Remove.
46982         (gamma_test): Run tests from lgamma_test_data.
46983         * sysdeps/i386/fpu/libm-test-ulps: Update.
46984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46985
46986 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46987
46988         * manual/platform.texi: Add PowerPC PPR function set documentation.
46989         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46990         implementation.
46991
46992 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46993
46994         * math/libm-test.inc (MAX_EXP): Define.
46995         (ULPDIFF): Define.
46996         (ulp): New function.
46997         (check_float_internal): Use ULPDIFF.
46998         (cpow_test): Disable failing test.
46999         (check_ulp): Test ulp() implemetnation.
47000         (main): Call check_ulp before starting tests.
47001
47002 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
47003
47004         * math/gen-libm-test.pl (generate_testfile): Do not handle
47005         START_DATA and END_DATA.
47006         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
47007         END_DATA.
47008         (acos_tonearest_test_data): Likewise.
47009         (acos_towardzero_test_data): Likewise.
47010         (acos_downward_test_data): Likewise.
47011         (acos_upward_test_data): Likewise.
47012         (acosh_test_data): Likewise.
47013         (asin_test_data): Likewise.
47014         (asin_tonearest_test_data): Likewise.
47015         (asin_towardzero_test_data): Likewise.
47016         (asin_downward_test_data): Likewise.
47017         (asin_upward_test_data): Likewise.
47018         (asinh_test_data): Likewise.
47019         (atan_test_data): Likewise.
47020         (atanh_test_data): Likewise.
47021         (atan2_test_data): Likewise.
47022         (cabs_test_data): Likewise.
47023         (cacos_test_data): Likewise.
47024         (cacosh_test_data): Likewise.
47025         (carg_test_data): Likewise.
47026         (casin_test_data): Likewise.
47027         (casinh_test_data): Likewise.
47028         (catan_test_data): Likewise.
47029         (catanh_test_data): Likewise.
47030         (cbrt_test_data): Likewise.
47031         (ccos_test_data): Likewise.
47032         (ccosh_test_data): Likewise.
47033         (ceil_test_data): Likewise.
47034         (cexp_test_data): Likewise.
47035         (cimag_test_data): Likewise.
47036         (clog_test_data): Likewise.
47037         (clog10_test_data): Likewise.
47038         (conj_test_data): Likewise.
47039         (copysign_test_data): Likewise.
47040         (cos_test_data): Likewise.
47041         (cos_tonearest_test_data): Likewise.
47042         (cos_towardzero_test_data): Likewise.
47043         (cos_downward_test_data): Likewise.
47044         (cos_upward_test_data): Likewise.
47045         (cosh_test_data): Likewise.
47046         (cosh_tonearest_test_data): Likewise.
47047         (cosh_towardzero_test_data): Likewise.
47048         (cosh_downward_test_data): Likewise.
47049         (cosh_upward_test_data): Likewise.
47050         (cpow_test_data): Likewise.
47051         (cproj_test_data): Likewise.
47052         (creal_test_data): Likewise.
47053         (csin_test_data): Likewise.
47054         (csinh_test_data): Likewise.
47055         (csqrt_test_data): Likewise.
47056         (ctan_test_data): Likewise.
47057         (ctan_tonearest_test_data): Likewise.
47058         (ctan_towardzero_test_data): Likewise.
47059         (ctan_downward_test_data): Likewise.
47060         (ctan_upward_test_data): Likewise.
47061         (ctanh_test_data): Likewise.
47062         (ctanh_tonearest_test_data): Likewise.
47063         (ctanh_towardzero_test_data): Likewise.
47064         (ctanh_downward_test_data): Likewise.
47065         (ctanh_upward_test_data): Likewise.
47066         (erf_test_data): Likewise.
47067         (erfc_test_data): Likewise.
47068         (exp_test_data): Likewise.
47069         (exp_tonearest_test_data): Likewise.
47070         (exp_towardzero_test_data): Likewise.
47071         (exp_downward_test_data): Likewise.
47072         (exp_upward_test_data): Likewise.
47073         (exp10_test_data): Likewise.
47074         (exp2_test_data): Likewise.
47075         (expm1_test_data): Likewise.
47076         (fabs_test_data): Likewise.
47077         (fdim_test_data): Likewise.
47078         (finite_test_data): Likewise.
47079         (floor_test_data): Likewise.
47080         (fma_test_data): Likewise.
47081         (fma_towardzero_test_data): Likewise.
47082         (fma_downward_test_data): Likewise.
47083         (fma_upward_test_data): Likewise.
47084         (fmax_test_data): Likewise.
47085         (fmin_test_data): Likewise.
47086         (fmod_test_data): Likewise.
47087         (fpclassify_test_data): Likewise.
47088         (frexp_test_data): Likewise.
47089         (gamma_test_data): Likewise.
47090         (hypot_test_data): Likewise.
47091         (ilogb_test_data): Likewise.
47092         (isfinite_test_data): Likewise.
47093         (isgreater_test_data): Likewise.
47094         (isgreaterequal_test_data): Likewise.
47095         (isinf_test_data): Likewise.
47096         (isless_test_data): Likewise.
47097         (islessequal_test_data): Likewise.
47098         (islessgreater_test_data): Likewise.
47099         (isnan_test_data): Likewise.
47100         (isnormal_test_data): Likewise.
47101         (issignaling_test_data): Likewise.
47102         (isunordered_test_data): Likewise.
47103         (j0_test_data): Likewise.
47104         (j1_test_data): Likewise.
47105         (jn_test_data): Likewise.
47106         (ldexp_test_data): Likewise.
47107         (lgamma_test_data): Likewise.
47108         (lrint_test_data): Likewise.
47109         (lrint_tonearest_test_data): Likewise.
47110         (lrint_towardzero_test_data): Likewise.
47111         (lrint_downward_test_data): Likewise.
47112         (lrint_upward_test_data): Likewise.
47113         (llrint_test_data): Likewise.
47114         (llrint_tonearest_test_data): Likewise.
47115         (llrint_towardzero_test_data): Likewise.
47116         (llrint_downward_test_data): Likewise.
47117         (llrint_upward_test_data): Likewise.
47118         (log_test_data): Likewise.
47119         (log10_test_data): Likewise.
47120         (log1p_test_data): Likewise.
47121         (log2_test_data): Likewise.
47122         (logb_test_data): Likewise.
47123         (logb_downward_test_data): Likewise.
47124         (lround_test_data): Likewise.
47125         (llround_test_data): Likewise.
47126         (modf_test_data): Likewise.
47127         (nearbyint_test_data): Likewise.
47128         (nextafter_test_data): Likewise.
47129         (nexttoward_test_data): Likewise.
47130         (pow_test_data): Likewise.
47131         (pow_tonearest_test_data): Likewise.
47132         (pow_towardzero_test_data): Likewise.
47133         (pow_downward_test_data): Likewise.
47134         (pow_upward_test_data): Likewise.
47135         (remainder_test_data): Likewise.
47136         (remainder_tonearest_test_data): Likewise.
47137         (remainder_towardzero_test_data): Likewise.
47138         (remainder_downward_test_data): Likewise.
47139         (remainder_upward_test_data): Likewise.
47140         (remquo_test_data): Likewise.
47141         (rint_test_data): Likewise.
47142         (rint_tonearest_test_data): Likewise.
47143         (rint_towardzero_test_data): Likewise.
47144         (rint_downward_test_data): Likewise.
47145         (rint_upward_test_data): Likewise.
47146         (round_test_data): Likewise.
47147         (scalb_test_data): Likewise.
47148         (scalbn_test_data): Likewise.
47149         (scalbln_test_data): Likewise.
47150         (signbit_test_data): Likewise.
47151         (sin_test_data): Likewise.
47152         (sin_tonearest_test_data): Likewise.
47153         (sin_towardzero_test_data): Likewise.
47154         (sin_downward_test_data): Likewise.
47155         (sin_upward_test_data): Likewise.
47156         (sincos_test_data): Likewise.
47157         (sinh_test_data): Likewise.
47158         (sinh_tonearest_test_data): Likewise.
47159         (sinh_towardzero_test_data): Likewise.
47160         (sinh_downward_test_data): Likewise.
47161         (sinh_upward_test_data): Likewise.
47162         (sqrt_test_data): Likewise.
47163         (tan_test_data): Likewise.
47164         (tan_tonearest_test_data): Likewise.
47165         (tan_towardzero_test_data): Likewise.
47166         (tan_downward_test_data): Likewise.
47167         (tan_upward_test_data): Likewise.
47168         (tanh_test_data): Likewise.
47169         (tgamma_test_data): Likewise.
47170         (trunc_test_data): Likewise.
47171         (y0_test_data): Likewise.
47172         (y1_test_data): Likewise.
47173         (yn_test_data): Likewise.
47174         (significand_test_data): Likewise.
47175
47176         * math/gen-libm-test.pl (@functions): Remove variable.
47177         (generate_testfile): Don't handle START and END lines.
47178         * math/libm-test.inc (START): New macro.
47179         (END): Likewise.
47180         (END_COMPLEX): Likewise.
47181         (acos_test): Use END macro without arguments.
47182         (acos_test_tonearest): Likewise.
47183         (acos_test_towardzero): Likewise.
47184         (acos_test_downward): Likewise.
47185         (acos_test_upward): Likewise.
47186         (acosh_test): Likewise.
47187         (asin_test): Likewise.
47188         (asin_test_tonearest): Likewise.
47189         (asin_test_towardzero): Likewise.
47190         (asin_test_downward): Likewise.
47191         (asin_test_upward): Likewise.
47192         (asinh_test): Likewise.
47193         (atan_test): Likewise.
47194         (atanh_test): Likewise.
47195         (atan2_test): Likewise.
47196         (cabs_test): Likewise.
47197         (cacos_test): Use END_COMPLEX macro without arguments.
47198         (cacosh_test): Likewise.
47199         (carg_test): Use END macro without arguments.
47200         (casin_test): Use END_COMPLEX macro without arguments.
47201         (casinh_test): Likewise.
47202         (catan_test): Likewise.
47203         (catanh_test): Likewise.
47204         (cbrt_test): Use END macro without arguments.
47205         (ccos_test): Use END_COMPLEX macro without arguments.
47206         (ccosh_test): Likewise.
47207         (ceil_test): Use END macro without arguments.
47208         (cexp_test): Use END_COMPLEX macro without arguments.
47209         (cimag_test): Use END macro without arguments.
47210         (clog_test): Use END_COMPLEX macro without arguments.
47211         (clog10_test): Likewise.
47212         (conj_test): Likewise.
47213         (copysign_test): Use END macro without arguments.
47214         (cos_test): Likewise.
47215         (cos_test_tonearest): Likewise.
47216         (cos_test_towardzero): Likewise.
47217         (cos_test_downward): Likewise.
47218         (cos_test_upward): Likewise.
47219         (cosh_test): Likewise.
47220         (cosh_test_tonearest): Likewise.
47221         (cosh_test_towardzero): Likewise.
47222         (cosh_test_downward): Likewise.
47223         (cosh_test_upward): Likewise.
47224         (cpow_test): Use END_COMPLEX macro without arguments.
47225         (cproj_test): Likewise.
47226         (creal_test): Use END macro without arguments.
47227         (csin_test): Use END_COMPLEX macro without arguments.
47228         (csinh_test): Likewise.
47229         (csqrt_test): Likewise.
47230         (ctan_test): Likewise.
47231         (ctan_test_tonearest): Likewise.
47232         (ctan_test_towardzero): Likewise.
47233         (ctan_test_downward): Likewise.
47234         (ctan_test_upward): Likewise.
47235         (ctanh_test): Likewise.
47236         (ctanh_test_tonearest): Likewise.
47237         (ctanh_test_towardzero): Likewise.
47238         (ctanh_test_downward): Likewise.
47239         (ctanh_test_upward): Likewise.
47240         (erf_test): Use END macro without arguments.
47241         (erfc_test): Likewise.
47242         (exp_test): Likewise.
47243         (exp_test_tonearest): Likewise.
47244         (exp_test_towardzero): Likewise.
47245         (exp_test_downward): Likewise.
47246         (exp_test_upward): Likewise.
47247         (exp10_test): Likewise.
47248         (exp2_test): Likewise.
47249         (expm1_test): Likewise.
47250         (fabs_test): Likewise.
47251         (fdim_test): Likewise.
47252         (finite_test): Likewise.
47253         (floor_test): Likewise.
47254         (fma_test): Likewise.
47255         (fma_test_towardzero): Likewise.
47256         (fma_test_downward): Likewise.
47257         (fma_test_upward): Likewise.
47258         (fmax_test): Likewise.
47259         (fmin_test): Likewise.
47260         (fmod_test): Likewise.
47261         (fpclassify_test): Likewise.
47262         (frexp_test): Likewise.
47263         (gamma_test): Likewise.
47264         (hypot_test): Likewise.
47265         (ilogb_test): Likewise.
47266         (isfinite_test): Likewise.
47267         (isgreater_test): Likewise.
47268         (isgreaterequal_test): Likewise.
47269         (isinf_test): Likewise.
47270         (isless_test): Likewise.
47271         (islessequal_test): Likewise.
47272         (islessgreater_test): Likewise.
47273         (isnan_test): Likewise.
47274         (isnormal_test): Likewise.
47275         (issignaling_test): Likewise.
47276         (isunordered_test): Likewise.
47277         (j0_test): Likewise.
47278         (j1_test): Likewise.
47279         (jn_test): Likewise.
47280         (ldexp_test): Likewise.
47281         (lgamma_test): Likewise.
47282         (lrint_test): Likewise.
47283         (lrint_test_tonearest): Likewise.
47284         (lrint_test_towardzero): Likewise.
47285         (lrint_test_downward): Likewise.
47286         (lrint_test_upward): Likewise.
47287         (llrint_test): Likewise.
47288         (llrint_test_tonearest): Likewise.
47289         (llrint_test_towardzero): Likewise.
47290         (llrint_test_downward): Likewise.
47291         (llrint_test_upward): Likewise.
47292         (log_test): Likewise.
47293         (log10_test): Likewise.
47294         (log1p_test): Likewise.
47295         (log2_test): Likewise.
47296         (logb_test): Likewise.
47297         (logb_test_downward): Likewise.
47298         (lround_test): Likewise.
47299         (llround_test): Likewise.
47300         (modf_test): Likewise.
47301         (nearbyint_test): Likewise.
47302         (nextafter_test): Likewise.
47303         (nexttoward_test): Likewise.
47304         (pow_test): Likewise.
47305         (pow_test_tonearest): Likewise.
47306         (pow_test_towardzero): Likewise.
47307         (pow_test_downward): Likewise.
47308         (pow_test_upward): Likewise.
47309         (remainder_test): Likewise.
47310         (remainder_test_tonearest): Likewise.
47311         (remainder_test_towardzero): Likewise.
47312         (remainder_test_downward): Likewise.
47313         (remainder_test_upward): Likewise.
47314         (remquo_test): Likewise.
47315         (rint_test): Likewise.
47316         (rint_test_tonearest): Likewise.
47317         (rint_test_towardzero): Likewise.
47318         (rint_test_downward): Likewise.
47319         (rint_test_upward): Likewise.
47320         (round_test): Likewise.
47321         (scalb_test): Likewise.
47322         (scalbn_test): Likewise.
47323         (scalbln_test): Likewise.
47324         (signbit_test): Likewise.
47325         (sin_test): Likewise.
47326         (sin_test_tonearest): Likewise.
47327         (sin_test_towardzero): Likewise.
47328         (sin_test_downward): Likewise.
47329         (sin_test_upward): Likewise.
47330         (sincos_test): Likewise.
47331         (sinh_test): Likewise.
47332         (sinh_test_tonearest): Likewise.
47333         (sinh_test_towardzero): Likewise.
47334         (sinh_test_downward): Likewise.
47335         (sinh_test_upward): Likewise.
47336         (sqrt_test): Likewise.
47337         (tan_test): Likewise.
47338         (tan_test_tonearest): Likewise.
47339         (tan_test_towardzero): Likewise.
47340         (tan_test_downward): Likewise.
47341         (tan_test_upward): Likewise.
47342         (tanh_test): Likewise.
47343         (tgamma_test): Likewise.
47344         (trunc_test): Likewise.
47345         (y0_test): Likewise.
47346         (y1_test): Likewise.
47347         (yn_test): Likewise.
47348         (significand_test): Likewise.
47349
47350 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
47351
47352         [BZ #15381]
47353         * libio/genops.c (_IO_no_init): Initialize wide struct info.
47354
47355 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47356
47357         [BZ #14894]
47358         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
47359         __ppc_mdoio and __ppc_mdoom.
47360         * manual/platform.texi: Document new functions __ppc_yield,
47361         __ppc_mdoio and __ppc_mdoom.
47362
47363 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
47364
47365         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
47366         (main): Mention "tls" pseudo-hwcap is legacy.
47367         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
47368
47369 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47370
47371         * math/gen-libm-test.pl (parse_args): Output only string of
47372         arguments as text for test name, not full call or descriptions of
47373         tests for extra outputs.
47374         (generate_testfile): Do not pass function name to parse_args.
47375         Generate this_func variable from START.
47376         * math/libm-test.inc (struct test_f_f_data): Rename test_name
47377         field to arg_str.
47378         (struct test_ff_f_data): Likewise.
47379         (test_ff_f_data_nexttoward): Likewise.
47380         (struct test_fi_f_data): Likewise.
47381         (struct test_fl_f_data): Likewise.
47382         (struct test_if_f_data): Likewise.
47383         (struct test_fff_f_data): Likewise.
47384         (struct test_c_f_data): Likewise.
47385         (struct test_f_f1_data): Likewise.  Remove field extra_name.
47386         (struct test_fF_f1_data): Likewise.
47387         (struct test_ffI_f1_data): Likewise.
47388         (struct test_c_c_data): Rename test_name field to arg_str.
47389         (struct test_cc_c_data): Likewise.
47390         (struct test_f_i_data): Likewise.
47391         (struct test_ff_i_data): Likewise.
47392         (struct test_f_l_data): Likewise.
47393         (struct test_f_L_data): Likewise.
47394         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
47395         and extra2_name.
47396         (COMMON_TEST_SETUP): New macro.
47397         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
47398         (COMMON_TEST_CLEANUP): Likewise.
47399         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
47400         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
47401         macros.
47402         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
47403         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
47404         macros.
47405         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
47406         (RUN_TEST_fff_f): Take argument string.  Call new setup and
47407         cleanup macros.
47408         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
47409         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
47410         macros.
47411         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
47412         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
47413         macros.
47414         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47415         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
47416         cleanup macros.
47417         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47418         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
47419         cleanup macros.
47420         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47421         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
47422         cleanup macros.
47423         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47424         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
47425         macros.
47426         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
47427         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
47428         macros.
47429         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
47430         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
47431         macros.
47432         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
47433         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
47434         cleanup macros.
47435         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
47436         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
47437         cleanup macros.
47438         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
47439         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
47440         macros.
47441         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
47442         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
47443         cleanup macros.
47444         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
47445         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
47446         macros.
47447         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
47448         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
47449         macros.
47450         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
47451         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
47452         cleanup macros.
47453         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
47454
47455 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
47456
47457         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
47458         to _sifields.sigfault.
47459         (si_addr_lsb): Define new macro.
47460         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47461         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
47462         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
47463
47464 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
47465
47466         [BZ #15441]
47467         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
47468         returns -1.
47469         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
47470         null return -1.
47471         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
47472         loading the domain.
47473
47474 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47475
47476         * math/gen-libm-test.pl (parse_args): Do not include expected
47477         result in test name.
47478         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
47479         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47480         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47481         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47482         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47484
47485 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47486
47487         * benchtests/Makefile: Sort function entries.
47488
47489         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
47490         tanh, asinh, acosh, atanh.
47491         * benchtests/acos-inputs: New file.
47492         * benchtests/acosh-inputs: New file.
47493         * benchtests/asin-inputs: New file.
47494         * benchtests/asinh-inputs: New file.
47495         * benchtests/atanh-inputs: New file.
47496         * benchtests/cosh-inputs: New file.
47497         * benchtests/log-inputs: New file.
47498         * benchtests/sinh-inputs: New file.
47499         * benchtests/tanh-inputs: New file.
47500
47501 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
47502
47503         [BZ #15339]
47504         * posix/tst-getaddrinfo4.c: New test.
47505         * posix/Makefile (tests): Add it.
47506
47507 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47508
47509         [BZ #15339]
47510         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
47511         when no services were used.
47512         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
47513         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
47514
47515 2013-05-21  Andreas Schwab  <schwab@suse.de>
47516
47517         [BZ #15014]
47518         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
47519         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
47520         successful.
47521         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
47522         redundant variable declarations and reallocation of buffer when
47523         parsing as IPv6 address.  Always set NSS status when called from
47524         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
47525         buffer too small.  Correct computation of needed size.
47526         * nss/Makefile (tests): Add test-digits-dots.
47527         * nss/test-digits-dots.c: New test.
47528
47529 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47530
47531         * benchtests/Makefile: Remove instructions for adding
47532         benchmark tests.
47533         * benchtests/README: New file to explain how to execute and
47534         enhance the benchmark tests.
47535
47536 2013-05-21  Andreas Schwab  <schwab@suse.de>
47537
47538         [BZ #15493]
47539         * setjmp/Makefile (tests): Add tst-sigsetjmp.
47540         * setjmp/tst-sigsetjmp.c: New test.
47541
47542 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47543
47544         * sysdeps/x86_64/memset.S (memset): New implementation.
47545         (__bzero): Likewise.
47546         (__memset_tail): New function.
47547
47548 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47549
47550         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
47551         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
47552         __memcpy_sse2_unaligned ifunc selection.
47553         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47554         Add memcpy-sse2-unaligned.S.
47555         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47556         Add: __memcpy_sse2_unaligned.
47557
47558 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
47559
47560         [BZ #15490]
47561         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
47562         math_force_eval before restoring floating-point envrionment.
47563         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
47564         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
47565         Likewise.
47566         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
47567         <math_private.h>.
47568         (__nearbyintl): Use math_force_eval before restoring
47569         floating-point environment.
47570         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
47571
47572         * math/gen-libm-test.pl (special_functions): Remove.
47573         (parse_args): Don't handle TEST_extra.  Handle functions with no
47574         return value.
47575         * math/libm-test.inc (struct test_sincos_data): Replace with
47576         struct test_fFF_11_data.
47577         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
47578         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
47579         (sincos_test_data): Change element type to struct
47580         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
47581         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
47582         RUN_TEST_LOOP_sincos.
47583         * math/README.libm-test: Don't mention special handling of
47584         individual functions.
47585         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
47586         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47587         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47588         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47589         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47590         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47591
47592         * math/gen-libm-test.pl (get_variable): Remove function.
47593         (parse_args): Don't show pointer parameters to call in test
47594         names.  Use "extra output N" in test names for extra outputs
47595         rather than naming variables.
47596
47597 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
47598
47599         [BZ #15488]
47600         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
47601         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
47602         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
47603         double tests.
47604         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
47605         disable.
47606         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
47607         check_long_double.
47608
47609         * math/gen-libm-test.pl (@tests): Remove variable.
47610         ($count): Likewise.
47611         (new_test): Remove function.
47612         (show_exceptions): New function.
47613         (special_functions): Use show_exceptions instead of new_test.
47614         (parse_args): Likewise.
47615         (generate_testfile): Pass only function name in generated call to
47616         print_max_error or print_complex_max_error.
47617         (get_ulps): Do not handle complex tests specially.
47618         (output_test): Rename to ...
47619         (get_all_ulps_for_test): ... this.  Return a string rather than
47620         printing to a file.  Require ulps to be present.
47621         (output_ulps): Generate arrays rather than #defines.
47622         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47623         (struct ulp_data): New type.
47624         (BUILD_COMPLEX_ULP): Remove macro.
47625         (compare_ulp_data): New function.
47626         (find_ulps): Likewise.
47627         (find_test_ulps): Likewise.
47628         (find_function_ulps): Likewise.
47629         (find_complex_function_ulps): Likewise.
47630         (print_max_error): Determine allowed ulps using
47631         find_function_ulps.
47632         (print_complex_max_error): Determine allowed ulps using
47633         find_complex_function_ulps.
47634         (check_float_internal): Determine max ulps using find_test_ulps.
47635         (check_float): Do not take max_ulp parameter.  Update call to
47636         check_float_internal.
47637         (check_complex): Likewise.
47638         (check_int): Do not take max_ulp parameter.
47639         (check_long): Likewise.
47640         (check_bool): Likewise.
47641         (check_longlong): Likewise.
47642         (struct test_f_f_data): Remove max_ulp field.
47643         (struct test_ff_f_data): Likewise.
47644         (struct test_ff_f_data_nexttoward): Likewise.
47645         (struct test_fi_f_data): Likewise.
47646         (struct test_fl_f_data): Likewise.
47647         (struct test_if_f_data): Likewise.
47648         (struct test_fff_f_data): Likewise.
47649         (struct test_c_f_data): Likewise.
47650         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47651         (struct test_fF_f1_data): Likewise.
47652         (struct test_ffI_f1_data): Likewise.
47653         (struct test_c_c_data): Remove max_ulp field.
47654         (struct test_cc_c_data): Likewise.
47655         (struct test_f_i_data): Likewise.
47656         (struct test_ff_i_data): Likewise.
47657         (struct test_f_l_data): Likewise.
47658         (struct test_f_L_data): Likewise.
47659         (struct test_sincos_data): Likewise.
47660         (RUN_TEST_f_f): Do not handle ulps.
47661         (RUN_TEST_LOOP_f_f): Likewise.
47662         (RUN_TEST_2_f): Likewise.
47663         (RUN_TEST_LOOP_2_f): Likewise.
47664         (RUN_TEST_fff_f): Likewise.
47665         (RUN_TEST_LOOP_fff_f): Likewise.
47666         (RUN_TEST_c_f): Likewise.
47667         (RUN_TEST_LOOP_c_f): Likewise.
47668         (RUN_TEST_f_f1): Likewise.
47669         (RUN_TEST_LOOP_f_f1): Likewise.
47670         (RUN_TEST_fF_f1): Likewise.
47671         (RUN_TEST_LOOP_fF_f1): Likewise.
47672         (RUN_TEST_fI_f1): Likewise.
47673         (RUN_TEST_LOOP_fI_f1): Likewise.
47674         (RUN_TEST_ffI_f1): Likewise.
47675         (RUN_TEST_LOOP_ffI_f1): Likewise.
47676         (RUN_TEST_c_c): Likewise.
47677         (RUN_TEST_LOOP_c_c): Likewise.
47678         (RUN_TEST_cc_c): Likewise.
47679         (RUN_TEST_LOOP_cc_c): Likewise.
47680         (RUN_TEST_f_i): Likewise.
47681         (RUN_TEST_LOOP_f_i): Likewise.
47682         (RUN_TEST_f_i_tg): Likewise.
47683         (RUN_TEST_LOOP_f_i_tg): Likewise.
47684         (RUN_TEST_ff_i_tg): Likewise.
47685         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47686         (RUN_TEST_f_b): Likewise.
47687         (RUN_TEST_LOOP_f_b): Likewise.
47688         (RUN_TEST_f_b_tg): Likewise.
47689         (RUN_TEST_LOOP_f_b_tg): Likewise.
47690         (RUN_TEST_f_l): Likewise.
47691         (RUN_TEST_LOOP_f_l): Likewise.
47692         (RUN_TEST_f_L): Likewise.
47693         (RUN_TEST_LOOP_f_L): Likewise.
47694         (RUN_TEST_sincos): Likewise.
47695         (RUN_TEST_LOOP_sincos): Likewise.
47696
47697 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47698
47699         [BZ #15480]
47700         [BZ #15485]
47701         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47702         main case of finite arguments, set rounding mode to FE_TONEAREST
47703         and discard exceptions.
47704         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47705         exceptions.
47706         (remainder_tonearest_test_data): New variable.
47707         (remainder_test_tonearest): New function.
47708         (remainder_towardzero_test_data): New variable.
47709         (remainder_test_towardzero): New function.
47710         (remainder_downward_test_data): New variable.
47711         (remainder_test_downward): New function.
47712         (remainder_upward_test_data): New variable.
47713         (remainder_test_upward): New function.
47714         (main): Call the new test functions.
47715
47716         * math/libm-test.inc (struct test_f_f1_data): Remove field
47717         extra_init.
47718         (struct test_fF_f1_data): Likewise.
47719         (struct test_ffI_f1_data): Likewise.
47720         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47721         based on value of EXTRA_EXPECTED.
47722         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47723         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47724         EXTRA_VAR based on value of EXTRA_EXPECTED.
47725         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47726         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47727         EXTRA_VAR based on value of EXTRA_EXPECTED.
47728         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47729         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47730         EXTRA_VAR based on value of EXTRA_EXPECTED.
47731         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47732         * math/gen-libm-test.pl (parse_args): Don't output initializers
47733         for extra output values.
47734
47735         * math/libm-test.inc (check_int): Expect result to be exactly
47736         equal to expected value and do not handle ulps.
47737         (check_long): Likewise.
47738         (check_longlong): Likewise.
47739
47740         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47741         exceptions.
47742         (cimag_test_data): Likewise.
47743         (conj_test_data): Likewise.
47744         (copysign_test_data): Likewise.
47745         (cproj_test_data): Likewise.
47746         (creal_test_data): Likewise.
47747         (fabs_test_data): Likewise.
47748         (fdim_test_data): Likewise.
47749         (finite_test_data): Likewise.
47750         (floor_test_data): Likewise.
47751         (fmax_test_data): Likewise.
47752         (fmin_test_data): Likewise.
47753         (fmod_test_data): Likewise.
47754         (fpclassify_test_data): Likewise.
47755         (frexp_test_data): Likewise.
47756         (ilogb_test_data): Likewise.
47757         (isfinite_test_data): Likewise.
47758         (isgreater_test_data): Likewise.
47759         (isgreaterequal_test_data): Likewise.
47760         (isinf_test_data): Likewise.
47761         (isless_test_data): Likewise.
47762         (islessequal_test_data): Likewise.
47763         (islessgreater_test_data): Likewise.
47764         (isnan_test_data): Likewise.
47765         (isnormal_test_data): Likewise.
47766         (issignaling_test_data): Likewise.
47767         (isunordered_test_data): Likewise.
47768         (ldexp_test_data): Likewise.
47769         (lrint_test_data): Likewise.
47770         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47771         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47772         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47773         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47774         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47775         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47776         test input.
47777         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47778         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47779         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47780         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47781         that test input.
47782         (lrint_downward_test_data): Test for "inexact" exceptions.
47783         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47784         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47785         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47786         test input.
47787         (lrint_upward_test_data): Test for "inexact" exceptions.
47788         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47789         test input.
47790         (llrint_test_data): Test for "inexact" exceptions.
47791         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47792         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47793         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47794         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47795         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47796         (llrint_downward_test_data): Test for "inexact" exceptions.
47797         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47798         (llrint_upward_test_data): Test for "inexact" exceptions.
47799         (logb_test_data): Likewise.
47800         (logb_downward_test_data): Likewise.
47801         (nextafter_test_data): Likewise.
47802         (nexttoward_test_data): Likewise.
47803         (remainder_test_data): Likewise.
47804         (remquo_test_data): Likewise.
47805         (scalbn_test_data): Likewise.
47806         (scalbln_test_data): Likewise.
47807         (signbit_test_data): Likewise.
47808         (sqrt_test_data): Likewise.
47809         (significand_test_data): Likewise.
47810
47811 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47812
47813         [BZ #15424]
47814         * benchtests/bench-modf.c (struct args): Mark arg0 as
47815         volatile.
47816         * scripts/bench.pl: Mark members of struct args as volatile.
47817
47818 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47819
47820         [BZ # 15497]
47821         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47822         negative infinity on POWER6 or lower.
47823         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47824
47825 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47826
47827         [BZ #15442]
47828         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47829         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47830         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47831         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47832         (_FP_SETQNAN): New macro.
47833         (_FP_SETQNAN_SEMIRAW): Likewise.
47834         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47835         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47836         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47837         (FP_EXTEND): Use _FP_FRAC_SNANP.
47838         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47839         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47840         into account.
47841         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47842         New macro.
47843         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47844         Likewise.
47845
47846 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47847
47848         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47849         with DIVIDE_BY_ZERO_EXCEPTION.
47850         (gamma_test_data): Likewise.
47851         (lgamma_test_data): Likewise.
47852         (log_test_data): Likewise.
47853         (log10_test_data): Likewise.
47854         (log2_test_data): Likewise.
47855         (tgamma_test_data): Likewise.
47856
47857         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47858         (acos_test_tonearest): Likewise.
47859         (acos_test_towardzero): Likewise.
47860         (acos_test_downward): Likewise.
47861         (acos_test_upward): Likewise.
47862         (acosh_test): Likewise.
47863         (asin_test): Likewise.
47864         (asin_test_tonearest): Likewise.
47865         (asin_test_towardzero): Likewise.
47866         (asin_test_downward): Likewise.
47867         (asin_test_upward): Likewise.
47868         (asinh_test): Likewise.
47869         (atan_test): Likewise.
47870         (atanh_test): Likewise.
47871         (atan2_test): Likewise.
47872         (cabs_test): Likewise.
47873         (cacos_test): Likewise.
47874         (cacosh_test): Likewise.
47875         (casin_test): Likewise.
47876         (casinh_test): Likewise.
47877         (catan_test): Likewise.
47878         (catanh_test): Likewise.
47879         (cbrt_test): Likewise.
47880         (ccos_test): Likewise.
47881         (ccosh_test): Likewise.
47882         (cexp_test): Likewise.
47883         (clog_test): Likewise.
47884         (clog10_test): Likewise.
47885         (cos_test): Likewise.
47886         (cos_test_tonearest): Likewise.
47887         (cos_test_towardzero): Likewise.
47888         (cos_test_downward): Likewise.
47889         (cos_test_upward): Likewise.
47890         (cosh_test): Likewise.
47891         (cosh_test_tonearest): Likewise.
47892         (cosh_test_towardzero): Likewise.
47893         (cosh_test_downward): Likewise.
47894         (cosh_test_upward): Likewise.
47895         (cpow_test): Likewise.
47896         (csin_test): Likewise.
47897         (csinh_test): Likewise.
47898         (csqrt_test): Likewise.
47899         (ctan_test): Likewise.
47900         (ctan_test_tonearest): Likewise.
47901         (ctan_test_towardzero): Likewise.
47902         (ctan_test_downward): Likewise.
47903         (ctan_test_upward): Likewise.
47904         (ctanh_test): Likewise.
47905         (ctanh_test_tonearest): Likewise.
47906         (ctanh_test_towardzero): Likewise.
47907         (ctanh_test_downward): Likewise.
47908         (ctanh_test_upward): Likewise.
47909         (erf_test): Likewise.
47910         (erfc_test): Likewise.
47911         (exp_test): Likewise.
47912         (exp_test_tonearest): Likewise.
47913         (exp_test_towardzero): Likewise.
47914         (exp_test_downward): Likewise.
47915         (exp_test_upward): Likewise.
47916         (exp10_test): Likewise.
47917         (exp2_test): Likewise.
47918         (expm1_test): Likewise.
47919         (fmod_test): Likewise.
47920         (gamma_test): Likewise.
47921         (hypot_test): Likewise.
47922         (j0_test): Likewise.
47923         (j1_test): Likewise.
47924         (jn_test): Likewise.
47925         (lgamma_test): Likewise.
47926         (log_test): Likewise.
47927         (log10_test): Likewise.
47928         (log1p_test): Likewise.
47929         (log2_test): Likewise.
47930         (logb_test_downward): Likewise.
47931         (pow_test): Likewise.
47932         (pow_test_tonearest): Likewise.
47933         (pow_test_towardzero): Likewise.
47934         (pow_test_downward): Likewise.
47935         (pow_test_upward): Likewise.
47936         (remainder_test): Likewise.
47937         (remquo_test): Likewise.
47938         (sin_test): Likewise.
47939         (sin_test_tonearest): Likewise.
47940         (sin_test_towardzero): Likewise.
47941         (sin_test_downward): Likewise.
47942         (sin_test_upward): Likewise.
47943         (sincos_test): Likewise.
47944         (sinh_test): Likewise.
47945         (sinh_test_tonearest): Likewise.
47946         (sinh_test_towardzero): Likewise.
47947         (sinh_test_downward): Likewise.
47948         (sinh_test_upward): Likewise.
47949         (sqrt_test): Likewise.
47950         (tan_test): Likewise.
47951         (tan_test_tonearest): Likewise.
47952         (tan_test_towardzero): Likewise.
47953         (tan_test_downward): Likewise.
47954         (tan_test_upward): Likewise.
47955         (tanh_test): Likewise.
47956         (tgamma_test): Likewise.
47957         (y0_test): Likewise.
47958         (y1_test): Likewise.
47959         (yn_test): Likewise.
47960
47961         * math/gen-libm-test.pl (adjust_arg): Remove function.
47962         (special_function): Remove argument $in_func.  Only handle
47963         generating output for tables of tests, not inside functions.
47964         (parse_args): Likewise.
47965         (generate_testfile): Remove variable $in_func.  Update call to
47966         parse_args.
47967         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47968         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47969         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47970         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47971         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47972         (MAX_VALUE_INIT): Rename macro to max_value.
47973         (MIN_VALUE_INIT): Rename macro to min_value.
47974         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47975         (plus_zero): Remove variable.
47976         (minus_zero): Likewise.
47977         (plus_infty): Likewise.
47978         (minus_infty): Likewise.
47979         (qnan_value): Likewise.
47980         (max_value): Likewise.
47981         (min_value): Likewise.
47982         (min_subnorm_value): Likewise.
47983
47984 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47985
47986         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47987         uint64_t or uint32_t usage.
47988         * crypt/sha256-block.c: Likewise.
47989         * crypt/sha256-crypt.c: Likewise.
47990         * crypt/sha256.c: Likewise.
47991         * crypt/sha512-block.c: Likewise.
47992         * crypt/sha512-crypt.c: Likewise.
47993         * crypt/sha512.c: Likewise.
47994         * debug/backtrace-tst.c: Likewise.
47995         * debug/pcprofiledump.c: Likewise.
47996         * elf/cache.c: Likewise.
47997         * elf/dl-cache.c: Likewise.
47998         * elf/dl-misc.c: Likewise.
47999         * elf/dl-profile.c: Likewise.
48000         * elf/dl-support.c: Likewise.
48001         * elf/ldconfig.c: Likewise.
48002         * elf/sprof.c: Likewise.
48003         * iconv/dummy-repertoire.c: Likewise.
48004         * iconv/iconv_charmap.c: Likewise.
48005         * iconv/skeleton.c: Likewise.
48006         * iconvdata/8bit-generic.c: Likewise.
48007         * iconvdata/cp737.h: Likewise.
48008         * iconvdata/cp775.h: Likewise.
48009         * iconvdata/ibm1008.h: Likewise.
48010         * iconvdata/ibm1025.h: Likewise.
48011         * iconvdata/ibm1046.h: Likewise.
48012         * iconvdata/ibm1097.h: Likewise.
48013         * iconvdata/ibm1112.h: Likewise.
48014         * iconvdata/ibm1122.h: Likewise.
48015         * iconvdata/ibm1123.h: Likewise.
48016         * iconvdata/ibm1124.h: Likewise.
48017         * iconvdata/ibm1129.h: Likewise.
48018         * iconvdata/ibm1130.h: Likewise.
48019         * iconvdata/ibm1132.h: Likewise.
48020         * iconvdata/ibm1133.h: Likewise.
48021         * iconvdata/ibm1137.h: Likewise.
48022         * iconvdata/ibm1140.h: Likewise.
48023         * iconvdata/ibm1141.h: Likewise.
48024         * iconvdata/ibm1142.h: Likewise.
48025         * iconvdata/ibm1143.h: Likewise.
48026         * iconvdata/ibm1144.h: Likewise.
48027         * iconvdata/ibm1145.h: Likewise.
48028         * iconvdata/ibm1146.h: Likewise.
48029         * iconvdata/ibm1147.h: Likewise.
48030         * iconvdata/ibm1148.h: Likewise.
48031         * iconvdata/ibm1149.h: Likewise.
48032         * iconvdata/ibm1153.h: Likewise.
48033         * iconvdata/ibm1154.h: Likewise.
48034         * iconvdata/ibm1155.h: Likewise.
48035         * iconvdata/ibm1156.h: Likewise.
48036         * iconvdata/ibm1157.h: Likewise.
48037         * iconvdata/ibm1158.h: Likewise.
48038         * iconvdata/ibm1160.h: Likewise.
48039         * iconvdata/ibm1161.h: Likewise.
48040         * iconvdata/ibm1162.h: Likewise.
48041         * iconvdata/ibm1163.h: Likewise.
48042         * iconvdata/ibm1164.h: Likewise.
48043         * iconvdata/ibm1166.h: Likewise.
48044         * iconvdata/ibm1167.h: Likewise.
48045         * iconvdata/ibm12712.h: Likewise.
48046         * iconvdata/ibm1390.h: Likewise.
48047         * iconvdata/ibm1399.h: Likewise.
48048         * iconvdata/ibm16804.h: Likewise.
48049         * iconvdata/ibm4517.h: Likewise.
48050         * iconvdata/ibm4899.h: Likewise.
48051         * iconvdata/ibm4909.h: Likewise.
48052         * iconvdata/ibm4971.h: Likewise.
48053         * iconvdata/ibm5347.h: Likewise.
48054         * iconvdata/ibm803.h: Likewise.
48055         * iconvdata/ibm856.h: Likewise.
48056         * iconvdata/ibm901.h: Likewise.
48057         * iconvdata/ibm902.h: Likewise.
48058         * iconvdata/ibm9030.h: Likewise.
48059         * iconvdata/ibm9066.h: Likewise.
48060         * iconvdata/ibm921.h: Likewise.
48061         * iconvdata/ibm922.h: Likewise.
48062         * iconvdata/ibm9448.h: Likewise.
48063         * iconvdata/isiri-3342.h: Likewise.
48064         * iconvdata/jis0201.h: Likewise.
48065         * include/link.h: Likewise.
48066         * include/netdb.h: Likewise.
48067         * inet/check_native.c: Likewise.
48068         * inet/check_pf.c: Likewise.
48069         * inet/getipv4sourcefilter.c: Likewise.
48070         * inet/getnameinfo.c: Likewise.
48071         * inet/getsourcefilter.c: Likewise.
48072         * inet/htonl.c: Likewise.
48073         * inet/setipv4sourcefilter.c: Likewise.
48074         * inet/setsourcefilter.c: Likewise.
48075         * inet/test-inet6_opt.c: Likewise.
48076         * inet/tst-network.c: Likewise.
48077         * locale/C-collate.c: Likewise.
48078         * locale/C-ctype.c: Likewise.
48079         * locale/C-time.c: Likewise.
48080         * locale/C-translit.h: Likewise.
48081         * locale/loadarchive.c: Likewise.
48082         * locale/programs/3level.h: Likewise.
48083         * locale/programs/charmap.c: Likewise.
48084         * locale/programs/charmap.h: Likewise.
48085         * locale/programs/ld-address.c: Likewise.
48086         * locale/programs/ld-collate.c: Likewise.
48087         * locale/programs/ld-ctype.c: Likewise.
48088         * locale/programs/ld-identification.c: Likewise.
48089         * locale/programs/ld-measurement.c: Likewise.
48090         * locale/programs/ld-messages.c: Likewise.
48091         * locale/programs/ld-monetary.c: Likewise.
48092         * locale/programs/ld-name.c: Likewise.
48093         * locale/programs/ld-numeric.c: Likewise.
48094         * locale/programs/ld-paper.c: Likewise.
48095         * locale/programs/ld-telephone.c: Likewise.
48096         * locale/programs/ld-time.c: Likewise.
48097         * locale/programs/linereader.c: Likewise.
48098         * locale/programs/locale.c: Likewise.
48099         * locale/programs/locarchive.c: Likewise.
48100         * locale/programs/locfile.h: Likewise.
48101         * locale/programs/repertoire.c: Likewise.
48102         * locale/programs/simple-hash.c: Likewise.
48103         * locale/programs/simple-hash.h: Likewise.
48104         * malloc/memusage.c: Likewise.
48105         * malloc/memusagestat.c: Likewise.
48106         * nis/nis_defaults.c: Likewise.
48107         * nis/nis_hash.c: Likewise.
48108         * nis/nis_print.c: Likewise.
48109         * nis/nis_xdr.c: Likewise.
48110         * nscd/connections.c: Likewise.
48111         * nscd/hstcache.c: Likewise.
48112         * nscd/nscd_gethst_r.c: Likewise.
48113         * nscd/nscd_getserv_r.c: Likewise.
48114         * nscd/nscd_helper.c: Likewise.
48115         * nscd/servicescache.c: Likewise.
48116         * nss/makedb.c: Likewise.
48117         * nss/nss_db/db-XXX.c: Likewise.
48118         * nss/nss_db/db-initgroups.c: Likewise.
48119         * nss/nss_db/db-netgrp.c: Likewise.
48120         * nss/nss_files/files-network.c: Likewise.
48121         * nss/nss_files/files-parse.c: Likewise.
48122         * posix/bug-regex5.c: Likewise.
48123         * posix/fnmatch_loop.c: Likewise.
48124         * posix/regcomp.c: Likewise.
48125         * posix/regexec.c: Likewise.
48126         * posix/tst-rfc3484-2.c: Likewise.
48127         * posix/tst-rfc3484-3.c: Likewise.
48128         * posix/tst-rfc3484.c: Likewise.
48129         * resolv/nss_dns/dns-canon.c: Likewise.
48130         * resolv/nss_dns/dns-network.c: Likewise.
48131         * resolv/res_init.c: Likewise.
48132         * resolv/res_mkquery.c: Likewise.
48133         * resolv/tst-aton.c: Likewise.
48134         * stdlib/cxa_atexit.c: Likewise.
48135         * stdlib/cxa_finalize.c: Likewise.
48136         * stdlib/gen-fpioconst.c: Likewise.
48137         * stdlib/strtol_l.c: Likewise.
48138         * string/tst-endian.c: Likewise.
48139         * sunrpc/auth_des.c: Likewise.
48140         * sunrpc/clnt_udp.c: Likewise.
48141         * sunrpc/rtime.c: Likewise.
48142         * sunrpc/svcauth_des.c: Likewise.
48143         * sunrpc/xdr.c: Likewise.
48144         * sunrpc/xdr_intXX_t.c: Likewise.
48145         * sunrpc/xdr_rec.c: Likewise.
48146         * sysdeps/generic/ldconfig.h: Likewise.
48147         * sysdeps/generic/ldsodefs.h: Likewise.
48148         * sysdeps/generic/memusage.h: Likewise.
48149         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
48150         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
48151         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
48152         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
48153         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
48154         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
48155         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
48156         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
48157         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
48158         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
48159         * sysdeps/posix/getaddrinfo.c: Likewise.
48160         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
48161         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48162         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
48163         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
48164         * sysdeps/powerpc/test-gettimebase.c: Likewise.
48165         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
48166         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
48167         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
48168         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
48169         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
48170         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
48171         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
48172         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
48173         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
48174         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
48175         * sysdeps/x86_64/dl-tls.h: Likewise.
48176         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
48177         * time/alt_digit.c: Likewise.
48178         * time/era.c: Likewise.
48179         * wcsmbs/tst-c16c32-1.c: Likewise.
48180
48181 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48182
48183         * math/libm-test.inc (struct test_sincos_data): New type.
48184         (RUN_TEST_LOOP_sincos): New macro.
48185         (sincos_test_data): New variable.
48186         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
48187
48188 2013-05-16  Richard Henderson  <rth@redhat.com>
48189
48190         * math/atest-exp2.c (LIMB64): New macro.
48191         (CONSTSZ): New macro.
48192         (mp_exp1, mp_exp_m1, mp_log2): New variables.
48193         (hexdig): Move ...
48194         (print_mpn_fp): ... to function scope.
48195         (read_mpn_hex): Remove.
48196         (get_log2): Remove.
48197         (exp2_mpn): Use mp_log2.
48198         (main): Use mp_exp1.
48199
48200 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48201
48202         * math/libm-test.inc: Remove comment about not testing "inexact"
48203         exceptions.
48204         (INEXACT_EXCEPTION): New macro.
48205         (NO_INEXACT_EXCEPTION): Likewise.
48206         (INVALID_EXCEPTION_OK): Update value.
48207         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
48208         (OVERFLOW_EXCEPTION_OK): Likewise.
48209         (UNDERFLOW_EXCEPTION_OK): Likewise.
48210         (IGNORE_ZERO_INF_SIGN): Likewise.
48211         (ERRNO_UNCHANGED): Likewise.
48212         (ERRNO_EDOM): Likewise.
48213         (ERRNO_ERANGE): Likewise.
48214         (test_exceptions): Handle testing "inexact" exceptions.
48215         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
48216         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
48217         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
48218         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
48219         INEXACT_EXCEPTION.
48220         (rint_towardzero_test_data): Likewise.
48221         (rint_downward_test_data): Likewise.
48222         (rint_upward_test_data): Likewise.
48223
48224         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
48225         with OVERFLOW_EXCEPTION.
48226         (exp10_test_data): Likewise.
48227         (exp2_test_data): Likewise.
48228         (expm1_test_data): Likewise.
48229         (lgamma_test_data): Likewise.
48230         (pow_test_data): Likewise.
48231         (tgamma_test_data): Likewise.
48232         (yn_test_data): Remove duplicate test of overflow.
48233
48234         * math/libm-test.inc (struct test_cc_c_data): New type.
48235         (RUN_TEST_LOOP_cc_c): New macro.
48236         (cpow_test_data): New variable.
48237         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
48238
48239         * math/libm-test.inc (struct test_f_L_data): New type.
48240         (RUN_TEST_LOOP_f_L): New macro.
48241         (llrint_test_data): New variable.
48242         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
48243         (llrint_tonearest_test_data): New variable.
48244         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
48245         (llrint_towardzero_test_data): New variable.
48246         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
48247         (llrint_downward_test_data): New variable.
48248         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
48249         (llrint_upward_test_data): New variable.
48250         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
48251         (llround_test_data): New variable.
48252         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
48253
48254 2013-05-13  Peter Collingbourne  <pcc@google.com>
48255
48256         * math/atest-exp2.c (get_log2): Remove const attribute.
48257
48258 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48259
48260         * math/libm-test.inc (struct test_f_l_data): New type.
48261         (RUN_TEST_LOOP_f_l): New macro.
48262         (lrint_test_data): New variable.
48263         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
48264         (lrint_tonearest_test_data): New variable.
48265         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
48266         (lrint_towardzero_test_data): New variable.
48267         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
48268         (lrint_downward_test_data): New variable.
48269         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
48270         (lrint_upward_test_data): New variable.
48271         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
48272         (lround_test_data): New variable.
48273         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
48274
48275 2013-05-15  Peter Collingbourne  <pcc@google.com>
48276
48277         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
48278         (EXTRACT_WORDS64) Use where appropriate.
48279         (INSERT_WORDS64) Likewise.
48280
48281         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
48282         constraints with x constraints.
48283         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
48284
48285         * malloc/obstack.c (_obstack_compat): Add initializer.
48286
48287 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
48288
48289         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
48290         si_trapno and add si_addr_lsb to _sifields.sigfault.
48291         (si_trapno): Remove macro.
48292         (si_addr_lsb): Define new macro.
48293         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
48294
48295 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48296
48297         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
48298         instead of TEST_f_l.
48299         (llrint_test_tonearest): Likewise.
48300         (llrint_test_towardzero): Likewise.
48301         (llrint_test_downward): Likewise.
48302         (llrint_test_upward): Likewise.
48303         (llround_test): Likewise.
48304
48305         * math/libm-test.inc (struct test_f_i_data): Add comment.
48306         (RUN_TEST_LOOP_f_b): New macro.
48307         (RUN_TEST_LOOP_f_b_tg): Likewise.
48308         (finite_test_data): New variable.
48309         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
48310         (isfinite_test_data): New variable.
48311         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48312         (isinf_test_data): New variable.
48313         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48314         (isnan_test_data): New variable.
48315         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48316         (isnormal_test_data): New variable.
48317         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48318         (issignaling_test_data): New variable.
48319         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48320         (signbit_test_data): New variable.
48321         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48322
48323         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
48324         with INVALID_EXCEPTION.
48325         (acosh_test_data): Likewise.
48326         (asin_test_data): Likewise.
48327         (atanh_test_data): Likewise.
48328         (fmod_test_data): Likewise.
48329         (log_test_data): Likewise.
48330         (log10_test_data): Likewise.
48331         (log2_test_data): Likewise.
48332         (pow_test_data): Likewise.
48333         (sqrt_test_data): Likewise.
48334         (y0_test_data): Likewise.
48335         (y1_test_data): Likewise.
48336         (yn_test_data): Likewise.
48337
48338         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
48339         function contents.
48340
48341         * math/libm-test.inc (struct test_ff_i_data): New type.
48342         (RUN_TEST_LOOP_ff_i_tg): New macro.
48343         (isgreater_test_data): New variable.
48344         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48345         (isgreaterequal_test_data): New variable.
48346         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48347         (isless_test_data): New variable.
48348         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48349         (islessequal_test_data): New variable.
48350         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48351         (islessgreater_test_data): New variable.
48352         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48353         (isunordered_test_data): New variable.
48354         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48355
48356 2013-05-14  David S. Miller  <davem@davemloft.net>
48357
48358         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48359
48360 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
48361
48362         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
48363
48364         * math/libm-test.inc (struct test_fF_f1_data): Change type of
48365         extra_test to int.
48366         (struct test_f_i_data): Change type of max_ulp to int.
48367
48368         * math/libm-test.inc (test_ffI_f1_data): New type.
48369         (RUN_TEST_LOOP_ffI_f1): New macro.
48370         (remquo_test_data): New variable.
48371         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
48372
48373         * setjmp/tst-setjmp-fp.c: New file.
48374         * setjmp/Makefile (tests): Add tst-setjmp-fp.
48375         (link-libm): New variable.
48376         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
48377
48378         * math/libm-test.inc (struct test_f_i_data): New type.
48379         (RUN_TEST_LOOP_f_i): New macro.
48380         (RUN_TEST_LOOP_f_i_tg): Likewise.
48381         (fpclassify_test_data): New variable.
48382         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
48383         (ilogb_test_data): New variable.
48384         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
48385
48386         * math/libm-test.inc (scalbln_test): Correct function name in END
48387         call.
48388
48389         * math/libm-test.inc (struct test_f_f1_data): Add comment.
48390         (RUN_TEST_LOOP_fI_f1): New macro.
48391         (frexp_test_data): New variable.
48392         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
48393
48394         * math/libm-test.inc (struct test_fF_f1_data): New type.
48395         (RUN_TEST_LOOP_fF_f1): New macro.
48396         (modf_test_data): New variable.
48397         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
48398
48399         * math/libm-test.inc (struct test_f_f1_data): New type.
48400         (RUN_TEST_LOOP_f_f1): New macro.
48401         (gamma_test_data): New variable.
48402         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48403         (lgamma_test_data): New variable.
48404         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48405
48406 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
48407
48408         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
48409         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
48410         (main): Comment "tls" pseudo-hwcap.
48411
48412 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
48413
48414         * math/libm-test.inc (struct test_fl_f_data): New type.
48415         (RUN_TEST_LOOP_fl_f): New variable.
48416         (scalbln_test_data): New variable.
48417         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
48418
48419         * math/libm-test.inc (struct test_fi_f_data): New type.
48420         (RUN_TEST_LOOP_fi_f): New macro.
48421         (ldexp_test_data): New variable.
48422         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
48423         (scalbn_test_data): New variable.
48424         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
48425
48426         * math/libm-test.inc (struct test_c_f_data): New type.
48427         (RUN_TEST_LOOP_c_f): New macro.
48428         (cabs_test_data): New variable.
48429         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
48430         (carg_test_data): New variable.
48431         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
48432         (cimag_test_data): New variable.
48433         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
48434         (creal_test_data): New variable.
48435         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
48436
48437         * math/libm-test.inc (struct test_if_f_data): New type.
48438         (RUN_TEST_LOOP_if_f): New macro.
48439         (jn_test_data): New variable.
48440         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
48441         (yn_test_data): New variable.
48442         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
48443
48444         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
48445
48446 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48447
48448         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
48449         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
48450
48451 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
48452
48453         * benchtests/Makefile (CPPFLAGS-nonlib): Add
48454         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
48455         (bench-deps): Add bench-timing.h.
48456         * benchtests-bench-skeleton.c: Include bench-timing.h.
48457         (main): Use TIMING_* macros instead of clock_gettime.
48458         * benchtests/bench-timing.h: New file.
48459
48460         [BZ #14582]
48461         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
48462         Renamed from _LIB_VERSION.
48463         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
48464
48465 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
48466
48467         * math/libm-test.inc (struct test_fff_f_data): New type.
48468         (RUN_TEST_LOOP_fff_f): New macro.
48469         (fma_test_data): New variable.
48470         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
48471         (fma_towardzero_test_data): New variable.
48472         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
48473         (fma_downward_test_data): New variable.
48474         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
48475         (fma_upward_test_data): New variable.
48476         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
48477
48478         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
48479         (struct test_c_c_data): New type.
48480         (RUN_TEST_LOOP_c_c): New macro.
48481         (cacos_test_data): New variable.
48482         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
48483         (cacosh_test_data): New variable.
48484         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
48485         (casin_test_data): New variable.
48486         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
48487         (casinh_test_data): New variable.
48488         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
48489         (catan_test_data): New variable.
48490         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
48491         (catanh_test_data): New variable.
48492         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48493         (ccos_test_data): New variable.
48494         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
48495         (ccosh_test_data): New variable.
48496         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
48497         (cexp_test_data): New variable.
48498         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
48499         (clog_test_data): New variable.
48500         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
48501         (clog10_test_data): New variable.
48502         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
48503         (conj_test_data): New variable.
48504         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
48505         (cproj_test_data): New variable.
48506         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
48507         (csin_test_data): New variable.
48508         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
48509         (csinh_test_data): New variable.
48510         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
48511         (csqrt_test_data): New variable.
48512         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
48513         (ctan_test_data): New variable.
48514         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
48515         (ctan_tonearest_test_data): New variable.
48516         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48517         (ctan_towardzero_test_data): New variable.
48518         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48519         (ctan_downward_test_data): New variable.
48520         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48521         (ctan_upward_test_data): New variable.
48522         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48523         (ctanh_test_data): New variable.
48524         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
48525         (ctanh_tonearest_test_data): New variable.
48526         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48527         (ctanh_towardzero_test_data): New variable.
48528         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48529         (ctanh_downward_test_data): New variable.
48530         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48531         (ctanh_upward_test_data): New variable.
48532         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48533         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
48534         of BUILD_COMPLEX.
48535
48536         * math/libm-test.inc (struct test_ff_f_data): New type.
48537         (struct test_ff_f_data_nexttoward): Likewise.
48538         (RUN_TEST_LOOP_2_f): New macro.
48539         (RUN_TEST_LOOP_ff_f): Likewise.
48540         (atan2_test_data): New variable.
48541         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
48542         (copysign_test_data): New variable.
48543         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
48544         (fdim_test_data): New variable.
48545         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
48546         (fmax_test_data): New variable.
48547         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
48548         (fmin_test_data): New variable.
48549         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
48550         (fmod_test_data): New variable.
48551         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
48552         (hypot_test_data): New variable.
48553         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
48554         (nextafter_test_data): New variable.
48555         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
48556         (nexttoward_test_data): New variable.
48557         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
48558         (pow_test_data): New variable.
48559         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
48560         (pow_tonearest_test_data): New variable.
48561         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
48562         (pow_towardzero_test_data): New variable.
48563         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
48564         (pow_downward_test_data): New variable.
48565         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
48566         (pow_upward_test_data): New variable.
48567         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
48568         (remainder_test_data): New variable.
48569         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
48570         (scalb_test_data): New variable.
48571         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
48572         * sysdeps/i386/fpu/libm-test-ulps: Update.
48573
48574 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
48575
48576         * math/libm-test.inc (fma_test): Use max_value instead of local
48577         variable fltmax.
48578         (nextafter_test): Likewise.
48579
48580         * math/libm-test.inc (acos_towardzero_test_data): New variable.
48581         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48582         (acos_downward_test_data): New variable.
48583         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48584         (acos_upward_test_data): New variable.
48585         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48586         (acosh_test_data): New variable.
48587         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
48588         (asin_test_data): New variable.
48589         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
48590         (asin_tonearest_test_data): New variable.
48591         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48592         (asin_towardzero_test_data): New variable.
48593         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48594         (asin_downward_test_data): New variable.
48595         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48596         (asin_upward_test_data): New variable.
48597         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48598         (asinh_test_data): New variable.
48599         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
48600         (atan_test_data): New variable.
48601         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
48602         (atanh_test_data): New variable.
48603         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
48604         (cbrt_test_data): New variable.
48605         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
48606         (ceil_test_data): New variable.
48607         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
48608         (cos_test_data): New variable.
48609         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
48610         (cos_tonearest_test_data): New variable.
48611         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48612         (cos_towardzero_test_data): New variable.
48613         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48614         (cos_downward_test_data): New variable.
48615         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48616         (cos_upward_test_data): New variable.
48617         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48618         (cosh_test_data): New variable.
48619         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
48620         (cosh_tonearest_test_data): New variable.
48621         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48622         (cosh_towardzero_test_data): New variable.
48623         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48624         (cosh_downward_test_data): New variable.
48625         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48626         (cosh_upward_test_data): New variable.
48627         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48628         (erf_test_data): New variable.
48629         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48630         (erfc_test_data): New variable.
48631         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48632         (exp_test_data): New variable.
48633         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48634         (exp_tonearest_test_data): New variable.
48635         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48636         (exp_towardzero_test_data): New variable.
48637         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48638         (exp_downward_test_data): New variable.
48639         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48640         (exp_upward_test_data): New variable.
48641         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48642         (exp10_test_data): New variable.
48643         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48644         (exp2_test_data): New variable.
48645         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48646         (expm1_test_data): New variable.
48647         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48648         (fabs_test_data): New variable.
48649         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48650         (floor_test_data): New variable.
48651         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48652         (j0_test_data): New variable.
48653         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48654         (j1_test_data): New variable.
48655         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48656         (log_test_data): New variable.
48657         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48658         (log10_test_data): New variable.
48659         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48660         (log1p_test_data): New variable.
48661         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48662         (log2_test_data): New variable.
48663         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48664         (logb_test_data): New variable.
48665         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48666         (logb_downward_test_data): New variable.
48667         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48668         (nearbyint_test_data): New variable.
48669         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48670         (rint_test_data): New variable.
48671         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48672         (rint_tonearest_test_data): New variable.
48673         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48674         (rint_towardzero_test_data): New variable.
48675         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48676         (rint_downward_test_data): New variable.
48677         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48678         (rint_upward_test_data): New variable.
48679         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48680         (round_test_data): New variable.
48681         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48682         (sin_test_data): New variable.
48683         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48684         (sin_tonearest_test_data): New variable.
48685         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48686         (sin_towardzero_test_data): New variable.
48687         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48688         (sin_downward_test_data): New variable.
48689         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48690         (sin_upward_test_data): New variable.
48691         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48692         (sinh_test_data): New variable.
48693         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48694         (sinh_tonearest_test_data): New variable.
48695         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48696         (sinh_towardzero_test_data): New variable.
48697         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48698         (sinh_downward_test_data): New variable.
48699         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48700         (sinh_upward_test_data): New variable.
48701         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48702         (sqrt_test_data): New variable.
48703         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48704         (tan_test_data): New variable.
48705         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48706         (tan_tonearest_test_data): New variable.
48707         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48708         (tan_towardzero_test_data): New variable.
48709         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48710         (tan_downward_test_data): New variable.
48711         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48712         (tan_upward_test_data): New variable.
48713         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48714         (tanh_test_data): New variable.
48715         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48716         (tgamma_test_data): New variable.
48717         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48718         (trunc_test_data): New variable.
48719         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48720         (y0_test_data): New variable.
48721         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48722         (y1_test_data): New variable.
48723         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48724         (significand_test_data): New variable.
48725         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48726
48727 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48728
48729         [BZ #12387]
48730         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48731
48732 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48733
48734         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48735
48736 2013-05-10  Andreas Jaeger  <aj@suse.de>
48737
48738         [BZ #15448]
48739         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48740         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48741
48742 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48743
48744         * math/gen-libm-test.pl (adjust_arg): New function.
48745         (special_functions): Handle generating output in both functions
48746         and arrays.
48747         (parse_args): Likewise.
48748         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48749         $in_func argument to parse_args.
48750         * math/libm-test.inc (struct test_f_f_data): New type.
48751         (IF_ROUND_INIT_): New macro.
48752         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48753         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48754         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48755         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48756         (ROUND_RESTORE_): Likewise.
48757         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48758         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48759         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48760         (ROUND_RESTORE_FE_UPWARD): Likewise.
48761         (RUN_TEST_LOOP_f_f): New macro.
48762         (acos_test_data): New variable.
48763         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48764         (acos_tonearest_test_data): New variable.
48765         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48766
48767 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48768
48769         * benchtests/bench-skeleton.c (startup): Fix coding style.
48770
48771 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48772
48773         [BZ #6809]
48774         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48775         negative infinity argument.
48776         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48777         negative infinity argument.
48778         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48779         negative infinity argument.
48780         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48781         domain errors.
48782
48783 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48784
48785         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48786         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48787         * iconv/iconv_prog.c (main): Likewise.
48788         * locale/programs/charmap-dir.c (charmap_readdir)
48789         (fopen_uncompressed): Likewise.
48790         * locale/programs/locfile.c (siblings_uncached)
48791         (write_locale_data): Use lstat64 instead of lstat.
48792         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48793         stat.
48794
48795 2013-05-10  Andreas Jaeger  <aj@suse.de>
48796
48797         [BZ #15395]
48798         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48799         localization.
48800         Include <locale.h>.
48801
48802 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48803
48804         * elf/dl-close.c (_dl_close_worker): Add comments.
48805
48806 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48807
48808         [BZ #15359]
48809         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48810         high part of pi/2.
48811         (__ieee754_rem_pio2l): Update comments.
48812
48813         [BZ #15429]
48814         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48815         high part of pi/2.
48816         (__ieee754_rem_pio2l): Update comments.
48817
48818         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48819         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48820
48821         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48822         M_PI_4l.
48823
48824         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48825         (M_PI_34_LOG10El): Likewise.
48826         (M_PI2_LOG10El): Likewise.
48827         (M_PI4_LOG10El): Likewise.
48828         (M_PI_LOG10El): Likewise.
48829
48830 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48831
48832         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48833
48834 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48835
48836         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48837         (MINUS_ZERO_INIT): Likewise.
48838         (PLUS_INFTY_INIT): Likewise.
48839         (MINUS_INFTY_INIT): Likewise.
48840         (QNAN_VALUE_INIT): Likewise.
48841         (MAX_VALUE_INIT): Likewise.
48842         (MIN_VALUE_INIT): Likewise.
48843         (MIN_SUBNORM_VALUE_INIT): Likewise.
48844         (plus_zero): Initialize with PLUS_ZERO_INIT.
48845         (minus_zero): Initialize with MINUS_ZERO_INIT.
48846         (plus_infty): Initialize with PLUS_INFTY_INIT.
48847         (minus_infty): Initialize with MINUS_INFTY_INIT.
48848         (qnan_value): Initialize with QNAN_VALUE_INIT.
48849         (max_value): Initialize with MAX_VALUE_INIT.
48850         (min_value): Initialize with MIN_VALUE_INIT.
48851         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48852
48853         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48854         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48855         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48856         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48857
48858         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48859         (RUN_TEST_2_f): Likewise.
48860         (RUN_TEST_ff_f): Likewise.
48861         (RUN_TEST_fi_f): Likewise.
48862         (RUN_TEST_fl_f): Likewise.
48863         (RUN_TEST_fff_f): Likewise.
48864         (RUN_TEST_c_f): Likewise.
48865         (RUN_TEST_f_f1): Likewise.
48866         (RUN_TEST_fF_f1): Likewise.
48867         (RUN_TEST_fI_f1): Likewise.
48868         (RUN_TEST_ffI_f1): Likewise.
48869         (RUN_TEST_c_c): Likewise.
48870         (RUN_TEST_cc_c): Likewise.
48871         (RUN_TEST_f_i): Likewise.
48872         (RUN_TEST_f_i_tg): Likewise.
48873         (RUN_TEST_ff_i_tg): Likewise.
48874         (RUN_TEST_f_b): Likewise.
48875         (RUN_TEST_f_b_tg): Likewise.
48876         (RUN_TEST_f_l): Likewise.
48877         (RUN_TEST_f_L): Likewise.
48878         (RUN_TEST_sincos): Likewise.
48879         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48880         whether to show exceptions.  Do not include ");\n" in return
48881         value.
48882         (special_functions): Output call to RUN_TEST_sincos instead of
48883         check_float calls.  Update calls to new_test.
48884         (parse_args): Output call to single RUN_TEST_* macro instead of
48885         check_* calls and other assignments.  Update calls to new_test.
48886
48887         [BZ #2546]
48888         [BZ #2560]
48889         [BZ #5159]
48890         [BZ #15426]
48891         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48892         input to result for tgamma overflow.
48893         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48894         (gamma_coeff): New variable.
48895         (NCOEFF): New macro.
48896         (gamma_positive): New function.
48897         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48898         underflow here.  Use gamma_positive instead of exp (lgamma) for
48899         other arguments.
48900         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48901         (gamma_coeff): New variable.
48902         (NCOEFF): New macro.
48903         (gammaf_positive): New function.
48904         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48905         underflow here.  Use gamma_positive instead of exp (lgamma) for
48906         other arguments.
48907         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48908         (gamma_coeff): New variable.
48909         (NCOEFF): New macro.
48910         (gammal_positive): New function.
48911         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48912         underflow here.  Use gamma_positive instead of exp (lgamma) for
48913         other arguments.
48914         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48915         (gamma_coeff): New variable.
48916         (NCOEFF): New macro.
48917         (gammal_positive): New function.
48918         (__ieee754_gammal_r): Handle positive infinity, overflow and
48919         underflow here.  Handle NaN the same as positive infinity.  Remove
48920         check x < 0xffffffff for negative integers.  Use gamma_positive
48921         instead of exp (lgamma) for other arguments.
48922         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48923         (gamma_coeff): New variable.
48924         (NCOEFF): New macro.
48925         (gammal_positive): New function.
48926         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48927         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48928         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48929         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48930         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48931         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48932         * sysdeps/generic/math_private.h (__gamma_productf): New
48933         prototype.
48934         (__gamma_product): Likewise.
48935         (__gamma_productl): Likewise.
48936         * math/Makefile (libm-calls): Add gamma_product.
48937         * math/libm-test.inc (tgamma_test): Add more tests.
48938         * sysdeps/i386/fpu/libm-test-ulps: Update.
48939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48940
48941 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48942
48943         * benchtests/bench-skeleton.c (main): Preheat CPU.
48944
48945 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48946
48947         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48948
48949 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48950
48951         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48952         and _dl_skip_args_internal.
48953
48954 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48955
48956         * manual/message.texi (Message Translation): Talk about users.
48957         Message to key mapping impacts design.
48958
48959 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48960
48961         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48962
48963         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48964
48965         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48966         * sysdeps/wordsize-64/glob64.c: ... here.
48967
48968         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48969         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48970         New macros.
48971
48972         * debug/getlogin_r_chk.c: Moved to ...
48973         * login/getlogin_r_chk.c: ... here.
48974         * debug/Makefile (routines): Move getlogin_r_chk to ...
48975         * login/Makefile (routines): ... here.
48976         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48977         * login/Versions (libc: GLIBC_2.4): ... here.
48978
48979         * io/poll.c (__poll): Renamed from poll.
48980         Add libc_hidden_def.
48981         (poll): Define as weak alias.
48982
48983         * debug/ptsname_r_chk.c: Moved to ...
48984         * login/ptsname_r_chk.c: ... here.
48985         * debug/Makefile (routines): Move ptsname_r_chk to ...
48986         * login/Makefile (routines): ... here.
48987         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48988         * login/Versions (libc: GLIBC_2.4): ... here.
48989
48990         * posix/getlogin.c: Moved to ...
48991         * login/getlogin.c: ... here.
48992         * posix/getlogin_r.c: Moved to ...
48993         * login/getlogin_r.c: ... here.
48994         * posix/getlogin_r.c: Moved to ...
48995         * login/getlogin_r.c: ... here.
48996         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48997         * login/Makefile (routines): ... here.
48998         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48999         * login/Versions (libc: GLIBC_2.0): ... here.
49000
49001         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
49002         (setrlimit): Define as weak alias.
49003
49004         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
49005         Call __ names for open, ftruncate, and close.
49006         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
49007         (truncate): Define as weak alias.
49008
49009 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
49010
49011         * math/gen-libm-test.pl (parse_args): Initialize x before each
49012         test of frexp, modf and remquo.
49013
49014         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
49015         test signgam value.
49016
49017 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49018
49019         [BZ #15418]
49020         [BZ #15419]
49021         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
49022         internal tests.
49023         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
49024
49025 2013-05-06  Roland McGrath  <roland@hack.frob.com>
49026
49027         * elf/dl-writev.h: New file.
49028         * elf/dl-misc.c: Include it.
49029         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
49030         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
49031
49032 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
49033
49034         * math/libm-test.inc (noXFails): Remove variable.
49035         (noXPasses): Likewise.
49036         (BUILD_COMPLEX_INT): Remove macro.
49037         (print_screen): Remove xfail argument.
49038         (print_screen_max_error): Likewise.
49039         (update_stats): Likewise.
49040         (print_max_error): Likewise.  Update calls to other affected
49041         functions.
49042         (print_complex_max_error): Likewise.
49043         (test_single_exception): Update calls to print_screen.
49044         (test_single_errno): Likewise.
49045         (check_float_internal): Remove xfail argument.  Update calls to
49046         other affected functions.
49047         (check_float): Likewise.
49048         (check_complex): Likewise.
49049         (check_int): Likewise.
49050         (check_long): Likewise.
49051         (check_bool): Likewise.
49052         (check_longlong): Likewise.
49053         (main): Don't print noXFails and noXPasses.
49054         * math/gen-libm-test.pl (top level): Don't mention expected
49055         failure handling in comment.
49056         (new_test): Don't handle expected failures.
49057         (parse_args): Don't mention expected failure handling in comment.
49058         (generate_testfile): Don't handle expected failures.
49059         (parse_ulps): Likewise.
49060         (print_ulps_file): Likewise.
49061         (get_failure): Remove function.
49062         (output_test): Don't handle expected failures.
49063         * make/README.libm-test: Don't mention expected failure handling.
49064
49065         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
49066         (minus_zero): Likewise.
49067         (plus_infty): Likewise.
49068         (minus_infty): Likewise.
49069         (qnan_value): Likewise.
49070         (max_value): Likewise.
49071         (min_value): Likewise.
49072         (min_subnorm_value): Likewise.
49073         (initialize): Do not initialize those variables dynamically.
49074
49075 2013-05-03  Roland McGrath  <roland@hack.frob.com>
49076
49077         * io/open.c (__open_2): Moved to ...
49078         * io/open_2.c: ... this new file.
49079         * io/open64.c (__open64_2): Moved to ...
49080         * io/open64_2.c: ... this new file.
49081         * io/openat.c (__openat_2): Moved to ...
49082         * io/openat_2.c: ... this new file.
49083         * io/openat64.c (__openat64_2): Moved to ...
49084         * io/openat64_2.c: ... this new file.
49085         * io/Makefile (routines): Add them.
49086         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
49087         * sysdeps/unix/sysv/linux/open_2.c: File removed.
49088         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
49089         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
49090         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
49091         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
49092         (__openat64): Add hidden_ver.
49093         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
49094         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
49095
49096         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
49097         Separately conditionalize setting of GLRO(dl_sysinfo) so
49098         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
49099         as well, but the actual setting is only under [NEED_DL_SYSINFO].
49100
49101 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49102
49103         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
49104         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
49105         definition.
49106         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
49107         * sysdeps/unix/sysv/linux/powerpc/init-first.c
49108         (_libc_vdso_platform_setup): Add __vdso_time initialization.
49109         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
49110         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
49111
49112 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
49113
49114         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
49115         test signgam value.
49116
49117         * math/libm-test.inc (hypot_test): Do not use
49118         IGNORE_ZERO_INF_SIGN.
49119
49120 2013-05-03  Andreas Jaeger  <aj@suse.de>
49121
49122         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
49123         Linux 3.9.
49124         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
49125         (PF_MAX): Adjust for VSOCK change.
49126
49127 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49128
49129         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49130
49131 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
49132
49133         [BZ #15264]
49134         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
49135         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
49136         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
49137
49138 2013-05-02  David S. Miller  <davem@davemloft.net>
49139
49140         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49141
49142 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
49143
49144         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
49145
49146 2013-05-01  Roland McGrath  <roland@hack.frob.com>
49147
49148         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
49149
49150 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
49151
49152         [BZ #14952]
49153         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
49154         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49155         Use __attribute__ ((__gnu_inline__)).
49156         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49157         Don't use __attribute__ ((__gnu_inline__)).
49158
49159 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
49160
49161         [BZ #15423]
49162         * math/s_catan.c (__catan): Handle small real or imaginary part of
49163         input specially to avoid spurious underflow.
49164         * math/s_catanf.c (__catanf): Likewise.
49165         * math/s_catanh.c (__catanh): Likewise.
49166         * math/s_catanhf.c (__catanhf): Likewise.
49167         * math/s_catanhl.c (__catanhl): Likewise.
49168         * math/s_catanl.c (__catanl): Likewise.
49169         * math/libm-test.inc (catan_test): Add more tests.
49170         (catanh_test): Likewise.
49171         * sysdeps/i386/fpu/libm-test-ulps: Update.
49172         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49173
49174 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49175
49176         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49177
49178 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
49179
49180         [BZ #15416]
49181         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
49182         accurately for denominator in atan2.
49183         * math/s_catanf.c (__catanf): Likewise.
49184         * math/s_catanh.c (__catanh): Likewise.
49185         * math/s_catanhf.c (__catanhf): Likewise.
49186         * math/s_catanhl.c (__catanhl): Likewise.
49187         * math/s_catanl.c (__catanl): Likewise.
49188         * math/libm-test.inc (catan_test): Add more tests.
49189         (catanh_test): Likewise.
49190         * sysdeps/i386/fpu/libm-test-ulps: Update.
49191         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49192
49193 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
49194
49195         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
49196
49197         * benchtests/Makefile (bench): Remove slow benchmarks.
49198         * benchtests/atan-inputs: Add slow benchmark inputs.
49199         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
49200         (BENCH_FUNC): Accept variant offset.
49201         (VARIANT): Define.
49202         * benchtests/bench-skeleton.c (main): Run benchmark for each
49203         variant.
49204         * benchtests/cos-inputs: Add slow benchmark inputs.
49205         * benchtests/exp-inputs: Likewise.
49206         * benchtests/pow-inputs: Likewise.
49207         * benchtests/sin-inputs: Likewise.
49208         * benchtests/slowatan-inputs: Remove.
49209         * benchtests/slowatan.c: Remove.
49210         * benchtests/slowcos-inputs: Remove.
49211         * benchtests/slowcos.c: Remove.
49212         * benchtests/slowexp-inputs: Remove.
49213         * benchtests/slowexp.c: Remove.
49214         * benchtests/slowpow-inputs: Remove.
49215         * benchtests/slowpow.c: Remove.
49216         * benchtests/slowsin-inputs: Remove.
49217         * benchtests/slowsin.c: Remove.
49218         * benchtests/slowtan-inputs: Remove.
49219         * benchtests/slowtan.c: Remove.
49220         * benchtests/tan-inputs: Add slow benchmark inputs.
49221         * scripts/bench.pl: Parse comments and directives.
49222
49223         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
49224         in CPPFLAGS.
49225         ($(objpfx)bench-%.c): Remove *-ITER.
49226         * benchtests/bench-modf.c: Remove definition of ITER.
49227         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
49228         (main): Loop for DURATION seconds instead of fixed number of
49229         iterations.
49230         * scripts/bench.pl: Don't expect iterations in parameters.
49231
49232 2013-04-29  Roland McGrath  <roland@hack.frob.com>
49233
49234         * io/fchdir.c (__fchdir): Renamed from fchdir.
49235         (fchdir): Define as weak alias.
49236
49237 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49238
49239         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
49240         (ERRNO_EDOM): Likewise.
49241         (ERRNO_ERANGE): Likewise.
49242         (noErrnoTests): New variable.
49243         (init_max_error): Set errno to 0.
49244         (test_single_errno): New function.
49245         (test_errno): Likewise.
49246         (check_float_internal): Call test_errno.  Set errno to 0.
49247         (check_complex): Refer to errno tests in comment.
49248         (check_int): Call test_errno.  Set errno to 0.
49249         (check_long): Likewise.
49250         (check_bool): Likewise.
49251         (check_longlong): Likewise.
49252         (cos_test): Use ERRNO_* flags for errno tests instead of
49253         check_int.
49254         (expm1_test): Likewise.
49255         (fmod_test): Likewise.
49256         (ilogb_test): Likewise.
49257         (lgamma_test): Likewise.
49258         (pow_test): Likewise.
49259         (remainder_test): Likewise.
49260         (sin_test): Likewise.
49261         (tan_test): Likewise.
49262         (yn_test): Likewise.
49263         (initialize): Set errno to 0.
49264         (main): Print number of errno tests.
49265         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
49266
49267 2013-04-29  Andreas Jaeger  <aj@suse.de>
49268
49269         [BZ #15084]
49270         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
49271         and RES_USEVC.
49272
49273         [BZ #15085]
49274         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
49275         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
49276         unimplemented.
49277
49278         [BZ #15380]
49279         * stdlib/random.c (__initstate): Return NULL if
49280         __initstate fails.
49281
49282         [BZ #15086]
49283         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
49284         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
49285         RES_SNGLKUPREOP.
49286
49287 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49288
49289         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49290
49291 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49292
49293         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
49294         of individual tests.
49295         (casin_test): Likewise.
49296         (casinh_test): Likewise.
49297
49298 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
49299
49300         [BZ #15409]
49301         * math/s_catan.c (__catan): Handle arguments with large real or
49302         imaginary part separately without squaring.
49303         * math/s_catanf.c (__catanf): Likewise.
49304         * math/s_catanh.c (__catanh): Likewise.
49305         * math/s_catanhf.c (__catanhf): Likewise.
49306         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49307         and redefine.
49308         (__catanhl): Handle arguments with large real or imaginary part
49309         separately without squaring.
49310         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49311         and redefine.
49312         (__catanl): Handle arguments with large real or imaginary part
49313         separately without squaring.
49314         * math/libm-test.inc (catan_test): Add more tests.
49315         (catanh_test): Likewise.
49316         * sysdeps/i386/fpu/libm-test-ulps: Update.
49317         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49318
49319 2013-04-27  Andreas Jaeger  <aj@suse.de>
49320
49321         [BZ #15007]
49322         * stdlib/stdlib.h: Update guards for qecvt.
49323         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
49324         <stdlib.h>.
49325
49326 2013-04-27  Allan McRae  <allan@archlinux.org>
49327
49328         * sysdeps/i386/fpu/libm-test-ulps: Update.
49329
49330 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
49331
49332         [BZ #15406]
49333         * math/s_catan.c: Include <float.h>.
49334         (__catan): Ensure underflow exception occurs for underflowed
49335         result.
49336         * math/s_catanf.c: Include <float.h>.
49337         (__catanf): Ensure underflow exception occurs for underflowed
49338         result.
49339         * math/s_catanh.c: Include <float.h>.
49340         (__catanh): Ensure underflow exception occurs for underflowed
49341         result.
49342         * math/s_catanhf.c: Include <float.h>.
49343         (__catanhf): Ensure underflow exception occurs for underflowed
49344         result.
49345         * math/s_catanhl.c: Include <float.h>.
49346         (__catanhl): Ensure underflow exception occurs for underflowed
49347         result.
49348         * math/s_catanl.c: Include <float.h>.
49349         (__catanl): Ensure underflow exception occurs for underflowed
49350         result.
49351         * math/libm-test.inc (catan_test): Add more tests.
49352         (catanh_test): Likewise.
49353
49354         [BZ #15405]
49355         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
49356         underflowed result.
49357         * math/s_ccoshf.c (__ccoshf): Likewise.
49358         * math/s_ccoshl.c (__ccoshl): Likewise.
49359         * math/s_csin.c (__csin): Likewise.
49360         * math/s_csinf.c (__csinf): Likewise.
49361         * math/s_csinh.c (__csinh): Likewise.
49362         * math/s_csinhf.c (__csinhf): Likewise.
49363         * math/s_csinhl.c (__csinhl): Likewise.
49364         * math/s_csinl.c (__csinl): Likewise.
49365         * math/libm-test.inc (ccos_test): Add more tests.
49366         (ccosh_test): Likewise.
49367         (csin_test): Likewise.
49368         (csinh_test): Likewise.
49369
49370 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49371
49372         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
49373         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
49374         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
49375         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
49376         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
49377         powerpc/power5+/fpu folders.
49378         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
49379
49380
49381 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
49382
49383         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
49384
49385 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
49386
49387         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
49388         additions to variable.
49389         [$(config-machine) = x86_64] (modules-names): Likewise.
49390         ($(objpfx)tst-audit3): Remove dependency.
49391         ($(objpfx)tst-audit3.out): Likewise.
49392         ($(objpfx)tst-audit4): Likewise.
49393         ($(objpfx)tst-audit4.out): Likewise.
49394         ($(objpfx)tst-audit5): Likewise.
49395         ($(objpfx)tst-audit5.out): Likewise.
49396         ($(objpfx)tst-audit6): Likewise.
49397         ($(objpfx)tst-audit6.out): Likewise.
49398         ($(objpfx)tst-audit7): Likewise.
49399         ($(objpfx)tst-audit7.out): Likewise.
49400         (tst-audit3-ENV): Remove variable.
49401         (tst-audit4-ENV): Likewise.
49402         (tst-audit5-ENV): Likewise.
49403         (tst-audit6-ENV): Likewise.
49404         (tst-audit7-ENV): Likewise.
49405         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
49406         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
49407         addition to variable.
49408         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
49409         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
49410         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
49411         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
49412         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
49413         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
49414         tst-audit3, tst-audit4 and tst-audit5.
49415         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
49416         tst-audit6 and tst-audit7.
49417         [$(subdir) = elf] (modules-names): Add audit modules for those
49418         tests.
49419         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
49420         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
49421         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
49422         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
49423         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
49424         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
49425         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
49426         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
49427         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
49428         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
49429         [$(subdir) = elf] (tst-audit3-ENV): New variable.
49430         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
49431         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
49432         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
49433         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
49434         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
49435         Likewise.
49436         [$(subdir) = elf && $(config-cflags-avx) = yes]
49437         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
49438         [$(subdir) = elf && $(config-cflags-avx) = yes]
49439         (CFLAGS-tst-auditmod4a.c): Likewise.
49440         [$(subdir) = elf && $(config-cflags-avx) = yes]
49441         (CFLAGS-tst-auditmod4b.c): Likewise.
49442         [$(subdir) = elf && $(config-cflags-avx) = yes]
49443         (CFLAGS-tst-auditmod6b.c): Likewise.
49444         [$(subdir) = elf && $(config-cflags-avx) = yes]
49445         (CFLAGS-tst-auditmod6c.c): Likewise.
49446         [$(subdir) = elf && $(config-cflags-avx) = yes]
49447         (CFLAGS-tst-auditmod7b.c): Likewise.
49448         * elf/tst-audit3.c: Move to ...
49449         * sysdeps/x86_64/tst-audit3.c: ... here.
49450         * elf/tst-audit4.c: Move to ...
49451         * sysdeps/x86_64/tst-audit4.c: ... here.
49452         * elf/tst-audit5.c: Move to ...
49453         * sysdeps/x86_64/tst-audit5.c: ... here.
49454         * elf/tst-audit6.c: Move to ...
49455         * sysdeps/x86_64/tst-audit6.c: ... here.
49456         * elf/tst-audit7.c: Move to ...
49457         * sysdeps/x86_64/tst-audit7.c: ... here.
49458         * elf/tst-auditmod3a.c: Move to ...
49459         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
49460         * elf/tst-auditmod3b.c: Move to ...
49461         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
49462         * elf/tst-auditmod4a.c: Move to ...
49463         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
49464         * elf/tst-auditmod4b.c: Move to ...
49465         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
49466         * elf/tst-auditmod5a.c: Move to ...
49467         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
49468         * elf/tst-auditmod5b.c: Move to ...
49469         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
49470         * elf/tst-auditmod6a.c: Move to ...
49471         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
49472         * elf/tst-auditmod6b.c: Move to ...
49473         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
49474         * elf/tst-auditmod6c.c: Move to ...
49475         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
49476         * elf/tst-auditmod7a.c: Move to ...
49477         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
49478         * elf/tst-auditmod7b.c: Move to ...
49479         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
49480
49481 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
49482
49483         [BZ #15366]
49484         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
49485         define unconditionally.
49486         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
49487         define unconditionally.
49488         (INT8_C, INT16_C, etc.): Likewise.
49489
49490 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
49491
49492         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
49493         __ehdr_start with hidden visibility.
49494
49495         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
49496
49497 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
49498
49499         * math/libm-test.inc (cos_test): Use accurate hex constants.
49500         (sincost_test): Likewise.
49501
49502 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
49503
49504         * math/libm-test.inc (catan_test): Add more tests.
49505         (catanh_test): Likewise.
49506
49507         * math/s_catanf.c (__catanf): Use suffixed floating-point
49508         constants.
49509         * math/s_catanhf.c (__catanhf): Likewise.
49510         * math/s_catanhl.c (__catanhl): Likewise.
49511         * math/s_catanl.c (__catanl): Likewise.
49512
49513         [BZ #15394]
49514         * math/s_catan.c (__catan): Calculate imaginary part of result
49515         with log1p not log unless computing log of number close to 0.
49516         * math/s_catanf.c (__catanf): Likewise.
49517         * math/s_catanl.c (__catanl): Likewise.
49518         * math/s_catanh.c (__catanh): Calculate real part of result with
49519         log1p not log unless computing log of number close to 0.
49520         * math/s_catanhf.c (__catanhf): Likewise.
49521         * math/s_catanhl.c (__catanhl): Likewise.
49522         * math/libm-test.inc (catan_test): Add more tests.
49523         (catanh_test): Likewise.
49524         * sysdeps/i386/fpu/libm-test-ulps: Update.
49525         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49526
49527 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
49528
49529         * benchtests/Makefile: Mention files in which fast and slow
49530         paths of math functions are implemented.
49531
49532 2013-04-23  Roland McGrath  <roland@hack.frob.com>
49533
49534         * sysdeps/posix/timespec_get.c: New file.
49535
49536 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49537
49538         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
49539         POWER.
49540         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
49541         for POWER.
49542         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
49543         powerpc/power5/fpu folders.
49544         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
49545         * benchtests/Makefile: Add modf testcase.
49546         * benchtests/bench-modf.c: New file: Benchmark test for mo
49547
49548 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49549
49550         [BZ #14888]
49551         * time/Makefile (tests): Add tst-strptime-whitespace.
49552         * time/strptime_l.c (get_number): Use ISSPACE.
49553         (__strptime_internal): Likewise.
49554         * time/tst-strptime-whitespace.c: New test case.
49555
49556 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
49557
49558         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
49559         member.
49560         (_nss_files_init): Set it here.
49561
49562 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
49563
49564         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
49565         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
49566         unsigned.
49567
49568 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
49569
49570         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
49571
49572 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49573
49574         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
49575         size just once.
49576
49577 2013-04-21  David S. Miller  <davem@davemloft.net>
49578
49579         * po/ru.po: Update Russion translation from translation project.
49580
49581 2013-04-17  Adam Conrad  <adconrad@0c3.net>
49582
49583         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
49584         and setfsgid.
49585
49586 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
49587
49588         * configure.in: Remove i386 configure warning. Remove i386 case.
49589         * configure: Regenerate.
49590         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
49591         Add example to error message.
49592         * sysdeps/i386/configure: Regenerate.
49593
49594 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49595
49596         * benchtests/Makefile (bench): Add cos, tan, slowcos and
49597         slowtan.
49598         * benchtests/cos-inputs: New file.
49599         * benchtests/slowcos-inputs: New file.
49600         * benchtests/slowcos.c: New file.
49601         * benchtests/slowtan-inputs: New file.
49602         * benchtests/slowtan.c: New file.
49603         * benchtests/tan-inputs: New file.
49604
49605 2013-04-16  Roland McGrath  <roland@hack.frob.com>
49606
49607         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
49608         considered kosher.
49609
49610 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
49611
49612         * benchtests/Makefile: Include cppflags-iterator.mk to add
49613         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
49614
49615         * Makefile.in (bench-clean): New target.
49616         * benchtests/Makefile (bench-clean): Likewise.
49617
49618 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
49619
49620         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
49621
49622 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49623
49624         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49625
49626 2013-04-15  Andreas Schwab  <schwab@suse.de>
49627
49628         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49629         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49630         * nscd/pwdcache.c (cache_addpw): Likewise.
49631         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49632         more than recsize.
49633
49634 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49635
49636         * benchtests/Makefile (bench): Write all output to
49637         bench-out.tmp together.
49638
49639 2013-04-15  Andreas Schwab  <schwab@suse.de>
49640
49641         * nscd/nscd.c (main): Don't fork again after closing files.
49642
49643 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49644
49645         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49646
49647         * benchtests/Rules (bench-deps): Collect dependencies into a
49648         single variable.  Add Makefile to dependencies.
49649         ($(objpfx)bench-%.c): Depend on bench-deps.
49650
49651 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49652             Xavier Roche  <roche+kml2@exalead.com>
49653
49654         [BZ #15361]
49655         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49656         just that it's a file descriptor.
49657         * manual/llio.texi (Synchronizing AIO Operations): Update description
49658         for EBADF error from aio_fsync.
49659
49660 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49661
49662         * Rules (bench): Move target definition...
49663         * benchtests/Makefile: ... here.
49664
49665 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49666
49667         * math/libm-test.inc (cos_test): Fix PI/2 test.
49668         (sincos_test): Likewise.
49669         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49670         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49671
49672 2013-04-11  Andreas Schwab  <schwab@suse.de>
49673
49674         [BZ #13988]
49675         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49676         accept exponent character only when digits were seen.
49677         * stdio-common/Makefile (tests): Add bug26.
49678         * stdio-common/bug26.c: New file.
49679
49680         [BZ #14293]
49681         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49682         non-freeable.
49683
49684 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49685
49686         * Makeconfig (rtld-prefix): Define built linker prefix.
49687         * Rules (run-bench): Use it.
49688         * math/Makefile (run-regen-ulps): Likewise.
49689
49690         * Rules (bench): Remove eval.
49691
49692 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49693             Roland McGrath  <roland@hack.frob.com>
49694             Ondrej Bilka  <neleai@seznam.cz>
49695
49696         [BZ #15346]
49697         * time/getdate.c: Include ctype.h and alloca.h.
49698         (__getdate_r): Trim leading and trailing spaces of input.
49699         * time/tst-getdate.c (tests): Add tests with leading and
49700         trailing spaces.
49701
49702 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49703
49704         [BZ #14280]
49705         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49706         when computing value.
49707
49708 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49709
49710         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49711         Use testrun.sh to run libm tests.
49712
49713         [BZ #15309]
49714         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49715
49716 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49717
49718         [BZ #15264]
49719         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49720
49721 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49722
49723         * Makefile.in (regen-ulps): New target.
49724         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49725         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49726         [ifneq (no,$(PERL)] (regen-ulps): New target.
49727         [ifeq (no,$(PERL)] (regen-ulps): New target.
49728         * math/libm-test.inc (ulps_file_name): Define.
49729         (output_dir): New variable.
49730         (options): Add "output-dir" option.
49731         (parse_opt): Handle 'o' case.
49732         (main): If output_dir is non-NULL use it as a prefix
49733         otherwise use "".
49734         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49735
49736 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49737
49738         [BZ #10060, #10062]
49739         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49740         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49741         fail configure if __sync_val_compare_and_swap is not inlined.
49742         * sysdeps/i386/configure: Regenerate.
49743         * configure.in: Build for i686 when configured for i386.
49744         * configure: Regenerate.
49745         * README: Remove i386 reference.
49746
49747 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49748
49749         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49750         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49751
49752 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49753
49754         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49755         (lmsnanval): New variables.
49756         (F): Add conversion tests.
49757         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49758         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49759
49760         * stdio-common/tstdiomisc.c (F): Properly collect individual
49761         tests' results.
49762
49763         [BZ #14686, #15336]
49764         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49765         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49766         Instead, use input NaN values or generate a qNaN by arithmetic
49767         operation.  Also fix bugs to comply with the standard.
49768         * math/libm-test.inc (remainder_test): Add more tests.
49769
49770         [BZ #15335, #15342]
49771         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49772         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49773         input NaN values or generate a qNaN by arithmetic operation.
49774
49775         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49776         unreachable code.
49777
49778         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49779         definitions.
49780
49781 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49782
49783         [BZ #14478]
49784         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49785         underflowed result.
49786         * math/s_cexpf.c (__cexpf): Likewise.
49787         * math/s_cexpl.c (__cexpl): Likewise.
49788         * math/libm-test.inc (cexp_test): Add more tests.
49789
49790 2013-04-03  Andreas Schwab  <schwab@suse.de>
49791
49792         [BZ #15330]
49793         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49794         order arrays from heap if bigger than alloca cutoff.
49795
49796 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49797
49798         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49799         (SNAN_TESTS_double): Refer to GCC PR56831.
49800         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49801         GCC PR56828.
49802
49803 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49804
49805         * Rules (bench): Move bench.out after the run is complete.
49806
49807         * Rules (bench): Echo currently running benchmark.
49808
49809         * benchtests/Makefile (bench): Add atan and slowatan.
49810         * benchtests/atan-inputs: New file.
49811         * benchtests/slowatan-inputs: New file.
49812         * benchtests/slowatan.c: New file.
49813
49814         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49815         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49816         its value.
49817
49818         [BZ #15305]
49819         * sysdeps/unix/sysv/linux/kernel-features.h
49820         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49821         __ASSUME_XFS_RESTRICTED_CHOWN.
49822         * sysdeps/unix/sysv/linux/pathconf.c
49823         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49824         Save and restore errno.
49825
49826 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49827
49828         [BZ #15327]
49829         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49830         arguments using __kernel_casinh.
49831         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49832         arguments using __kernel_casinhf.
49833         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49834         arguments using __kernel_casinhl.
49835         * math/libm-test.inc (cacosh_test): Add more tests.
49836         * sysdeps/i386/fpu/libm-test-ulps: Update.
49837         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49838
49839 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49840
49841         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49842         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49843
49844         * bench/Makefile (bench): Add sin and slowsin.
49845         * benchtests/sin-inputs: New file.
49846         * benchtests/slowsin-inputs: New file.
49847         * benchtests/slowsin.c: New file.
49848
49849         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49850         (bench): Add slowexp and slowpow.
49851         (exp-ITER): Increase iterations.
49852         (pow-ITER): Likewise.
49853         * benchtests/exp-inputs: Change input.
49854         * benchtests/pow-inputs: Likewise.
49855         * benchtests/slowexp-inputs: New file.
49856         * benchtests/slowexp.c: New file.
49857         * benchtests/slowpow-inputs: New file.
49858         * benchtests/slowpow.c: New file.
49859
49860 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49861
49862         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49863         instructions.
49864         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49865         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49866         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49867         * benchtests/Makefile: Add rint benchtest.
49868         * benchtests/rint-inputs: Input for rint benchtest.
49869
49870 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49871
49872         * Versions.def (libm): Add GLIBC_2.18.
49873         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49874         hidden libm prototypes.
49875         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49876         * math/Makefile (libm-calls): Add s_issignaling.
49877         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49878         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49879         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49880         declaration.
49881         * math/math.h [__USE_GNU] (issignaling): New macro.
49882         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49883         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49884         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49885         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49886         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49887         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49888         * manual/arith.texi (issignaling): New section.
49889         * manual/libm-err-tab.pl (@all_functions): Update comment.
49890         * math/gen-libm-test.pl (parse_args): Apply special handling for
49891         issignaling.
49892         * math/libm-test.inc (print_float, issignaling_test): New
49893         functions.
49894         (check_float_internal): Add issignaling checks.
49895         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49896         default definition.
49897         * sysdeps/powerpc/math-tests.h: New file.
49898         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49899         tests.
49900         * math/test-snan.c (TEST_FUNC): Likewise.
49901
49902 2013-03-30  David S. Miller  <davem@davemloft.net>
49903
49904         * po/de.po: Update from translation team.
49905
49906 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49907
49908         [BZ #10357]
49909         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49910         imaginary part less than 1.0 and real part less than 0.5
49911         specially.
49912         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49913         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49914         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49915         (cacos_test): Add more tests.
49916         (casin_test): Likewise.
49917         (casinh_test): Likewise.
49918         * sysdeps/i386/fpu/libm-test-ulps: Update.
49919         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49920
49921 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49922
49923         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49924         ONE with its value.
49925
49926         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49927         (__pow_mp): Replace ONE and MONE with their values.
49928         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49929         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49930         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49931         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49932         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49933         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49934
49935         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49936
49937         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49938         (__pow_mp): Replace ZERO and MZERO with their values.
49939         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49940         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49941         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49942         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49943         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49944         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49945         (__sqr): Likewise.
49946
49947         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49948
49949         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49950
49951 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49952
49953         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49954         Declare with __attribute__ ((weak)).
49955         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49956         Call __call_tls_dtors only if it's not NULL.
49957
49958 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49959
49960         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49961         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49962         magic __ehdr_start linker symbol if it's defined.
49963         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49964         them up here if it was already done.
49965
49966         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49967         (_dl_aux_init): Use const in cast when setting it.
49968         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49969         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49970         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49971
49972         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49973         Declare them here.
49974         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49975         * csu/libc-tls.c: Nor here.
49976         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49977
49978         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49979         (__libc_message): Never call vsyslog.
49980
49981 2013-03-28  Alan Modra  <amodra@gmail.com>
49982
49983         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49984         Define as empty.
49985         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49986         Likewise.
49987
49988 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49989
49990         [BZ #15214]
49991         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49992         underflow.
49993         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49994
49995 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49996
49997         [BZ #15304]
49998         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49999         Don't add gid passed as argument.
50000
50001         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
50002
50003 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
50004
50005         [BZ #15307]
50006         * math/k_casinh.c (__kernel_casinh): Handle arguments with
50007         imaginary part between 1.0 and 1.5 and real part less than 0.5
50008         specially.
50009         * math/k_casinhf.c (__kernel_casinhf): Likewise.
50010         * math/k_casinhl.c (__kernel_casinhl): Likewise.
50011         * math/libm-test.inc (cacos_test): Add more tests.
50012         (casin_test): Likewise.
50013         (casinh_test): Likewise.
50014         * sysdeps/i386/fpu/libm-test-ulps: Update.
50015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50016
50017 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50018
50019         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
50020         constants.
50021         (norm): Likewise.
50022         (denorm): Likewise.
50023         (__dbl_mp): Likewise.
50024         (add_magnitudes): Likewise.
50025         (sub_magnitudes): Likewise.
50026         (__add): Likewise.
50027         (__sub): Likewise.
50028         (__mul): Likewise.
50029         (__sqr): Likewise.
50030         (__inv): Likewise.
50031         (__dvd): Likewise.
50032
50033         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
50034         commented code.
50035         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
50036         (__dubcos): Likewise.
50037         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
50038         (__ieee754_acos): Likewise.
50039         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
50040         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
50041         (__exp1): Likewise.
50042         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
50043         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
50044         (log1): Likewise.
50045         (my_log2): Likewise.
50046         (checkint): Likewise.
50047         * sysdeps/ieee754/dbl-64/e_remainder.c
50048         (__ieee754_remainder): Likewise.
50049         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
50050         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
50051         (bsloww): Likewise.
50052         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
50053
50054         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50055         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
50056         MANTISSA_STORE_T to store computations on mantissa.  Use
50057         macros for rounding and division.
50058         (denorm): Likewise.
50059         (__dbl_mp): Likewise.
50060         (add_magnitudes): Likewise.
50061         (sub_magnitudes): Likewise.
50062         (__mul): Likewise.
50063         (__sqr): Likewise.
50064         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50065         powers of two in terms of TWOPOW macro.
50066         (mp_no): Make type of mantissa as MANTISSA_T.
50067         [!RADIXI]: Define RADIXI.
50068         [!TWO52]: Define TWO52.
50069         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50070
50071 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50072
50073         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
50074         llroundl symbol when building for PPC32.
50075
50076 2013-03-24  Mark H Weaver  <mhw@netris.org>
50077
50078         * manual/arith.texi (Normalization Functions): Fix prototypes for
50079         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
50080
50081 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50082
50083         [BZ #13889]
50084         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
50085         high value to check if expl overflow.
50086         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
50087         to check for underflow and overflow.
50088         * math/libm-test.inc: Add exp test.
50089
50090 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
50091
50092         [BZ #11120]
50093         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
50094         with NOT_IN_libc.
50095
50096 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50097
50098         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
50099         symbol.
50100
50101 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
50102
50103         * math/gen-libm-test.pl (parse_args, special_functions): Properly
50104         wrap blocks consisting of several statements.
50105
50106         * sysdeps/generic/math-tests.h: New file.
50107         * sysdeps/i386/fpu/math-tests.h: Likewise.
50108         * math/test-snan.c: Include it.
50109         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
50110
50111 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50112
50113         [BZ #15285]
50114         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
50115         (__ieee754_j0l): Do not improve calculations using cos of twice
50116         input for inputs above LDBL_MAX / 2.0L.
50117         (__ieee754_y0l): Likewise.
50118         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
50119         (__ieee754_j1l): Do not improve calculations using cos of twice
50120         input for inputs above LDBL_MAX / 2.0L.
50121         (__ieee754_y1l): Likewise.
50122         * math/libm-test.inc (j0_test): Add another test.
50123         (j1_test): Likewise.
50124         (y0_test): Likewise.
50125         (y1_test): Likewise.
50126         * sysdeps/i386/fpu/libm-test-ulps: Update.
50127
50128 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50129
50130         * Rules ($(objpfx)bench-%.c): Include code from a C source
50131         file.
50132
50133 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50134
50135         [BZ #15287]
50136         * math/k_casinh.c (__kernel_casinh): Handle arguments with
50137         imaginary part 1.0 and real part less than 0.5 specially.
50138         * math/k_casinhf.c (__kernel_casinhf): Likewise.
50139         * math/k_casinhl.c (__kernel_casinhl): Likewise.
50140         * math/libm-test.inc (cacos_test): Add more tests.
50141         (casin_test): Likewise.
50142         (casinh_test): Likewise.
50143         * sysdeps/i386/fpu/libm-test-ulps: Update.
50144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50145
50146 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50147
50148         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
50149         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
50150
50151 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
50152
50153         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
50154         * config.make.in (config-cflags-sse4): Remove variable.
50155         (config-cflags-avx): Likewise.
50156         (config-cflags-sse2avx): Likewise.
50157         (config-cflags-novzeroupper): Likewise.
50158         (config-asflags-i686): Likewise.
50159         (have-mfma4): Likewise.
50160         (have-as-vis3): Likewise.
50161         (MIG): Likewise.
50162         * configure.in (MIG): Do not AC_SUBST.
50163         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
50164         (libc_cv_cc_sse4): Do not AC_SUBST.
50165         (libc_cv_cc_avx): Likewise.
50166         (libc_cv_cc_sse2avx): Likewise.
50167         (libc_cv_cc_novzeroupper): Likewise.
50168         (libc_cv_cc_fma4): Likewise.
50169         (libc_cv_as_i686): Likewise.
50170         (libc_cv_sparc_as_vis3): Likewise.
50171         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
50172         LIBC_CONFIG_VAR.
50173         (config-asflags-i686): Likewise.
50174         (config-cflags-avx): Likewise.
50175         (config-cflags-sse2avx): Likewise.
50176         (have-mfma4): Likewise.
50177         (config-cflags-novzeroupper): Likewise.
50178         * sysdeps/mach/configure.in (MIG): Likewise.
50179         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
50180         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
50181         LIBC_CONFIG_VAR.
50182         (config-cflags-avx): Likewise.
50183         (config-cflags-sse2avx): Likewise.
50184         (have-mfma4): Likewise.
50185         (config-cflags-novzeroupper): Likewise.
50186         * configure: Regenerated.
50187         * sysdeps/i386/configure: Likewise.
50188         * sysdeps/mach/configure: Likewise.
50189         * sysdeps/sparc/configure: Likewise.
50190         * sysdeps/x86_64/configure: Likewise.
50191
50192 2013-03-20  Roland McGrath  <roland@hack.frob.com>
50193
50194         [BZ #14812]
50195         * locale/programs/localedef.c (options): Put N_ translation marker
50196         on argument names, not just descriptions.
50197
50198 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
50199
50200         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
50201
50202 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
50203
50204         [BZ #14176]
50205         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
50206
50207 2013-03-19  Roland McGrath  <roland@hack.frob.com>
50208
50209         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
50210         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
50211         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
50212         [!BEFORE_ABORT] (before_abort): New function.
50213         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
50214         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
50215         (writev_for_fatal): New function.
50216         (WRITEV_FOR_FATAL): New macro; call that.
50217         (backtrace_and_maps): New function.
50218         (BEFORE_ABORT): New macro; call that.
50219         (struct str_list): Type removed.
50220         (__libc_message, __libc_fatal): Functions removed.
50221         Include <sysdeps/posix/libc_fatal.c> instead.
50222
50223 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
50224
50225         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
50226         constants.
50227         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
50228         double constants.
50229
50230 2013-03-19  Andreas Schwab  <schwab@suse.de>
50231
50232         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
50233         * sysdeps/gnu/configure: Regenerate.
50234
50235         * configure.in: Substitute libc_cv_rtlddir.
50236         * configure: Regenerate.
50237         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
50238         * Makeconfig (rtlddir, inst_rtlddir): New variables.
50239         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
50240         * elf/Makefile (install-others, CFLAGS-interp.c)
50241         (ldso_install, common-ldd-rewrite): Likewise.
50242         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
50243         $(inst_slibdir)/$(rtld-installed-name).
50244         * scripts/rellns-sh: Add -p option.
50245         * Makerules (make-shlib-link): Use rellns-sh to get relative name
50246         for source.
50247
50248 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50249
50250         * manual/nptl.texi: Renamed to ...
50251         * manual/threads.texi: ... this.
50252         * manual/Makefile (chapters): Update.
50253
50254 2013-03-18  Roland McGrath  <roland@hack.frob.com>
50255
50256         [BZ #14812]
50257         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
50258         on argument names, not just descriptions.
50259         * malloc/memusagestat.c (options): Likewise.
50260         * nss/getent.c (options): Likewise.
50261
50262 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
50263
50264         [BZ #14812]
50265         * iconv/iconv_prog.c (options): Put N_ translation marker
50266         on argument names, not just descriptions.
50267         * iconv/iconvconfig.c (options): Likewise.
50268
50269 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
50270
50271         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
50272         implementation which is faster on all x86_64 architectures.
50273         Tested on AMD, Intel Nehalem, SNB, IVB.
50274         * sysdeps/x86_64/strnlen.S: Likewise.
50275
50276         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50277         Remove all multiarch strlen and strnlen versions.
50278         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
50279         Remove strlen and strnlen related parts.
50280
50281         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
50282         Inline strlen part.
50283         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
50284
50285         * sysdeps/x86_64/multiarch/strlen.S: Remove.
50286         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
50287         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
50288         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
50289         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
50290         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
50291
50292 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
50293
50294         * manual/memory.texi (Malloc Tunable Parameters):
50295         Sort parameters alphabetically. Add comments for missing entries.
50296
50297 2013-03-17  David S. Miller  <davem@davemloft.net>
50298
50299         * sysdeps/sparc/fpu/libm-test-ulps: Update.
50300
50301 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
50302
50303         [BZ #15283]
50304         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
50305         for arguments at most half maximum finite value.
50306         * math/libm-test.inc (j0_test): Add more tests.
50307         (j1_test): Likewise.
50308         (y0_test): Likewise.
50309         (y1_test): Likewise.
50310         * sysdeps/i386/fpu/libm-test-ulps: Update.
50311         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50312
50313         [BZ #14155]
50314         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
50315         1 / x and functions P and Q for arguments above 0x1p256L.
50316         (__ieee754_y0l): Likewise.
50317         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
50318         (__ieee754_y1l): Likewise.
50319         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
50320         (j1_test): Likewise.
50321         (y0_test): Likewise.
50322         (y1_test): Likewise.
50323
50324 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
50325
50326         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
50327         variable.
50328
50329 2013-03-15  Roland McGrath  <roland@hack.frob.com>
50330
50331         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
50332         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
50333         zero since it's initialized to EXEC_PAGESIZE.
50334
50335         * sysdeps/unix/sysv/linux/ldsodefs.h
50336         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
50337         * sysdeps/generic/ldsodefs.h: ... here.
50338
50339 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
50340
50341         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
50342
50343         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
50344         math/test-snan.c.
50345         * math/test-snan.c: Renamed from
50346         sysdeps/powerpc/fpu/test-powerpc-snan.c.
50347         * math/Makefile (tests): Add test-snan.
50348         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
50349         test-powerpc-snan.
50350
50351         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
50352         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
50353         functions.
50354         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
50355         __builtin_nan family of functions.
50356         * math/libm-test.inc (initialize): Initialize qnan_value with
50357         __builtin_nan family of functions.
50358         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
50359         Remove variables.
50360         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
50361         Remove functions.
50362         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
50363         storage class.  Initialize qNaN_var and sNaN_var with
50364         __builtin_nan and __builtin_nans families of functions,
50365         respectively.
50366
50367         * math/libm-test.inc (acosh_test): Also test with qNaN input.
50368         (sqrt_test): Remove duplicate test with qNaN input.
50369         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
50370         (round_test, signbit_test, significand_test): Note missing +/-Inf
50371         as well as qNaN tests.
50372
50373         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
50374         qNaN_var.  Fix a few strings, too.
50375         * math/libm-test.inc (nan_value): Rename to qnan_value.
50376         * math/gen-libm-test.pl (%beautify): Adjust to that.
50377         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
50378         * math/test-misc.c (main): Likewise.
50379         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
50380         to __qnan_bytes, and __qnan_union, respectively.
50381         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
50382         Likewise.
50383         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
50384         and lqnanval, respectively.
50385         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
50386         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
50387         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
50388         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
50389
50390         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
50391         * math/test-misc.c (main) [__x86_64__]: Enable test for long
50392         doubles.
50393
50394         * math/test-misc.c (main): Fix copy'n'pastos.
50395         * misc/tst-efgcvt.c (special): Likewise.
50396
50397         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
50398         Remove declarations.
50399
50400 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50401
50402         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
50403         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
50404         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
50405         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
50406
50407 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50408
50409         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
50410         macro to return vdso values correctly in IFUNC implementations.
50411         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
50412         Optimization by using IFUNC.
50413
50414 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50415             Richard Henderson  <rth@redhat.com>
50416             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
50417
50418         * Makefile.in (bench): New target.
50419         * NEWS: Mention the benchmark framework.
50420         * Rules (bench): Likewise.
50421         (binaries-bench): Generate binaries for functions to
50422         benchmark.
50423         * benchtests/Makefile: New makefile for benchmark tests.
50424         * benchtests/bench-skeleton.c: New skeleton file for benchmark
50425         programs.
50426         * benchtests/exp-inputs: New input file for EXP function.
50427         * benchtests/pow-inputs: New input file for POW function.
50428         * scripts/bench.pl: New script to generate source files for
50429         benchmark programs.
50430
50431 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50432
50433         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50434         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
50435         computations on mantissa.  Use macros for rounding and
50436         division.
50437         (denorm): Likewise.
50438         (__dbl_mp): Likewise.
50439         (add_magnitudes): Likewise.
50440         (sub_magnitudes): Likewise.
50441         (__mul): Likewise.
50442         (__sqr): Likewise.
50443         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50444         powers of two in terms of TWOPOW macro.
50445         (mp_no): Make type of mantissa as MANTISSA_T.
50446         [!RADIXI]: Define RADIXI.
50447         [!TWO52]: Define TWO52.
50448         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50449
50450         * manual/nptl.texi (cindex): Modify threads to pthreads.
50451
50452 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
50453
50454         * sysdeps/x86_64/preconfigure: Regenerated.
50455
50456 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
50457
50458         [BZ #14155]
50459         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
50460         0x1p28 and above.
50461         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
50462         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
50463         0x1p28 and above.
50464         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
50465         * math/libm-test.inc (j0_test): Do not allow one spurious
50466         underflow exception.
50467         (y1_test): Likewise.
50468
50469 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
50470
50471         * manual/Makefile (chapters): Add nptl.
50472         * manual/debug.texi (Debugging Support): Add link to Threads
50473         chapter.
50474         * manual/nptl.texi: New file.
50475
50476         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
50477
50478 2013-03-14  Petr Baudis  <pasky@ucw.cz>
50479
50480         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
50481         for non-NULL pointer before the memory validity test. Pointed
50482         out by Holger Brunck <holger.brunck@keymile.com>.
50483
50484 2013-03-13  Andreas Schwab  <schwab@suse.de>
50485
50486         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
50487         instead of .os.
50488
50489 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
50490
50491         * timezone/zic.c: Update from tzcode 2013b.
50492
50493 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
50494
50495         * manual/install.texi (Configuring and compiling):
50496         Mention i686 and i586.
50497         * INSTALL: Regenerate.
50498
50499 2013-03-12  Roland McGrath  <roland@hack.frob.com>
50500
50501         * sysdeps/init_array/elf-init.c: New file.
50502         * csu/elf-init.c
50503         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
50504         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
50505
50506         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
50507         __gmon_start__ as global, but as static with a .preinit_array pointer.
50508         * sysdeps/init_array/gmon-start.c: New file.  Use that.
50509         * sysdeps/init_array/crti.S: New file, empty except for comments.
50510         * sysdeps/init_array/crtn.S: Likewise.
50511
50512 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
50513
50514         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
50515         definining bcopy.
50516         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50517         Remove Prefer_SSE_for_memop.
50518         * sysdeps/x86_64/multiarch/init-arch.h: Remove
50519         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
50520         HAS_PREFER_SSE_FOR_MEMOP.
50521         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
50522         memset-x86-64.
50523         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50524         Remove bzero, memset ifunc support.
50525         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
50526         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
50527         * sysdeps/x86_64/multiarch/memset.S: Likewise.
50528         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
50529
50530 2013-03-11  Andreas Schwab  <schwab@suse.de>
50531
50532         [BZ #15234]
50533         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
50534         by SHLIB_COMPAT.
50535         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
50536         (GLIBC_2.16): Remove pthread_atfork.
50537
50538 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
50539
50540         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
50541         (ptestcases.h): Likewise.
50542
50543 2013-03-08  Roland McGrath  <roland@hack.frob.com>
50544
50545         * Makeconfig ($(common-objpfx)config.status): Depend on
50546         sysdeps/*/preconfigure{,.in} too.
50547
50548 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
50549
50550         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
50551         (__free_hook): Use void * instead of __malloc_ptr_t.
50552         (__malloc_hook): Likewise.
50553         (__realloc_hook): Likewise.
50554         (__memalign_hook): Likewise.
50555         (__after_morecore_hook): Likewise.
50556         * malloc/arena.c (save_malloc_hook): Likewise.
50557         (save_free_hook): Likewise.
50558         * malloc/hooks.c (malloc_hook_ini): Likewise.
50559         (realloc_hook_ini): Likewise.
50560         (memalign_hook_ini): Likewise.
50561         * malloc/malloc.c (malloc_hook_ini): Likewise.
50562         (realloc_hook_ini): Likewise.
50563         (memalign_hook_ini): Likewise.
50564         (__free_hook): Likewise.
50565         (__malloc_hook): Likewise.
50566         (__realloc_hook): Likewise.
50567         (__memalign_hook): Likewise.
50568         (__libc_malloc): Likewise.
50569         (__libc_free): Likewise.
50570         (__libc_realloc): Likewise.
50571         (__libc_memalign): Likewise.
50572         (__libc_valloc): Likewise.
50573         (__libc_pvalloc): Likewise.
50574         (__libc_calloc): Likewise.
50575         (__posix_memalign): Likewise.
50576         * malloc/morecore.c (__sbrk): Likewise.
50577         (__default_morecore): Likewise.
50578
50579         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
50580
50581         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
50582         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
50583         __malloc_ptrdiff_t.
50584
50585         * malloc/malloc.h (__malloc_size_t): Remove macro.
50586         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
50587         __malloc_size_t.
50588         (old_memalign_hook): Likewise.
50589         (old_realloc_hook): Likewise.
50590         (struct hdr): Likewise.
50591         (flood): Likewise.
50592         (mallochook): Likewise.
50593         (memalignhook): Likewise.
50594         (reallochook): Likewise.
50595         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
50596         (tr_old_realloc_hook): Likewise.
50597         (tr_old_memalign_hook): Likewise.
50598         (tr_mallochook): Likewise.
50599         (tr_reallochook): Likewise.
50600         (tr_memalignhook): Likewise.
50601
50602 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50603
50604         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
50605         default_ldbl_pack and using as default implementation.
50606         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
50607         implementation.
50608         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
50609         redundant definition.
50610         (ldbl_insert_mantissa): Likewise.
50611         (ldbl_canonicalize): Likewise.
50612         (ldbl_nearbyint): Likewise.
50613         (ldbl_pack): Rename to ldbl_pack_ppc.
50614         (ldbl_unpack): Rename to ldbl_unpack_ppc.
50615         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
50616         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
50617
50618 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50619
50620         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
50621         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50622         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50623         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50624         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50625         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50626         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50627         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50628
50629 2013-03-07  Andreas Jaeger  <aj@suse.de>
50630
50631         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50632         bits/mman-linux.h.
50633
50634 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50635
50636         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50637         Include mpa.h and declare __MPEXP.
50638         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50639         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50640         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50641         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50642         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50643         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50644         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50645
50646         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50647         (__slowpow): Use long double EXPL and LOGL functions to
50648         compute POW.
50649         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50650         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50651         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50652         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50653         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50654         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50655
50656         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50657         intermediate variable to calculate exponent.
50658         (__sqr): Likewise.
50659         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50660         Likewise.
50661         (__sqr): Likewise.
50662
50663         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50664         [!NO__SQR]: Define __sqr.
50665         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50666         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50667         sysdeps/ieee754/dbl-64/mpa.c.
50668         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50669
50670         [BZ #12723]
50671         * posix/Makefile (tests): Add tst-pathconf.
50672         * posix/tst-pathconf.c: New test case.
50673         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50674         _PC_PIPE_BUF.
50675         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50676
50677 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50678
50679         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50680
50681 2013-03-06  Andreas Jaeger  <aj@suse.de>
50682
50683         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50684         definition via __MAP_ANONYMOUS.
50685
50686         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50687         it's not part of Linux headers.
50688
50689         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50690         (MAP_HUGE_MASK): Define.
50691
50692         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50693         Define.
50694         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50695         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50696         Define.
50697         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50698         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50699         Define.
50700         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50701         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50702         Define.
50703         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50704
50705         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50706         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50707         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50708         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50709         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50710         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50711
50712         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50713         Handle f2fs.
50714
50715         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50716         Handle f2fs and efivarfs.
50717
50718         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50719         f2fs.
50720
50721         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50722         (EFIVARFS_MAGIC): Add.
50723         (F2FS_LINK_MAX): Add.
50724
50725 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50726
50727         * stdio-common/vfprintf.c: Replace __builtin_expect with
50728         __glibc_unlikely.
50729
50730 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50731
50732         [BZ #13550]
50733         * sysdeps/generic/bp-sym.h: Remove file.
50734         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50735         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50736         <bp-sym.h> and <bp-asm.h>.
50737         (__longjmp): Don't use BP_SYM.
50738         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50739         and <bp-asm.h>.
50740         (memcpy): Don't use BP_SYM.
50741         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50742         <bp-sym.h> and <bp-asm.h>.
50743         (memcpy): Don't use BP_SYM.
50744         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50745         <bp-asm.h>.
50746         (memcpy): Don't use BP_SYM.
50747         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50748         <bp-asm.h>.
50749         (memset): Don't use BP_SYM.
50750         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50751         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50752         (__bzero): Don't use BP_SYM.
50753         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50754         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50755         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50756         <bp-sym.h> and <bp-asm.h>.
50757         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50758         pointers.
50759         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50760         <bp-sym.h> and <bp-asm.h>.
50761         (memcpy): Don't use BP_SYM.
50762         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50763         <bp-sym.h> and <bp-asm.h>.
50764         (memset): Don't use BP_SYM.
50765         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50766         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50767         (__bzero): Don't use BP_SYM.
50768         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50769         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50770         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50771         <bp-sym.h> and <bp-asm.h>.
50772         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50773         pointers.
50774         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50775         <bp-sym.h> and <bp-asm.h>.
50776         (memcpy): Don't use BP_SYM.
50777         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50778         <bp-sym.h> and <bp-asm.h>.
50779         (memset): Don't use BP_SYM.
50780         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50781         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50782         (__bzero): Don't use BP_SYM.
50783         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50784         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50785         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50786         <bp-sym.h> and <bp-asm.h>.
50787         (__memchr): Don't use BP_SYM.
50788         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50789         <bp-sym.h> and <bp-asm.h>.
50790         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50791         pointers.
50792         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50793         <bp-sym.h> and <bp-asm.h>.
50794         (memcpy): Don't use BP_SYM.
50795         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50796         <bp-sym.h> and <bp-asm.h>.
50797         (__mempcpy): Don't use BP_SYM.
50798         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50799         <bp-sym.h> and <bp-asm.h>.
50800         (__memrchr): Don't use BP_SYM.
50801         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50802         <bp-sym.h> and <bp-asm.h>.
50803         (memset): Don't use BP_SYM.
50804         (__bzero): Likewise.
50805         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50806         <bp-sym.h> and <bp-asm.h>.
50807         (__rawmemchr): Don't use BP_SYM.
50808         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50809         <bp-sym.h> and <bp-asm.h>.
50810         (__STRCMP): Don't use BP_SYM.
50811         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50812         <bp-sym.h> and <bp-asm.h>.
50813         (strchr): Don't use BP_SYM.
50814         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50815         <bp-sym.h> and <bp-asm.h>.
50816         (__strchrnul): Don't use BP_SYM.
50817         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50818         <bp-sym.h> and <bp-asm.h>.
50819         (strlen): Don't use BP_SYM.
50820         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50821         <bp-sym.h> and <bp-asm.h>.
50822         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50823         pointers.
50824         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50825         <bp-sym.h> and <bp-asm.h>.
50826         (__strnlen): Don't use BP_SYM.
50827         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50828         <bp-sym.h> and <bp-asm.h>.
50829         (__GI__setjmp): Don't use BP_SYM.
50830         (_setjmp): Likewise.
50831         (__sigsetjmp): Likewise.
50832         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50833         (L(start_addresses)): Don't use BP_SYM.
50834         (_start): Likewise.
50835         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50836         <bp-asm.h>.
50837         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50838         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50839         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50840         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50841         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50842         <bp-asm.h>.
50843         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50844         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50845         about bounded pointers.
50846         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50847         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50848         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50849         <bp-asm.h>.
50850         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50851         about bounded pointers.  Remove GKM FIXME comments.
50852         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50853         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50854         <bp-asm.h>.
50855         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50856         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50857         Remove GKM FIXME comments.
50858         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50859         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50860         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50861         <bp-asm.h>.
50862         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50863         about bounded pointers.  Remove GKM FIXME comment.
50864         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50865         and <bp-asm.h>.
50866         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50867         pointers.
50868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50869         <bp-sym.h> and <bp-asm.h>.
50870         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50872         <bp-sym.h> and <bp-asm.h>.
50873         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50874         comment.
50875
50876 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50877
50878         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50879         call free(NULL).
50880
50881 2013-03-05  David S. Miller  <davem@davemloft.net>
50882
50883         * po/es.po: Update from translation team.
50884
50885 2013-03-05  Andreas Jaeger  <aj@suse.de>
50886
50887         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50888         <bits/mman-linux.h>.
50889         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50890         is fine.
50891         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50892         <bits/mman-linux.h> to end of file.
50893         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50894         is fine.
50895         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50896         <bits/mman-linux.h> to end of file.
50897         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50898         is fine.
50899         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50900         <bits/mman-linux.h> to end of file.
50901
50902         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50903         (MCL_CURRENT, MCL_FUTURE): Define here.
50904
50905 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50906
50907         [BZ #15232]
50908         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50909         attribute_hidden.
50910         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50911
50912 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50913
50914         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50915         fourth parameter needed for rt_sigprocmask syscall.
50916         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50917         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50918         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50919         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50920         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50921         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50922
50923 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50924
50925         [BZ #13550]
50926         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50927         comment about bounded pointers.
50928         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50929         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50930
50931 2013-03-04  Andreas Jaeger  <aj@suse.de>
50932
50933         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50934         common definitions.
50935
50936         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50937         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50938         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50939         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50940         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50941         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50942
50943 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50944
50945         [BZ #15055]
50946         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50947         __ieee754_sqrl instead of __sqrl.
50948
50949 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50950
50951         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50952         * sysdeps/powerpc/fpu_control.h: ... here.
50953         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50954         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50955         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50956         * sysdeps/powerpc/bits/mathinline.h: ... here.
50957
50958 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50959
50960         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50961         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50962         to just [NEED_DL_SYSINFO_DSO].
50963         * elf/dl-support.c: Likewise.
50964         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50965         * elf/rtld.c (dl_main): Likewise.
50966         * elf/setup-vdso.h (setup_vdso): Likewise.
50967         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50968         * sysdeps/unix/sysv/linux/dl-sysdep.c
50969         (_dl_discover_osversion): Likewise.
50970
50971 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50972
50973         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50974         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50975
50976 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50977
50978         * NEWS: Mention libm performance improvements and non-x86 PI
50979         futex support.
50980
50981         * csu/libc-start.c (__pthread_initialize_minimal): Change
50982         function arguments.
50983         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50984
50985 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50986
50987         [BZ #13550]
50988         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50989         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50990         <bp-sym.h> and <bp-asm.h>.
50991         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50992         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50993         and <bp-asm.h>.
50994         (memcpy): Don't use BP_SYM.
50995         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50996         <bp-asm.h>.
50997         (__mpn_add_n): Don't use BP_SYM.
50998         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50999         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
51000         and <bp-asm.h>.
51001         (__mpn_addmul_1): Don't use BP_SYM.
51002         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51003         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
51004         <bp-sym.h>.
51005         (_setjmp): Don't use BP_SYM.
51006         (__novmx_setjmp): Likewise.
51007         (__GI__setjmp): Likewise.
51008         (__vmx_setjmp): Likewise.
51009         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
51010         <bp-sym.h>.
51011         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
51012         (__bzero): Don't use BP_SYM.
51013         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
51014         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
51015         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
51016         <bp-sym.h> and <bp-asm.h>.
51017         (memcpy): Don't use BP_SYM.
51018         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
51019         <bp-sym.h> and <bp-asm.h>.
51020         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51021         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
51022         <bp-sym.h> and <bp-asm.h>.
51023         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51024         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
51025         <bp-asm.h>.
51026         (__mpn_lshift): Don't use BP_SYM.
51027         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51028         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
51029         <bp-asm.h>.
51030         (memset): Don't use BP_SYM.
51031         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
51032         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
51033         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
51034         <bp-asm.h>.
51035         (__mpn_mul_1): Don't use BP_SYM.
51036         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51037         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
51038         <bp-sym.h> and <bp-asm.h>.
51039         (memcmp): Don't use BP_SYM.
51040         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
51041         <bp-sym.h> and <bp-asm.h>.
51042         (memcpy): Don't use BP_SYM.
51043         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
51044         <bp-sym.h> and <bp-asm.h>.
51045         (memset): Don't use BP_SYM.
51046         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
51047         <bp-sym.h> and <bp-asm.h>.
51048         (strncmp): Don't use BP_SYM.
51049         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
51050         <bp-sym.h> and <bp-asm.h>.
51051         (memcpy): Don't use BP_SYM.
51052         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
51053         <bp-sym.h> and <bp-asm.h>.
51054         (memset): Don't use BP_SYM.
51055         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
51056         <bp-sym.h> and <bp-asm.h>.
51057         (__memchr): Don't use BP_SYM.
51058         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
51059         <bp-sym.h> and <bp-asm.h>.
51060         (memcmp): Don't use BP_SYM.
51061         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
51062         <bp-sym.h> and <bp-asm.h>.
51063         (memcpy): Don't use BP_SYM.
51064         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
51065         <bp-sym.h> and <bp-asm.h>.
51066         (__mempcpy): Don't use BP_SYM.
51067         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
51068         <bp-sym.h> and <bp-asm.h>.
51069         (__memrchr): Don't use BP_SYM.
51070         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
51071         <bp-sym.h> and <bp-asm.h>.
51072         (memset): Don't use BP_SYM.
51073         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
51074         <bp-sym.h> and <bp-asm.h>.
51075         (__rawmemchr): Don't use BP_SYM.
51076         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
51077         <bp-sym.h> and <bp-asm.h>.
51078         (__STRCMP): Don't use BP_SYM.
51079         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
51080         <bp-sym.h> and <bp-asm.h>.
51081         (strchr): Don't use BP_SYM.
51082         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
51083         <bp-sym.h> and <bp-asm.h>.
51084         (__strchrnul): Don't use BP_SYM.
51085         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
51086         <bp-sym.h> and <bp-asm.h>.
51087         (strlen): Don't use BP_SYM.
51088         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
51089         <bp-sym.h> and <bp-asm.h>.
51090         (strncmp): Don't use BP_SYM.
51091         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
51092         <bp-sym.h> and <bp-asm.h>.
51093         (__strnlen): Don't use BP_SYM.
51094         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
51095         <bp-asm.h>.
51096         (__mpn_rshift): Don't use BP_SYM.
51097         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51098         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
51099         <bp-sym.h> and <bp-asm.h>.
51100         (__sigsetjmp): Don't use BP_SYM.
51101         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
51102         (L(start_addresses)): Don't use BP_SYM.
51103         (_start): Likewise.
51104         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
51105         <bp-asm.h>.
51106         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
51107         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51108         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51109         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
51110         <bp-asm.h>.
51111         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
51112         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51113         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51114         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
51115         <bp-asm.h>.
51116         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51117         comments.
51118         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51119         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
51120         <bp-asm.h>.
51121         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
51122         FIXME comments.
51123         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51124         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51125         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
51126         <bp-asm.h>.
51127         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51128         comment.
51129         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
51130         and <bp-asm.h>.
51131         (strncmp): Don't use BP_SYM,
51132         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
51133         <bp-asm.h>.
51134         (__mpn_sub_n): Don't use BP_SYM.
51135         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51136         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
51137         and <bp-asm.h>.
51138         (__mpn_submul_1): Don't use BP_SYM.
51139         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
51141         <bp-sym.h> and <bp-asm.h>.
51142         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
51143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
51144         <bp-sym.h> and <bp-asm.h>.
51145         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
51146         comment.
51147
51148 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
51149
51150         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
51151         Use ZK to minimize writes to Z.
51152         (sub_magnitudes): Simplify code a bit.
51153         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
51154         Use ZK to minimize writes to Z.
51155         (sub_magnitudes): Simplify code a bit.
51156
51157 2013-02-27  Roland McGrath  <roland@hack.frob.com>
51158
51159         * csu/gmon-start.c: Add special exception to license text.
51160
51161 2013-02-27  Richard Henderson  <rth@redhat.com>
51162
51163         * scripts/config.guess: Update from config.git.
51164         * scripts/config.sub: Likewise.
51165
51166 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
51167
51168         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
51169
51170         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
51171
51172         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
51173
51174         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
51175
51176         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
51177
51178 2013-02-26  Roland McGrath  <roland@hack.frob.com>
51179
51180         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
51181         [$(build-shared = yes].
51182
51183 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51184
51185         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
51186         (__mul): Reduce iterations for calculating mantissa.
51187
51188         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
51189         MPTWO.
51190         (__mpranred): Likewise.
51191
51192         [BZ #15160]
51193         * malloc/memusagestat.c (main): Draw graphs for heap and stack
51194         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
51195
51196 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51197
51198         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
51199         Define __attribute__.
51200
51201 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51202
51203         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
51204         unused.
51205         * posix/regex_internal.h (__attribute): Remove.
51206         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
51207         (re_string_context_at): Likewise.
51208         (bitset_not): Use __attribute__ and mark function as possibly
51209         unused.
51210         (bitset_merge): Likewise.
51211         (bitset_mask): Likewise.
51212         (re_string_char_size_at): Likewise.
51213         (re_string_wchar_at): Likewise.
51214         (re_string_elem_size_at): Likewise.
51215
51216 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
51217
51218         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
51219         code.
51220         (cc32): Likewise.
51221
51222         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
51223         (__acr): Likewise.
51224         (__cpy): Likewise.
51225         (norm): Likewise.
51226         (denorm): Likewise.
51227         (__dbl_mp): Likewise.
51228         (add_magnitudes): Likewise.
51229         (sub_magnitudes): Likewise.
51230         (__mul): Likewise.
51231         (__inv): Likewise.
51232
51233         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
51234         style.
51235
51236         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
51237         style.
51238
51239         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
51240         code.
51241
51242         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
51243         up changes with default code.
51244         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
51245         Likewise.
51246
51247 2013-02-24  Allan McRae  <allan@archlinux.org>
51248
51249         * manual/socket.texi (The Internet Namespace): Order menu items
51250         to match that in the file.
51251
51252         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
51253         node listing of the info page menu.
51254
51255 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
51256
51257         [BZ #13550]
51258         * sysdeps/i386/bp-asm.h: Remove file.
51259         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51260         (PARMS): Do not use macros from bp-asm.h.
51261         (S1): Likewise.
51262         (S2): Likewise.
51263         (SIZE): Likewise.
51264         (__mpn_add_n): Do not use BP_SYM
51265         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
51266         "bp-asm.h".
51267         (PARMS): Do not use macros from bp-asm.h.
51268         (S1): Likewise.
51269         (SIZE): Likewise.
51270         (__mpn_addmul_1): Do not use BP_SYM
51271         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
51272         "bp-asm.h".
51273         (PARMS): Do not use macros from bp-asm.h.
51274         (SIGMSK): Likewise.
51275         (_setjmp): Likewise.  Do not use BP_SYM.
51276         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
51277         "bp-asm.h".
51278         (PARMS): Do not use macros from bp-asm.h.
51279         (SIGMSK): Likewise.
51280         (setjmp): Likewise.  Do not use BP_SYM.
51281         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
51282         "bp-asm.h".
51283         (PARMS): Do not use macros from bp-asm.h.
51284         (__frexp): Do not use BP_SYM.
51285         (frexp): Likewise.
51286         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
51287         "bp-asm.h".
51288         (PARMS): Do not use macros from bp-asm.h.
51289         (__frexpf): Do not use BP_SYM.
51290         (frexpf): Likewise.
51291         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
51292         "bp-asm.h".
51293         (PARMS): Do not use macros from bp-asm.h.
51294         (__frexpl): Do not use BP_SYM.
51295         (frexpl): Likewise.
51296         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
51297         "bp-asm.h".
51298         (PARMS): Do not use macros from bp-asm.h.
51299         (__remquo): Do not use BP_SYM.
51300         (remquo): Likewise.
51301         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
51302         "bp-asm.h".
51303         (PARMS): Do not use macros from bp-asm.h.
51304         (__remquof): Do not use BP_SYM.
51305         (remquof): Likewise.
51306         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
51307         "bp-asm.h".
51308         (PARMS): Do not use macros from bp-asm.h.
51309         (__remquol): Do not use BP_SYM.
51310         (remquol): Likewise.
51311         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
51312         "bp-asm.h".
51313         (PARMS): Do not use macros from bp-asm.h.
51314         (DEST): Likewise.
51315         (SRC): Likewise.
51316         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
51317         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
51318         "bp-asm.h".
51319         (PARMS): Do not use macros from bp-asm.h.
51320         (strlen): Do not use BP_SYM.
51321         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
51322         "bp-asm.h".
51323         (PARMS): Do not use macros from bp-asm.h.
51324         (S1): Likewise.
51325         (S2): Likewise.
51326         (SIZE): Likewise.
51327         (__mpn_add_n): Do not use BP_SYM.
51328         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
51329         "bp-asm.h".
51330         (PARMS): Do not use macros from bp-asm.h.
51331         (S1): Likewise.
51332         (SIZE): Likewise.
51333         (__mpn_addmul_1): Do not use BP_SYM.
51334         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
51335         weak_alias.
51336         (bzero): Likewise.
51337         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
51338         "bp-asm.h".
51339         (PARMS): Do not use macros from bp-asm.h.
51340         (S): Likewise.
51341         (SIZE): Likewise.
51342         (__mpn_lshift): Do not use BP_SYM.
51343         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
51344         "bp-asm.h".
51345         (PARMS): Do not use macros from bp-asm.h.
51346         (DEST): Likewise.
51347         (SRC): Likewise.
51348         (LEN): Likewise.
51349         (memcpy): Likewise.  Do not use BP_SYM.
51350         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
51351         libc_hidden_def and weak_alias.
51352         (mempcpy): Do not use BP_SYM in weak_alias.
51353         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
51354         "bp-asm.h".
51355         (PARMS): Do not use macros from bp-asm.h.
51356         (DEST): Likewise.
51357         (LEN): Likewise.
51358         [!BZERO_P] (CHR): Likewise.
51359         (memset): Likewise.  Do not use BP_SYM.
51360         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
51361         "bp-asm.h".
51362         (PARMS): Do not use macros from bp-asm.h.
51363         (S1): Likewise.
51364         (SIZE): Likewise.
51365         (__mpn_mul_1): Do not use BP_SYM.
51366         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
51367         "bp-asm.h".
51368         (PARMS): Do not use macros from bp-asm.h.
51369         (S): Likewise.
51370         (SIZE): Likewise.
51371         (__mpn_rshift): Do not use BP_SYM.
51372         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
51373         "bp-asm.h".
51374         (PARMS): Do not use macros from bp-asm.h.
51375         (STR): Likewise.
51376         (CHR): Likewise.
51377         (strchr): Likewise.  Do not use BP_SYM.
51378         (index): Do not use BP_SYM in weak_alias.
51379         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
51380         "bp-asm.h".
51381         (PARMS): Do not use macros from bp-asm.h.
51382         (DEST): Likewise.
51383         (SRC): Likewise.
51384         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
51385         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
51386         "bp-asm.h".
51387         (PARMS): Do not use macros from bp-asm.h.
51388         (strlen): Do not use BP_SYM.
51389         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
51390         "bp-asm.h".
51391         (PARMS): Do not use macros from bp-asm.h.
51392         (S1): Likewise.
51393         (S2): Likewise.
51394         (SIZE): Likewise.
51395         (__mpn_sub_n): Do not use BP_SYM.
51396         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
51397         "bp-asm.h".
51398         (PARMS): Do not use macros from bp-asm.h.
51399         (S1): Likewise.
51400         (SIZE): Likewise.
51401         (__mpn_submul_1): Do not use BP_SYM.
51402         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
51403         "bp-asm.h".
51404         (PARMS): Do not use macros from bp-asm.h.
51405         (S1): Likewise.
51406         (S2): Likewise.
51407         (SIZE): Likewise.
51408         (__mpn_add_n): Do not use BP_SYM.
51409         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
51410         weak_alias.
51411         (bzero): Likewise.
51412         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
51413         "bp-asm.h".
51414         (PARMS): Do not use macros from bp-asm.h.
51415         (BLK2): Likewise.
51416         (LEN): Likewise.
51417         (memcmp): Do not use BP_SYM.
51418         (bcmp): Do not use BP_SYM in weak_alias.
51419         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
51420         "bp-asm.h".
51421         (PARMS): Do not use macros from bp-asm.h.
51422         (DEST): Likewise.
51423         (SRC): Likewise.
51424         (LEN): Likewise.
51425         (memcpy): Likewise.  Do not use BP_SYM.
51426         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
51427         "bp-asm.h".
51428         (PARMS): Do not use macros from bp-asm.h.
51429         (DEST): Likewise.
51430         (SRC): Likewise.
51431         (LEN): Likewise.
51432         (memmove): Likewise.  Do not use BP_SYM.
51433         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
51434         "bp-asm.h".
51435         (PARMS): Do not use macros from bp-asm.h.
51436         (DEST): Likewise.
51437         (SRC): Likewise.
51438         (LEN): Likewise.
51439         (__mempcpy): Likewise.  Do not use BP_SYM.
51440         (mempcpy): Do not use BP_SYM in weak_alias.
51441         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
51442         "bp-asm.h".
51443         (PARMS): Do not use macros from bp-asm.h.
51444         (DEST): Likewise.
51445         (LEN): Likewise.
51446         [!BZERO_P] (CHR): Likewise.
51447         (memset): Likewise.  Do not use BP_SYM.
51448         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
51449         "bp-asm.h".
51450         (PARMS): Do not use macros from bp-asm.h.
51451         (STR2): Likewise.
51452         (strcmp): Do not use BP_SYM.
51453         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
51454         "bp-asm.h".
51455         (PARMS): Do not use macros from bp-asm.h.
51456         (STR): Likewise.
51457         (DELIM): Likewise.
51458         [USE_AS_STRTOK_R] (SAVE): Likewise.
51459         (FUNCTION): Likewise.  Do not use BP_SYM.
51460         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
51461         aliases.
51462         (strtok_r): Likewise.
51463         (__GI___strtok_r): Likewise.
51464         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51465         (PARMS): Do not use macros from bp-asm.h.
51466         (S): Likewise.
51467         (SIZE): Likewise.
51468         (__mpn_lshift): Do not use BP_SYM.
51469         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51470         (PARMS): Do not use macros from bp-asm.h.
51471         (STR): Likewise.
51472         (CHR): Likewise.
51473         (__memchr): Do not use BP_SYM.
51474         (memchr): Do not use BP_SYM in weak_alias.
51475         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51476         (PARMS): Do not use macros from bp-asm.h.
51477         (BLK2): Likewise.
51478         (LEN): Likewise.
51479         (memcmp): Do not use BP_SYM.
51480         (bcmp): Do not use BP_SYM in weak_alias.
51481         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
51482         (PARMS): Do not use macros from bp-asm.h.
51483         (S1): Likewise.
51484         (SIZE): Likewise.
51485         (__mpn_mul_1): Do not use BP_SYM.
51486         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
51487         "bp-asm.h".
51488         (PARMS): Do not use macros from bp-asm.h.
51489         (STR): Likewise.
51490         (CHR): Likewise.
51491         (__rawmemchr): Do not use BP_SYM.
51492         (rawmemchr): Do not use BP_SYM in weak_alias.
51493         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51494         (PARMS): Do not use macros from bp-asm.h.
51495         (S): Likewise.
51496         (SIZE): Likewise.
51497         (__mpn_rshift): Do not use BP_SYM.
51498         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51499         (PARMS): Do not use macros from bp-asm.h.
51500         (SIGMSK): Likewise.
51501         (__sigsetjmp): Likewise.  Do not use BP_SYM.
51502         * sysdeps/i386/start.S: Do not include "bp-sym.h".
51503         (_start): Do not use BP_SYM.
51504         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
51505         (PARMS): Do not use macros from bp-asm.h.
51506         (DEST): Likewise.
51507         (SRC): Likewise.
51508         (__stpcpy): Likewise.  Do not use BP_SYM.
51509         (stpcpy): Do not use BP_SYM in weak_alias.
51510         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
51511         "bp-asm.h".
51512         (PARMS): Do not use macros from bp-asm.h.
51513         (DEST): Likewise.
51514         (SRC): Likewise.
51515         (LEN): Likewise.
51516         (__stpncpy): Likewise.  Do not use BP_SYM.
51517         (stpncpy): Do not use BP_SYM in weak_alias.
51518         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51519         (PARMS): Do not use macros from bp-asm.h.
51520         (STR): Likewise.
51521         (CHR): Likewise.
51522         (strchr): Likewise.  Do not use BP_SYM.
51523         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
51524         "bp-asm.h".
51525         (PARMS): Do not use macros from bp-asm.h.
51526         (STR): Likewise.
51527         (CHR): Likewise.
51528         (__strchrnul): Likewise.  Do not use BP_SYM.
51529         (strchrnul): Do not use BP_SYM in weak_alias.
51530         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
51531         "bp-asm.h".
51532         (PARMS): Do not use macros from bp-asm.h.
51533         (STOP): Likewise.
51534         (strcspn): Do not use BP_SYM.
51535         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
51536         "bp-asm.h".
51537         (PARMS): Do not use macros from bp-asm.h.
51538         (STR): Likewise.
51539         (STOP): Likewise.
51540         (strpbrk): Likewise.  Do not use BP_SYM.
51541         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
51542         "bp-asm.h".
51543         (PARMS): Do not use macros from bp-asm.h.
51544         (STR): Likewise.
51545         (CHR): Likewise.
51546         (strrchr): Likewise.  Do not use BP_SYM.
51547         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
51548         (PARMS): Do not use macros from bp-asm.h.
51549         (SKIP): Likewise.
51550         (strspn): Do not use BP_SYM.
51551         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
51552         (PARMS): Do not use macros from bp-asm.h.
51553         (STR): Likewise.
51554         (DELIM): Likewise.
51555         (SAVE): Likewise.
51556         (FUNCTION): Likewise.  Do not use BP_SYM.
51557         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
51558         aliases.
51559         (strtok_r): Likewise.
51560         (__GI___strtok_r): Likewise.
51561         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51562         (PARMS): Do not use macros from bp-asm.h.
51563         (S1): Likewise.
51564         (S2): Likewise.
51565         (SIZE): Likewise.
51566         (__mpn_sub_n): Do not use BP_SYM.
51567         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
51568         "bp-asm.h".
51569         (PARMS): Do not use macros from bp-asm.h.
51570         (S1): Likewise.
51571         (SIZE): Likewise.
51572         (__mpn_submul_1): Do not use BP_SYM.
51573         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
51574         <bp-sym.h>.
51575         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
51576         and <bp-asm.h>.
51577         (PARMS): Do not use macros from bp-asm.h.
51578         (FLAGS): Likewise.
51579         (PTID): Likewise.
51580         (TLS): Likewise.
51581         (CTID): Likewise.
51582         (__clone): Do not use BP_SYM.
51583         (clone): Do not use BP_SYM in weak_alias.
51584         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
51585         and <bp-asm.h>.
51586         (PARMS): Do not use macros from bp-asm.h.
51587         (LEN): Likewise.
51588         (__mmap64): Do not use BP_SYM.
51589         (mmap64): Do not use BP_SYM in weak_alias.
51590         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
51591         <bp-sym.h> and <bp-asm.h>.
51592         (PARMS): Do not use macros from bp-asm.h.
51593         (__posix_fadvise64_l64): Do not use BP_SYM.
51594         * sysdeps/unix/sysv/linux/i386/semtimedop.S
51595         (PARMS): Do not use macros from bp-asm.h.
51596         (NSOPS): Likewise.
51597         (semtimedop): Do not use BP_SYM.
51598         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
51599         and <bp-asm.h>.
51600
51601 2013-02-21  Allan McRae  <allan@archlinux.org>
51602
51603         * manual/message.texi (Charset conversion in gettext):
51604         Move @end statement to beginning of line.
51605
51606 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51607
51608         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
51609         static.
51610         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
51611         Likewise.
51612
51613         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
51614         (denorm): Likewise.
51615         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
51616         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
51617
51618 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51619
51620         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
51621         tail-call to the resolved function if pltexit isn't needed.
51622
51623 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51624
51625         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51626         or Y being zero as being unlikely.
51627         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51628         Likewise.
51629
51630 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51631
51632         * manual/nss.texi (System Databases and Name Service Switch):
51633         Remove frobnicate @pxref.
51634
51635 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51636
51637         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51638         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51639
51640 2013-02-20  Petr Machata  <pmachata@redhat.com>
51641
51642         * elf/elf.h (R_ARM_TARGET1): New macro.
51643         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51644         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51645         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51646         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51647         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51648         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51649         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51650         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51651         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51652         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51653         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51654         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51655         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51656         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51657         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51658         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51659         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51660         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51661         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51662         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51663         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51664         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51665         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51666         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51667         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51668         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51669         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51670         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51671         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51672         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51673         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51674         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51675         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51676         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51677         (R_ARM_THM_GOT_BREL12): Likewise.
51678         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51679         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51680         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51681         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51682         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51683         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51684         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51685         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51686         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51687
51688 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51689
51690         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51691         __attribute_used__ to __attribute__ ((unused)).
51692
51693 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51694
51695         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51696         powerpc mpa.c.
51697         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51698         comment formatting.
51699         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51700
51701 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51702
51703         [BZ #13550]
51704         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51705         Remove macro.
51706         (ENTER): Remove both macro definitions.
51707         (LEAVE): Likewise.
51708         (CHECK_BOUNDS_LOW): Likewise.
51709         (CHECK_BOUNDS_HIGH): Likewise.
51710         (CHECK_BOUNDS_BOTH): Likewise.
51711         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51712         (RETURN_BOUNDED_POINTER): Likewise.
51713         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51714         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51715         (POP_ERRNO_LOCATION_RETURN): Likewise.
51716         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51717         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51718         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51719         macros.
51720         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51721         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51722         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51723         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51724         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51725         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51726         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51727         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51728         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51729         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51730         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51731         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51732         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51733         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51734         removed macros.
51735         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51736         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51737         macros.
51738         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51739         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51740         * sysdeps/i386/i586/memset.S (memset): Likewise.
51741         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51742         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51743         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51744         macros.
51745         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51746         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51747         Change uses of L(2) to L(out).
51748         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51749         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51750         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51751         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51752         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51753         removed macros.
51754         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51755         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51756         macros.
51757         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51758         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51759         (RETURN): Do not use macro LEAVE.
51760         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51761         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51762         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51763         * sysdeps/i386/i686/memset.S (memset): Likewise.
51764         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51765         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51766         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51767         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51768         Likewise.
51769         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51770         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51771         L(1_2) and L(1_3) into L(1).
51772         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51773         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51774         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51775         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51776         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51777         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51778         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51779         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51780         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51781         macros.
51782         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51783         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51784         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51785         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51786         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51787         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51788         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51789         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51790         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51791         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51792         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51793         * sysdeps/i386/strspn.S (strspn): Likewise.
51794         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51795         conditional code.
51796         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51797         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51798         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51799         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51800         L(1_3) into L(1_1).
51801         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51802         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51803         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51804         macros.
51805         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51806
51807 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51808
51809         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51810         macro.
51811
51812 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51813
51814         * math/atest-exp.c (exp_mpn): Remove ROUND.
51815         * math/atest-exp2.c (exp_mpn): Likewise.
51816         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51817
51818         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51819         * stdlib/tst-tls-atexit-lib.c: Likewise.
51820         * stdlib/tst-tls-atexit.c: Likewise.
51821
51822 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51823
51824         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51825         and __attribute_alloc_size__.
51826
51827 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51828
51829         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51830         __attribute_alloc_size__.
51831         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51832         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51833
51834 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51835
51836         * include/programs/xmalloc.h: New file.
51837         * catgets/gencat.c: Include it.
51838         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51839         * elf/pldd.c: Likewise.
51840         * iconv/iconv_charmap.c: Likewise.
51841         * iconv/iconvconfig.c: Likewise.
51842         * iconv/strtab.c: Likewise.
51843         * locale/programs/locale.c: Likewise.
51844         * locale/programs/localedef.h: Likewise.
51845         * locale/programs/simple-hash.c: Likewise.
51846         * nscd/nscd.h: Likewise.
51847         * nss/makedb.c: Likewise.
51848         * sysdeps/generic/ldconfig.h: Likewise.
51849
51850 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51851
51852         * Versions.def: Add GLIBC_2.18.
51853         * include/link.h (struct link_map): New member l_tls_dtor_count.
51854         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51855         (__call_tls_dtors): Likewise.
51856         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51857         __cxa_thread_atexit_impl.
51858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51859         Likewise.
51860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51861         Likewise.
51862         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51863         Likewise.
51864         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51865         Likewise.
51866         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51867         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51868         Likewise.
51869         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51870         Likewise.
51871         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51872         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51873         Likewise.
51874         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51875         (tests): Add test case tst-tls-atexit.
51876         (modules-names): Add shared library for tst-tls-atexit.
51877         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51878         (GLIBC_PRIVATE): Add __call_tls_dtors.
51879         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51880         for libstdc++.
51881         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51882         * stdlib/tst-tls-atexit.c: New test case.
51883         * stdlib/tst-tls-atexit-lib.c: New test case.
51884
51885         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51886
51887         * elf/Versions (ld): Add _dl_find_dso_for_object.
51888         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51889         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51890         (dl_open_worker): Use _dl_find_dso_for_object.
51891         * elf/dl-sym.c (do_sym): Likewise.
51892         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51893
51894 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51895
51896         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51897         Syntactic changes only.
51898         (_dl_runtime_profile): Do a tail-call to the resolved function.
51899
51900 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51901
51902         [BZ #13550]
51903         * sysdeps/x86_64/bp-asm.h: Remove file.
51904         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51905         <bp-sym.h> and <bp-asm.h>.
51906         (__clone): Do not use BP_SYM.
51907         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51908         <bp-sym.h> and <bp-asm.h>.
51909         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51910         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51911         "bp-asm.h".
51912         (_setjmp): Do not use BP_SYM.
51913         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51914         "bp-asm.h".
51915         (setjmp): Do not use BP_SYM.
51916         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51917         libc_hidden_def.
51918         (mempcpy): Do not use BP_SYM in weak_alias.
51919         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51920         "bp-asm.h".
51921         (strchr): Do not use BP_SYM.
51922         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51923         "bp-asm.h".
51924         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51925         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51926         (_start): Do not use BP_SYM.
51927         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51928         "bp-asm.h".
51929         (strcat): Do not use BP_SYM.
51930         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51931         "bp-asm.h".
51932         (STRCMP): Do not use BP_SYM.
51933         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51934         "bp-asm.h".
51935         (STRCPY): Do not use BP_SYM.
51936         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51937         "bp-asm.h".
51938         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51939         "bp-asm.h".
51940         (FUNCTION): Do not use BP_SYM.
51941         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51942         weak_alias.
51943         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51944
51945 2013-02-17  Andreas Jaeger  <aj@suse.de>
51946
51947         * time/Versions: Sort entries.
51948         * string/Versions: Likewise.
51949         * resolv/Versions: Likewise.
51950         * posix/Versions: Likewise.
51951         * iconv/Versions: Likewise.
51952         * elf/Versions: Likewise.
51953         * wcsmbs/Versions: Likewise.
51954
51955 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51956
51957         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51958         loop termination condition.
51959
51960         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51961         variable to calculate EZ.
51962         (__sqr): Likewise.
51963
51964         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51965         the lower precision input.
51966
51967 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51968
51969         [BZ #13550]
51970         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51971         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51972         (run-via-rtld-prefix): Do not handle %-bp tests.
51973         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51974         (all-object-suffixes): Remove .ob.
51975         (bppfx): Remove variable.
51976         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51977         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51978         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51979         [$(build-bounded) = yes] (libtype.ob): Likewise.
51980         * Makerules (elide-routines.ob): Remove variable.
51981         (do-tests-clean): Do not handle *-bp.out.
51982         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51983         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51984         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51985         (tests): Do not include $(tests-bp.out).
51986         (xtests): Do not include $(xtests-bp.out).
51987         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51988         [$(build-bounded) = yes] ($(addprefix
51989         $(objpfx),$(binaries-bounded))): Remove rule.
51990         ($(objpfx)%-bp.out): Remove rule.
51991         * config.make.in (build-bounded): Remove variable.
51992         * crypt/Makefile [$(build-bounded) = yes]
51993         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51994         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51995         append to variable.
51996         [$(build-bounded) = yes] (install-lib): Likewise.
51997         [$(build-bounded) = yes] (generated): Likewise.
51998         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51999         Remove rule.
52000         * intl/Makefile [$(build-bounded) = yes]
52001         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
52002         * math/Makefile [$(build-bounded) = yes]
52003         ($(tests:%=$(objpfx)%-bp): Likewise.
52004         * misc/Makefile [$(build-bounded) = yes]
52005         ($(objpfx)tst-tsearch-bp): Likewise.
52006         * nptl/Makeconfig (bounded-thread-library): Remove variable.
52007         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
52008         Remove dependency.
52009         * string/Makefile (o-objects.ob): Remove variable.
52010         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
52011         (CFLAGS-.ob): Remove variable.
52012         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
52013         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
52014         both definitions of variable.
52015         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
52016         (ASFLAGS-.ob): Remove variable.
52017
52018 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
52019
52020         [BZ #13550]
52021         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
52022         Remove __BOUNDED_POINTERS__ from condition.
52023         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
52024         * string/bits/string2.h [!__NO_STRING_INLINES &&
52025         !__BOUNDED_POINTERS__]: Likewise.
52026         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
52027         Likewise.
52028         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
52029         Remove conditional code.
52030         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
52031         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
52032         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
52033         condition.
52034
52035         [BZ #13550]
52036         * csu/libc-start.c: Do not include <bp-sym.h>.
52037         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
52038         * elf/dl-open.c: Do not include <bp-sym.h>.
52039         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
52040         * math/fegetenv.c: Do not include <bp-sym.h>.
52041         (fegetenv): Do not use BP_SYM in versioned symbols.
52042         * nptl/sysdeps/pthread/bits/libc-lockP.h
52043         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
52044         <bp-sym.h>.
52045         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52046         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
52047         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52048         (__pthread_mutex_destroy): Likewise.
52049         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52050         (__pthread_mutex_lock): Likewise.
52051         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52052         (__pthread_mutex_trylock): Likewise.
52053         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52054         (__pthread_mutex_unlock): Likewise.
52055         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52056         (__pthread_mutexattr_init): Likewise.
52057         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52058         (__pthread_mutexattr_destroy): Likewise.
52059         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52060         (__pthread_mutexattr_settype): Likewise.
52061         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52062         (__pthread_rwlock_init): Likewise.
52063         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52064         (__pthread_rwlock_destroy): Likewise.
52065         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52066         (__pthread_rwlock_rdlock): Likewise.
52067         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52068         (__pthread_rwlock_tryrdlock): Likewise.
52069         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52070         (__pthread_rwlock_wrlock): Likewise.
52071         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52072         (__pthread_rwlock_trywrlock): Likewise.
52073         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52074         (__pthread_rwlock_unlock): Likewise.
52075         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52076         (__pthread_key_create): Likewise.
52077         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52078         (__pthread_setspecific): Likewise.
52079         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52080         (__pthread_getspecific): Likewise.
52081         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
52082         Likewise.
52083         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52084         (_pthread_cleanup_push_defer): Likewise.
52085         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52086         (_pthread_cleanup_pop_restore): Likewise.
52087         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52088         (pthread_setcancelstate): Likewise.
52089         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
52090         <bp-sym.h>.
52091         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
52092         (memchr): Do not use BP_SYM in weak_alias.
52093         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
52094         (fegetenv): Do not use BP_SYM in versioned symbols.
52095         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
52096         (fesetenv): Do not use BP_SYM in versioned symbols.
52097         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52098         (feupdateenv): Do not use BP_SYM in versioned symbols.
52099         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52100         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52101         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
52102         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
52103         (open64): Do not use BP_SYM in weak_alias.
52104         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
52105         (fegetenv): Do not use BP_SYM in versioned symbols.
52106         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
52107         (fesetenv): Do not use BP_SYM in versioned symbols.
52108         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52109         (feupdateenv): Do not use BP_SYM in versioned symbols.
52110         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
52111         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
52112         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
52113         (feraiseexcept): Do not use BP_SYM in versioned symbols.
52114         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52115         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52116         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
52117         <bp-sym.h>.
52118         (__libc_start_main): Do not use BP_SYM.
52119
52120 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52121
52122         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
52123         redundant return line.
52124         (norm): Likewise.
52125         (denorm): Likewise.
52126         (dbl_mp): Likewise.
52127         (sub_magnitudes): Likewise.
52128         (__add): Likewise.
52129         (__sub): Likewise.
52130         (__mul): Likewise.
52131         (__inv): Likewise.
52132         (__dvd): Likewise.
52133         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
52134         (norm): Likewise.
52135         (denorm): Likewise.
52136         (dbl_mp): Likewise.
52137         (sub_magnitudes): Likewise.
52138         (__add): Likewise.
52139         (__sub): Likewise.
52140         (__mul): Likewise.
52141         (__inv): Likewise.
52142         (__dvd): Likewise.
52143
52144         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
52145         instead of __mul.
52146         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
52147         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
52148         (cc32): Likewise.
52149
52150         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
52151         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
52152         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
52153         of __mul for squares.
52154         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
52155         function
52156         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
52157         Likewise.
52158         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
52159         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
52160
52161 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
52162
52163         [BZ #13550]
52164         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
52165         code.
52166         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
52167         prototype or function definition.  Rename ubp_* variables and
52168         parameters.  Remove argv definitions conditional on
52169         [__BOUNDED_POINTERS__].
52170         * debug/backtrace.c (__backtrace): Do not use __unbounded.
52171         * elf/dl-runtime.c (_dl_fixup): Likewise.
52172         * include/set-hooks.h (RUN_HOOK): Likewise.
52173         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
52174         definition.
52175         * string/strcpy.c (strcpy): Do not use __unbounded.
52176         * sysdeps/generic/frame.h (struct layout): Likewise.
52177         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
52178         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
52179         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
52180         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
52181         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
52182         (__backtrace): Likewise.
52183         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
52184         use __ptrvalue.
52185         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
52186         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
52187         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
52188         Likewise.
52189         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
52190         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
52191         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
52192         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52193         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
52194         Do not use __unbounded.
52195         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
52196         Rename __unboundedrlimits parameter to rlimits in prototype.
52197         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
52198         Do not use __unbounded.
52199         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
52200         not use __ptrvalue.
52201         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52202         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
52203         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52204         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
52205         __ptrvalue or __unbounded.
52206         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
52207         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
52208         use __unbounded.
52209         (__new_msgctl): Do not use __ptrvalue.
52210         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
52211         __unbounded.
52212         (__libc_msgrcv): Do not use __ptrvalue.
52213         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
52214         startup_info): Do not use __unbounded.
52215         (__libc_start_main): Likewise.  Rename ubp_* variables and
52216         parameters.  Remove argv definitions conditional on
52217         [__BOUNDED_POINTERS__].
52218         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
52219         __ptrvalue.
52220         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
52221         use __unbounded.
52222         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
52223         or __ptrvalue.
52224         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
52225         use __unbounded.
52226         (__new_shmctl): Do not use __ptrvalue.
52227         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
52228         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
52229         Likewise.
52230         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
52231         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
52232         (__libc_sigaction): Likewise.
52233         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
52234         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
52235         Likewise.
52236         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52237
52238 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
52239
52240         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
52241
52242         * string/mempcpy.c: Implement by calling memcpy.
52243
52244 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
52245
52246         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
52247
52248         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
52249         evaluation.
52250
52251         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
52252         values in the mantissa.
52253
52254         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
52255         minimize writes to Z.
52256         (sub_magnitudes): Simplify code a bit.
52257
52258 2013-02-12  Roland McGrath  <roland@hack.frob.com>
52259
52260         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
52261         from the message.  The linker prefixes all warnings with that already.
52262
52263 2013-02-12  Andreas Schwab  <schwab@suse.de>
52264
52265         [BZ #15078]
52266         * posix/regexec.c (extend_buffers): Add parameter min_len.
52267         (check_matching): Pass minimum needed length.
52268         (clean_state_log_if_needed): Likewise.
52269         (get_subexp): Likewise.
52270         * posix/Makefile (tests): Add bug-regex34.
52271         (bug-regex34-ENV): Define.
52272         * posix/bug-regex34.c: New file.
52273
52274         [BZ #11561]
52275         * posix/regcomp.c (parse_bracket_exp): When looking up collating
52276         elements compare against the byte sequence of it, not its name.
52277         * posix/Makefile (tests): Add bug-regex35.
52278         (bug-regex35-ENV): Define.
52279         * posix/bug-regex35.c: New file.
52280
52281 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52282
52283         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
52284         comment.
52285         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
52286         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
52287         (CHECK_EOL): Add undef.
52288
52289 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
52290
52291         * bits/stdlib-bsearch.h: New file.
52292         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
52293         * stdlib/stdlib.h: Likewise.
52294
52295 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52296
52297         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
52298         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
52299         declaration.
52300         * manual/search.texi (Array Search Function): Add missing const in
52301         lfind prototype.
52302         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
52303         declaration to use rlim_t.
52304         (Basic Scheduling Functions): Remove erroneous const from
52305         sched_getparam prototype.  Remove erroneous * from
52306         sched_get_priority_max and sched_get_priority_min prototypes.
52307         (Resource Usage): Fix summary @comment on vtimes to refer to
52308         sys/vtimes.h rather than vtimes.h.
52309         Add missing *s in vtimes prototype.
52310         (Limits on Resources): Fix ulimit prototype to return long int.
52311         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
52312         prototypes to use long int rather than double.
52313         (BSD Random): Fix initstate and setstate to use char *, not void *.
52314         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
52315         prototype to make second argument 'struct aiocb64 *const[]'.
52316         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
52317         (Status of AIO Operations): Remove erroneous const in aio_return and
52318         aio_return64 prototypes.
52319         (Synchronizing I/O): Fix sync prototype to return void.
52320         * manual/startup.texi (Suboptions): Remove an erroneous const in
52321         getsubopt prototype.
52322         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
52323         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
52324         use size_t rather than int.
52325         (Scanning All Users): Likewise for getpwent_r.
52326         (Setting Groups): Add missing const to setgroups prototype.
52327         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
52328         * manual/socket.texi (Host Names): Fix gethostbyaddr and
52329         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
52330         'const void *' rather than 'const char *'.
52331         (Host Address Functions): Likewise for inet_ntop.
52332         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
52333         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
52334         ssize_t for return value.
52335         (Sending Data): Likewise for send, sendto, sendmsg.
52336         (Socket Option Functions): Add a missing const in setsockopt prototype.
52337         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
52338         use wchar_t for the argument.
52339         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
52340         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
52341         take no arguments.
52342         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
52343         double/float/long double for second argument.
52344         Fix return types of significand, significandf, significandl.
52345         * manual/filesys.texi (Setting Permissions): Use mode_t for second
52346         argument in fchmod prototype.
52347         (File Owner): Use uid_t and gid_t in fchown prototype.
52348         (File Times): Add const to utimes, futimes, and lutimes prototypes.
52349         (Making Special Files): Use mode_t and dev_t in mknod prototype.
52350         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
52351         use 'const struct dirent **' as argument types to CMP function pointer
52352         argument.
52353         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
52354         (File Times): Fix summary magic @comment for struct utimbuf and utime
52355         to refer to utime.h, not time.h.
52356         * manual/string.texi (Argz Functions): Add missing const in
52357         argz_extract and argz_next prototypes.
52358         (Finding Tokens in a String): Likewise for basename.
52359         (String/Array Comparison): Fix typo in wcscasecmp prototype.
52360         (Copying and Concatenation): Fix typo in wmemmove prototype.
52361         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
52362         (Signal Stack): Remove erroneous const in sigstack prototype.
52363         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
52364         prototype.
52365         (Simple Calendar Time): Likewise for stime.
52366         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
52367         prototype.
52368         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
52369         say sys/sysctl.h instead.
52370         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
52371         and vsyslog prototypes.
52372
52373 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52374
52375         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
52376         Remove.
52377
52378 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52379
52380         * misc/sys/mman.h: Fix typo in mremap comment.
52381
52382 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52383
52384         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
52385         the '\0' terminator.
52386
52387 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52388
52389         [BZ #13550]
52390         * debug/segfault.c: Don't include <bp-checks.h>.
52391         * sysdeps/generic/bp-checks.h: Remove file.
52392         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
52393         (__GETDENTS): Don't use CHECK_N.
52394         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
52395         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
52396         (__getgroups): Don't use CHECK_N.
52397         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
52398         (setgroups): Don't use CHECK_N.
52399         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
52400         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
52401         (__libc_msgrcv): Don't use CHECK_N.
52402         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
52403         (__libc_msgsnd): Don't use CHECK_N.
52404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
52405         <bp-checks.h>.
52406         (__libc_pread): Don't use CHECK_N.
52407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
52408         include <bp-checks.h>.
52409         (__libc_pread64): Don't use CHECK_N.
52410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
52411         include <bp-checks.h>.
52412         (__libc_pwrite): Don't use CHECK_N.
52413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
52414         include <bp-checks.h>.
52415         (__libc_pwrite64): Don't use CHECK_N.
52416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
52417         <bp-checks.h>.
52418         (__libc_pread): Don't use CHECK_N.
52419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
52420         include <bp-checks.h>.
52421         (__libc_pread64): Don't use CHECK_N.
52422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
52423         include <bp-checks.h>.
52424         (__libc_pwrite): Don't use CHECK_N.
52425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
52426         include <bp-checks.h>.
52427         (__libc_pwrite64): Don't use CHECK_N.
52428         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
52429         (do_pread): Don't use CHECK_N.
52430         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
52431         (do_pread64): Don't use CHECK_N.
52432         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
52433         (do_pwrite): Don't use CHECK_N.
52434         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
52435         (do_pwrite64): Don't use CHECK_N.
52436         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
52437         (__libc_readv): Don't use CHECK_N.
52438         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
52439         (semop): Don't use CHECK_N.
52440         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
52441         <bp-checks.h>.
52442         (semtimedop): Don't use CHECK_N.
52443         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
52444         (__libc_pread): Don't use CHECK_N.
52445         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
52446         <bp-checks.h>.
52447         (__libc_pread64): Don't use CHECK_N.
52448         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
52449         <bp-checks.h>.
52450         (__libc_pwrite): Don't use CHECK_N.
52451         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
52452         <bp-checks.h>.
52453         (__libc_pwrite64): Don't use CHECK_N.
52454         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
52455         <bp-checks.h>.
52456         (__libc_msgrcv): Don't use CHECK_N.
52457         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
52458         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
52459         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
52460         (__libc_writev): Don't use CHECK_N.
52461
52462 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52463
52464         * string/strcpy.c: Removed unused variable.
52465
52466         * Makeconfig (+sysdep-includes): Define with := rather than =.
52467         Use an existing include/ subdir of each sysdeps dir before it.
52468
52469 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52470
52471         * nscd/connection.c (register_traced_file): Comment function.
52472         [HAVE_INOTIFY] (union __inev): Define.
52473         [HAVE_INOTIFY] (inotify_check_files): New function.
52474         [HAVE_INOTIFY] (clear_db_cache): Likewise.
52475         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
52476         clear_db_cache.
52477         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
52478
52479 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52480
52481         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
52482         loaded if not already and that a failure is permanent.
52483
52484 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52485
52486         [BZ #15006]
52487         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
52488         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
52489
52490 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52491
52492         [BZ #13550]
52493         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
52494         (CHECK_1_NULL_OK): Likewise.
52495         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
52496         (__fxstat): Do not use CHECK_1.
52497         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
52498         <bp-checks.h>.
52499         (___fxstat64): Do not use CHECK_1.
52500         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
52501         <bp-checks.h>.
52502         (__fxstatat): Do not use CHECK_1.
52503         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
52504         <bp-checks.h>.
52505         (__fxstatat64): Do not use CHECK_1.
52506         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
52507         <bp-checks.h>.
52508         (__fxstat): Do not use CHECK_1.
52509         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
52510         <bp-checks.h>.
52511         (__fxstatat): Do not use CHECK_1.
52512         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
52513         <bp-checks.h>.
52514         (__getresgid): Do not use CHECK_1.
52515         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
52516         <bp-checks.h>.
52517         (__getresuid): Do not use CHECK_1.
52518         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
52519         <bp-checks.h>.
52520         (__lxstat): Do not use CHECK_1.
52521         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
52522         <bp-checks.h>.
52523         (__old_msgctl): Do not use CHECK_1.
52524         (__new_msgctl): Likewise.
52525         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
52526         <bp-checks.h>.
52527         (__new_setrlimit): Do not use CHECK_1.
52528         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
52529         <bp-checks.h>.
52530         (__old_shmctl): Do not use CHECK_1.
52531         (__new_shmctl): Likewise.
52532         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
52533         <bp-checks.h>.
52534         (__xstat): Do not use CHECK_1.
52535         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
52536         (__lxstat): Do not use CHECK_1.
52537         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
52538         <bp-checks.h>.
52539         (___lxstat64): Do not use CHECK_1.
52540         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
52541         (__old_msgctl): Do not use CHECK_1.
52542         (__new_msgctl): Likewise.
52543         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
52544         <bp-checks.h>.
52545         (__gettimeofday): Do not use CHECK_1.
52546         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
52547         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
52548         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
52549         <bp-checks.h>.
52550         (__gettimeofday): Do not use CHECK_1.
52551         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
52552         (__old_shmctl): Do not use CHECK_1_NULL_OK.
52553         (__new_shmctl): Do not use CHECK_1.
52554         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
52555         <bp-checks.h>.
52556         (do_sigtimedwait): Do not use CHECK_1.
52557         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
52558         <bp-checks.h>.
52559         (do_sigwaitinfo): Do not use CHECK_1.
52560         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
52561         <bp-checks.h>.
52562         (msgctl): Do not use CHECK_1.
52563         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
52564         <bp-checks.h>.
52565         (shmctl): Do not use CHECK_1.
52566         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
52567         (ustat): Do not use CHECK_1.
52568         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
52569         <bp-checks.h>.
52570         (__fxstat): Do not use CHECK_1.
52571         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
52572         <bp-checks.h>.
52573         (__fxstatat): Do not use CHECK_1.
52574         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
52575         <bp-checks.h>.
52576         (__lxstat): Do not use CHECK_1.
52577         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
52578         <bp-checks.h>.
52579         (__xstat): Do not use CHECK_1.
52580         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
52581         (__xstat): Do not use CHECK_1.
52582         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
52583         (___xstat64): Do not use CHECK_1.
52584
52585         [BZ #13550]
52586         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
52587         definitions.
52588         (CHECK_BOUNDS_HIGH): Likewise.
52589         * string/strcpy.c: Do not include <bp-checks.h>.
52590         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
52591
52592 2013-02-07  Roland McGrath  <roland@hack.frob.com>
52593
52594         * nscd/nscd-client.h (__nscd_drop_map_ref):
52595         Add __attribute__ ((unused)).
52596         * nis/nss-nisplus.h (niserr2nss): Likewise.
52597
52598         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
52599         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
52600
52601         * csu/libc-tls.c (init_static_tls, init_slotinfo):
52602         Remove inline keyword.
52603         * include/rounding-mode.h (round_away): Likewise.
52604         * libio/wfileops.c (adjust_wide_data): Likewise.
52605         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
52606         (__m128i_strloadu_tolower): Likewise.
52607         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
52608         (__m128i_strloadu_tolower): Likewise.
52609         * time/mktime.c (ydhms_diff): Likewise.
52610         * locale/elem-hash.h (elem_hash): Likewise.
52611         * locale/setlocale.c (setdata): Likewise.
52612         * posix/regex_internal.h (re_string_char_size_at): Likewise.
52613         (re_string_wchar_at): Likewise.
52614         (bitset_not, bitset_merge, bitset_mask): Likewise.
52615         [!(__GNUC__ > 3)] (inline): Remove macro.
52616         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
52617         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
52618         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
52619         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
52620         * string/memcmp.c (memcmp_bytes): Likewise.
52621         * locale/programs/locarchive.c (compute_hashval): Likewise.
52622         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52623         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52624         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52625         * nss/getent.c (print_rpc, print_protocols): Likewise.
52626         (print_passwd, print_group, print_aliases): Likewise.
52627         * nis/nss-nisplus.h (niserr2nss): Likewise.
52628         * nscd/connections.c (restart_p): Likewise.
52629         Change return type to bool.
52630
52631 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52632
52633         * Makeconfig (all-Depend-files): Add existing
52634         $(sorted-subdirs:=/Depend) files.
52635         (all-subdirs): Remove nss.
52636         * sysdeps/unix/inet/Subdirs: Add it here instead.
52637         * hesiod/Depend: New file.
52638
52639         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52640         instead of calling alloca.
52641
52642         * io/lseek.c (__lseek): Rename to __libc_lseek.
52643         Define __lseek as an alias.
52644
52645         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52646
52647 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52648
52649         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52650         else clause and remove check for non-standard endianness.
52651
52652 2013-02-04  David S. Miller  <davem@davemloft.net>
52653
52654         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52655
52656 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52657
52658         [BZ #13550]
52659         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52660         (__ubp_memchr): Remove prototype.
52661         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52662         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52663         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52664         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52665         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52666         Remove alias.
52667         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52668         (__ubp_memchr): Likewise.
52669         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52670         (__ubp_memchr): Likewise.
52671         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52672         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52673         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52674         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52675         CHECK_STRING.
52676         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52677         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52678         (__getcwd): Do not use CHECK_STRING.
52679         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52680         <bp-checks.h>.
52681         (__real_chown): Do not use CHECK_STRING.
52682         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52683         <bp-checks.h>.
52684         (fchownat): Do not use CHECK_STRING.
52685         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52686         CHECK_STRING.
52687         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52688         <bp-checks.h>.
52689         (__lchown): Do not use CHECK_STRING.
52690         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52691         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52692         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52693         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52695         include <bp-checks.h>.
52696         (truncate64): Do not use CHECK_STRING.
52697         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52698         <bp-checks.h>.
52699         (__real_chown): Do not use CHECK_STRING.
52700         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52701         <bp-checks.h>.
52702         (__lchown): Do not use CHECK_STRING.
52703         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52704         <bp-checks.h>.
52705         (__chown): Do not use CHECK_STRING.
52706         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52707         <bp-checks.h>.
52708         (truncate64): Do not use CHECK_STRING.
52709         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52710         Likewise.
52711         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52712         (__xmknod): Do not use CHECK_STRING.
52713         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52714         <bp-checks.h>.
52715         (__xmknodat): Do not use CHECK_STRING.
52716         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52717         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52718
52719 2013-02-04  Andreas Schwab  <schwab@suse.de>
52720
52721         [BZ #14142]
52722         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52723         * include/netdb.h: Likewise for h_errno.
52724         * elf/tst-stackguard1.c: Include <tls.h>.
52725
52726 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52727
52728         * elf/link.h (struct link_map): Extend the l_addr comment.
52729         * include/link.h (struct link_map): Likewise.
52730
52731 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52732
52733         [BZ #13550]
52734         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52735         (BOUNDED_1): Remove macro.
52736         * debug/backtrace.c: Don't include <bp-checks.h>.
52737         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52738         (__backtrace): Likewise.
52739         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52740         <bp-checks.h>.
52741         (__backtrace): Don't use BOUNDED_1.
52742         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52743         <bp-checks.h>.
52744         (__backtrace): Don't use BOUNDED_1.
52745         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52746         (__backtrace): Don't use BOUNDED_1.
52747         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52748         (shmat): Don't use BOUNDED_N.
52749
52750 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52751
52752         [BZ #13550]
52753         * sysdeps/generic/bp-start.h: Remove file.
52754         * csu/libc-start.c: Don't include <bp-start.h>.
52755         (LIBC_START_MAIN): Set up __environ directly instead of using
52756         INIT_ARGV_and_ENVIRON.
52757         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52758         <bp-start.h>.
52759
52760         [BZ #13550]
52761         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52762         definitions.
52763         (CHECK_FCNTL): Likewise.
52764         (CHECK_N_PAGES): Likewise.
52765
52766         [BZ #13550]
52767         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52768         definitions.
52769         (CHECK_SIGSET_NULL_OK): Likewise.
52770         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52771         <bp-checks.h>.
52772         (sigpending): Don't use CHECK_SIGSET.
52773         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52774         <bp-checks.h>.
52775         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52776         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52777         <bp-checks.h>.
52778         (do_sigsuspend): Don't use CHECK_SIGSET.
52779         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52780         use CHECK_SIGSET.
52781         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52782         (do_sigwait): Don't use CHECK_SIGSET.
52783         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52784         use CHECK_SIGSET.
52785         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52786         include <bp-checks.h>.
52787         (sigpending): Don't use CHECK_SIGSET.
52788         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52789         include <bp-checks.h>.
52790         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52791         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52792         <bp-checks.h>.
52793         (sigpending): Don't use CHECK_SIGSET.
52794         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52795         <bp-checks.h>.
52796         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52797
52798         [BZ #13550]
52799         * sysdeps/generic/bp-semctl.h: Remove file.
52800         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52801         <bp-checks.h> and <bp-semctl.h>.
52802         (__old_semctl): Don't use CHECK_SEMCTL.
52803         (__new_semctl): Likewise.
52804         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52805         and <bp-semctl.h>.
52806         (__old_semctl): Don't use CHECK_SEMCTL.
52807         (__new_semctl): Likewise.
52808         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52809         <bp-checks.h> and <bp-semctl.h>.
52810         (__old_semctl): Don't use CHECK_SEMCTL.
52811         (__new_semctl): Likewise.
52812         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52813         <bp-checks.h> and <bp-semctl.h>.
52814         (semctl): Don't use CHECK_SEMCTL.
52815
52816         [BZ #13550]
52817         * Makerules (elide-bp-thunks): Remove variable.
52818         (elide-routines.oS): Don't use $(elide-bp-thunks).
52819         (elide-routines.os): Likewise.
52820         (elide-routines.o): Likewise.
52821         (elide-routines.op): Likewise.
52822         (elide-routines.og): Likewise.
52823         (objects): Don't use $(bp-thunks).
52824         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52825         include.
52826         (common-generated): Do not add s-proto-bp.d.
52827         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52828         (int): Likewise.
52829         (typ): Likewise.
52830         Do not generate makefile rules for bounded-pointer thunks.
52831         * sysdeps/generic/bp-thunks.h: Remove file.
52832         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52833         * sysdeps/unix/s-proto-bp.S: Likewise.
52834
52835         [BZ #15062]
52836         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52837         parts of result separately when argument is not close to line from
52838         -i to i and one part of argument is small.
52839         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52840         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52841         * math/libm-test.inc (cacos_test): Add more tests.
52842         (casin_test): Likewise.
52843         (casinh_test): Likewise.
52844         * sysdeps/i386/fpu/libm-test-ulps: Update.
52845         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52846
52847 2013-01-31  David S. Miller  <davem@davemloft.net>
52848
52849         * po/de.po: Update from translation team.
52850
52851 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52852
52853         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52854
52855 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52856
52857         * configure.in (_AC_PROG_CC_C89): New definition.
52858         * configure: Regenerate.
52859
52860         * configure.in (AC_PROG_CPP): New definition.
52861         * configure: Regenerate.
52862
52863 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52864
52865         * debug/tst-backtrace.h: New file.
52866         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52867         (ret): Remove variable.
52868         (x): Likewise.
52869         (FAIL): Remove macro.
52870         (NO_INLINE): Likewise.
52871         (fn1): Use match function instead of strstr.
52872         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52873         (ret): Remove variable.
52874         (x): Likewise.
52875         (FAIL): Remove macro.
52876         (NO_INLINE): Likewise.
52877         (fn): Use match function instead of strstr.
52878         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52879         (ret): Remove variable.
52880         (x): Likewise.
52881         (FAIL): Remove macro.
52882         (NO_INLINE): Likewise.
52883         (handle_signal): Use match function instead of strstr.
52884         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52885         (ret): Remove variable.
52886         (x): Likewise.
52887         (FAIL): Remove macro.
52888         (NO_INLINE): Likewise.
52889         (handle_signal): Use match function instead of strstr.
52890
52891 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52892
52893         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52894
52895 2013-01-23  David S. Miller  <davem@davemloft.net>
52896
52897         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52898         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52899         argument of CAS if possible.
52900         * sysdeps/sparc/sparc64/bits/atomic.h
52901         (__arch_compare_and_exchange_val_32_acq): Likewise.
52902         (__arch_compare_and_exchange_val_64_acq): Likewise.
52903
52904 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52905
52906         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52907         * sysdeps/posix/ulimit.c: ... this.
52908         Include <limits.h>.
52909         * sysdeps/unix/bsd/ulimit.c: Remove file.
52910
52911 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52912
52913         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52914         (LDFLAGS-tst-array5): Likewise.
52915
52916 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52917
52918         [BZ #15036]
52919         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52920         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52921         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52922         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52923
52924 2013-01-21  David S. Miller  <davem@davemloft.net>
52925
52926         * sysdeps/sparc/backtrace.c: New file.
52927         * sysdeps/sparc/sparc32/backtrace.h: New file.
52928         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52929         * sysdeps/sparc/sparc64/backtrace.h: New file.
52930         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52931         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52932         -funwind-tables.
52933
52934 2013-01-21  Andreas Schwab  <schwab@suse.de>
52935
52936         [BZ #15020]
52937         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52938         closed its stdout.
52939
52940 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52941
52942         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52943         "mpa2.h".
52944         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52945
52946 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52947             Mark Mitchell  <mark@codesourcery.com>
52948             Tom de Vries  <tom@codesourcery.com>
52949             Paul Pluzhnikov  <ppluzhnikov@google.com>
52950
52951         * debug/tst-backtrace2.c: New file.
52952         * debug/tst-backtrace3.c: Likewise.
52953         * debug/tst-backtrace4.c: Likewise.
52954         * debug/tst-backtrace5.c: Likewise.
52955         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52956         (CFLAGS-tst-backtrace3.c): Likewise.
52957         (CFLAGS-tst-backtrace4.c): Likewise.
52958         (CFLAGS-tst-backtrace5.c): Likewise.
52959         (LDFLAGS-tst-backtrace2): Likewise.
52960         (LDFLAGS-tst-backtrace3): Likewise.
52961         (LDFLAGS-tst-backtrace4): Likewise.
52962         (LDFLAGS-tst-backtrace5): Likewise.
52963         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52964         tst-backtrace4 and tst-backtrace5.
52965
52966 2013-01-18  Anton Blanchard  <anton@samba.org>
52967             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52968
52969         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52970         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52971         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52972         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52974         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52975         "+r" and remove output regs list as redundant.  Add explicit inline
52976         asm to specify register of return val to work around compiler codegen
52977         bug.  Remove (int) cast on return value.  Add return type parameter to
52978         use in macro so that this macro does not truncate return value for
52979         64-bit values.
52980         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52981         pass to INTERNAL_VSYSCALL_NCS.
52982         (INLINE_VSYSCALL): Add 'long int' as return type to
52983         INTERNAL_VSYSCALL_NCS macro invocation.
52984         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52985         INTERNAL_VSYSCALL_NCS macro invocation.
52986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52987
52988 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52989
52990         [BZ #14496]
52991         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52992         Fix application of SIMD FP exception mask.
52993
52994         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52995         mp_no from a power of two.
52996         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52997         __mpexp_twomm1.  Use __pow_mp.
52998
52999         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
53000         multiplication.
53001
53002 2013-01-17  David S. Miller  <davem@davemloft.net>
53003
53004         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53005
53006 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
53007
53008         [BZ #15023]
53009         * include/complex.h: Condition contents on [!_COMPLEX_H].
53010         (__kernel_casinhf): New prototype.
53011         (__kernel_casinh): Likewise.
53012         (__kernel_casinhl): Likewise.
53013         * math/Makefile (libm_calls): Add k_casinh.
53014         * math/k_casinh.c: New file.
53015         * math/k_casinhf.c: Likewise.
53016         * math/k_casinhl.c: Likewise.
53017         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
53018         finite nonzero arguments.
53019         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
53020         finite nonzero arguments.
53021         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
53022         finite nonzero arguments.
53023         * math/s_casinh.c: Do not include <float.h>.
53024         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
53025         * math/s_casinhf.c: Do not include <float.h>.
53026         (__casinhf): Move code for finite nonzero arguments to
53027         k_casinhf.c.
53028         * math/s_casinhl.c: Do not include <float.h>.
53029         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
53030         redefine.
53031         (__casinhl): Move code for finite nonzero arguments to
53032         k_casinhl.c.
53033         * math/libm-test.inc (cacos_test): Add more tests.
53034         * sysdeps/i386/fpu/libm-test-ulps: Update.
53035         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53036
53037 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
53038
53039         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
53040         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
53041         [!HAVE_MREMAP]: Remove [defined linux] case.
53042         * malloc/arena.c: Do not include <malloc-sysdep.h>.
53043
53044 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
53045
53046         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
53047
53048 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
53049
53050         * elf/elf.h (R_386_SIZE32): New relocation.
53051         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
53052         R_386_SIZE32.
53053         (elf_machine_rela): Likewise.
53054         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
53055         R_X86_64_SIZE64 and R_X86_64_SIZE32.
53056
53057 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
53058
53059         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
53060         (FP_FAST_FMA): Do not define.
53061         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
53062         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
53063         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
53064         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
53065         !_SOFT_FLOAT]: Likewise.
53066         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
53067         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
53068         value.
53069         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
53070         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
53071         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
53072         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
53073         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
53074         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
53075         file.
53076
53077 2013-01-16  Andreas Schwab  <schwab@suse.de>
53078
53079         [BZ #14327]
53080         * include/stdlib.h (__mktemp): Add declaration.
53081         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
53082         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
53083
53084 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
53085
53086         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
53087         definitions.
53088         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53089         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
53090         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
53091         definitions here.
53092         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
53093         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
53094         definitions.
53095         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
53096         and ONE.
53097         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
53098         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
53099         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
53100         definitions.
53101         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
53102         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
53103         definitions.
53104         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53105
53106         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
53107
53108 2013-01-15  David S. Miller  <davem@davemloft.net>
53109
53110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53111         trunc{,f} to libm-sysdep_routes.
53112         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
53114         file.
53115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
53116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
53117         file.
53118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
53119         file.
53120         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
53121         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
53122         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
53123         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
53124         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
53125         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
53126         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
53127         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
53128
53129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53130         nearbyint{,f} to libm-sysdep_routes.
53131         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
53133         New file.
53134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
53135         file.
53136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
53137         New file.
53138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
53139         file.
53140         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
53141         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
53142         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
53143         file.
53144         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
53145         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
53146         file.
53147         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
53148         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
53149         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
53150
53151         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
53152         libc_feholdexcept and libc_fesetenv.
53153
53154 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
53155
53156         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
53157
53158 2013-01-14  David S. Miller  <davem@davemloft.net>
53159
53160         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
53161         (SPARC_ASM_VIS2_IFUNC): Likewise.
53162         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
53163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
53164         use of 'siam' instruction.
53165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
53166         Likewise.
53167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
53168         Likewise.
53169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
53170         Likewise.
53171         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
53172         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
53173         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
53174         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
53175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
53176         file.
53177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
53178         file.
53179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
53180         file.
53181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
53182         file.
53183         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
53184         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
53185         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
53186         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
53187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
53188         new VIS2 routines.
53189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
53190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
53191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
53192         Likewise.
53193         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
53194         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
53195         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
53196         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
53197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
53198         routines to libm-sysdep_routines.
53199         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53200
53201         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53202         fdim/fdimf to libm-sysdep_routines.
53203         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
53204         file.
53205         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
53206         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
53207         file.
53208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
53209         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
53210         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
53211         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
53212         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
53213         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
53214         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
53215
53216 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
53217
53218         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
53219         to optimize copies.
53220
53221         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
53222         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53223         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53224
53225         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
53226         local variable MPTWO.
53227         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
53228         Likewise.
53229
53230 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53231
53232         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
53233         GLOB_NOESCAPE.
53234
53235 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53236
53237         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
53238
53239 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53240
53241         * manual/pattern.texi (glob_t): Document gl_flags.
53242         (glob64_t): Likewise.
53243
53244 2013-01-11  David S. Miller  <davem@davemloft.net>
53245
53246         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
53247         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
53248         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
53249         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
53250         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
53251         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
53252         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
53253         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
53254         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
53255         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
53256         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
53257         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
53258         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
53259
53260         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53261         sparc V9 rather than using V8 code.
53262         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53263         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53264
53265         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
53266         Move to...
53267         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
53268         Here.
53269
53270 2013-01-11  Roland McGrath  <roland@hack.frob.com>
53271
53272         [BZ #14941]
53273         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
53274         not in the main loop.
53275         * configure: Regenerated.
53276
53277 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
53278
53279         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
53280         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
53281         to just #else.
53282         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
53283         [!__GLIBC_HAVE_LONG_LONG] case.
53284         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
53285         condition to just #else.
53286         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
53287         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
53288         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
53289         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
53290         unconditional.
53291         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
53292         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53293         #elif condition to just #else.
53294         * sysdeps/unix/sysv/linux/sys/sysmacros.h
53295         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
53296         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53297         #elif condition to just #else.
53298
53299 2013-01-11  Steve Ellcey  <sellcey@mips.com>
53300
53301         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
53302         (EF_MIPS_ARCH_64): Fix value.
53303         (EF_MIPS_ARCH_32R2): New.
53304         (EF_MIPS_ARCH_64R2): New.
53305
53306 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
53307
53308         * Makeconfig (+link-pie-before-libc): New.
53309         (+link-pie-after-libc): Likewise.
53310         (+link-pie-tests): Likewise.
53311         (+link-pie): Rewritten.
53312         (link-before-libc): Remove $(config-LDFLAGS).
53313         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
53314         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
53315         (config-LDFLAGS): Renamed to ...
53316         (rtld-LDFLAGS): This.
53317         (rtld-tests-LDFLAGS): New macro.
53318         (link-libc-rpath-link): Likewise.
53319         (link-libc-tests-rpath-link): Likewise.
53320         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
53321         (link-libc): Prepand $(link-libc-rpath-link).
53322         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
53323         (test-program-prefix): New macro.
53324         (test-via-rtld-prefix): Likewise.
53325         (test-program-cmd): Likewise.
53326         (host-test-program-cmd): Likewise.
53327         * Makefile ($(common-objpfx)testrun.sh): Replace
53328         $(run-program-prefix) with $(test-program-prefix).
53329         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
53330         $(rtld-LDFLAGS).
53331         ($(common-objpfx)shlib.lds): Likewise.
53332         (build-module-helper): Likewise.
53333         ($(common-objpfx)format.lds): Likewise.
53334         * Rules (binaries-pie-tests): New.
53335         (binaries-pie-notests): Likewise.
53336         (binaries-pie): Rewritten.
53337         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
53338         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
53339         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
53340         (make-test-out): Replace $(host-built-program-cmd) with
53341         $(host-test-program-cmd).
53342         * config.make.in (build-hardcoded-path-in-tests): New variable.
53343         * configure.in (--enable-hardcoded-path-in-tests): New configure
53344         option.
53345         (hardcoded_path_in_tests): New AC_SUBST.
53346         * configure: Regenerated.
53347         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
53348         $(built-program-cmd) with $(test-program-cmd).
53349         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
53350         (test_program_cmd): This.
53351         * elf/Makefile ($(objpfx)order.out): Run test with
53352         $(test-program-prefix).
53353         ($(objpfx)order2.out): Likewise.
53354         ($(objpfx)tst-initorder.out): Likewise.
53355         ($(objpfx)tst-initorder2.out): Likewise.
53356         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
53357         $(test-program-cmd).
53358         ($(objpfx)tst-array1-static.out): Likewise.
53359         ($(objpfx)tst-array2.out): Likewise.
53360         ($(objpfx)tst-array3.out): Likewise.
53361         ($(objpfx)tst-array4.out): Likewise.
53362         ($(objpfx)tst-array5.out): Likewise.
53363         ($(objpfx)tst-array5-static.out): Likewise.
53364         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
53365         $(test-program-cmd).
53366         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
53367         $(run-program-prefix) with $(test-program-prefix).
53368         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
53369         (test_program_prefix): This.
53370         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
53371         $(run-program-prefix) with $(test-program-prefix).
53372         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
53373         (test_program_prefix): This.
53374         * iconvdata/tst-tables.sh: Likewise.
53375         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
53376         $(run-program-prefix) with $(test-program-prefix).
53377         ($(objpfx)tst-translit.out): Likewise.
53378         ($(objpfx)tst-gettext2.out): Likewise.
53379         ($(objpfx)tst-gettext4.out): Likewise.
53380         ($(objpfx)tst-gettext6.out): Likewise.
53381         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
53382         (test_program_prefix): This.
53383         * intl/tst-gettext2.sh: Likewise.
53384         * intl/tst-gettext4.sh  Likewise.
53385         * intl/tst-gettext6.sh: Likewise.
53386         * intl/tst-translit.sh: Likewise.
53387         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
53388         with $(test-program-cmd).
53389         * libio/Makefile ($(objpfx)test-freopen.out): Replace
53390         $(run-program-prefix) with $(test-program-prefix).
53391         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
53392         (test_program_prefix): This.
53393         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
53394         $(run-program-prefix) with $(test-program-prefix).
53395         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
53396         (test_program_prefix): This.
53397         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
53398         * posix/Makefile ($(objpfx)globtest.out): Replace
53399         $(run-via-rtld-prefix) and $(test-wrapper) with
53400         $(test-program-prefix) and $(test-via-rtld-prefix).
53401         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
53402         $(test-program-prefix).
53403         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
53404         $(host-test-program-cmd).
53405         (tst-spawn-ARGS): Likewise.
53406         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
53407         $(test-program-prefix).
53408         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
53409         (test_via_rtld_prefix): This.
53410         (test_wrapper): Renamed to ...
53411         (test_program_prefix): This.
53412         (run_program_prefix): Replaced by test_program_prefix.
53413         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
53414         (test_program_prefix): This.
53415         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
53416         with $(host-test-program-cmd).
53417         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
53418         $(run-program-prefix) with $(test-program-prefix).
53419         ($(objpfx)tst-printf.out): Likewise.
53420         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
53421         $(test-program-cmd).
53422         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
53423         (test_program_prefix): This.
53424         * stdio-common/tst-unbputc.sh: Likewise.
53425         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
53426         $(run-program-prefix) with $(test-program-prefix).
53427         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
53428         (test_program_prefix): This.
53429         * string/Makefile ($(objpfx)tst-svc.out):  Replace
53430         $(built-program-cmd) with $(test-program-cmd).
53431
53432 2013-01-11  Andreas Jaeger  <aj@suse.de>
53433
53434         [BZ #15003]
53435         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
53436         value. Sync with Linux 3.7.
53437
53438 2013-01-10  David S. Miller  <davem@davemloft.net>
53439
53440         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
53441         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53442         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53443
53444 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53445
53446         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
53447         never set.
53448         * configure: Regenerated.
53449
53450 2013-01-10  David S. Miller  <davem@davemloft.net>
53451
53452         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53453         sparc V9 rather than using V8 code.
53454         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53455         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53456
53457 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53458
53459         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
53460         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
53461         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
53462         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
53463         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
53464         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
53465         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
53466         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
53467         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
53468         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
53469         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
53470         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
53471         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
53472         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
53473         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
53474         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
53475         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
53476         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
53477         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
53478         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
53479         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
53480         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
53481         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
53482         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
53483         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
53484         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
53485         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
53486
53487 2013-01-10  David S. Miller  <davem@davemloft.net>
53488
53489         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53490
53491 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53492
53493         * posix/Makefile (tests-static): New variable.
53494         (tests): Add $(tests-static).
53495         (tst-exec-static-ARGS): New variable.
53496         (tst-spawn-static-ARGS): Likewise.
53497         * posix/tst-exec-static.c: New file.
53498         * posix/tst-spawn-static.c: Likewise.
53499         * posix/tst-exec.c: Support run directly.
53500         * posix/tst-spawn.c: Likewise.
53501
53502 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
53503
53504         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
53505         long.
53506         * math/bits/mathcalls.h (llrint): Likewise.
53507         (llround): Likewise.
53508         * stdlib/stdlib.h (struct drand48_data): Likewise.
53509         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
53510         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
53511         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
53512         Likewise.
53513         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
53514         Likewise.
53515         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
53516         (elf_greg_t): Likewise.
53517         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
53518         (__jmp_buf): Likewise.
53519         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
53520         definitions.
53521         (llrint): Likewise, for all definitions.
53522         (llrintl): Likewise.
53523
53524         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
53525         Remove [__GNUC__] condition.
53526         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
53527         condition to just [__USE_ISOC99].
53528         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
53529
53530 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53531
53532         [BZ #14200]
53533         * sysdeps/unix/sysv/linux/x86/bits/environments.h
53534         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
53535         defined.
53536         (_POSIX_V6_ILP32_OFF32): Likewise.
53537         (_XBS5_ILP32_OFF32): Likewise.
53538         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
53539         (__ILP32_OFFBIG_LDFLAGS): Likewise.
53540
53541 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53542
53543         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
53544
53545         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
53546         doubles __mpexp_twomm1.  Adjust usage.
53547         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
53548         Remove.
53549
53550 2013-01-10  Andreas Schwab  <schwab@suse.de>
53551
53552         [BZ #14964]
53553         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
53554         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
53555
53556 2013-01-09  David S. Miller  <davem@davemloft.net>
53557
53558         [BZ #15003]
53559         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
53560         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
53561         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
53562         (TCP_FASTOPEN): Define.
53563         (tcp_repair_opt): New structure.
53564         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
53565         enum values.
53566         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
53567         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
53568         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
53569         (tcp_cookie_transactions): New structure.
53570
53571 2013-01-09  Anton Blanchard  <anton@samba.org>
53572
53573         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
53574         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
53575         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
53576         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
53577
53578 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
53579
53580         * include/features.h (__USE_ANSI): Remove.
53581
53582 2013-01-09  Roland McGrath  <roland@hack.frob.com>
53583
53584         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
53585
53586         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
53587
53588 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
53589
53590         * sysdeps/s390/fpu/libm-test-ulps: Update.
53591
53592         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53593
53594         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
53595         (__acr): Likewise.
53596         (__cpy): Likewise.
53597         (norm): Likewise.
53598         (denorm): Likewise.
53599         (__mp_dbl): Likewise.
53600         (__dbl_mp): Likewise.
53601         (add_magnitudes): Likewise.
53602         (sub_magnitudes): Likewise.
53603         (__add): Likewise.
53604         (__sub): Likewise.
53605         (__mul): Likewise.
53606         (__inv): Likewise.
53607         (__dvd): Likewise.
53608         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
53609         (__acr): Likewise.
53610         (__cpy): Likewise.
53611         (norm): Likewise.
53612         (denorm): Likewise.
53613         (__mp_dbl): Likewise.
53614         (__dbl_mp): Likewise.
53615         (add_magnitudes): Likewise.
53616         (sub_magnitudes): Likewise.
53617         (__add): Likewise.
53618         (__sub): Likewise.
53619         (__mul): Likewise.
53620         (__inv): Likewise.
53621         (__dvd): Likewise.
53622         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
53623         (__acr): Likewise.
53624         (__cpy): Likewise.
53625         (norm): Likewise.
53626         (denorm): Likewise.
53627         (__mp_dbl): Likewise.
53628         (__dbl_mp): Likewise.
53629         (add_magnitudes): Likewise.
53630         (sub_magnitudes): Likewise.
53631         (__add): Likewise.
53632         (__sub): Likewise.
53633         (__mul): Likewise.
53634         (__inv): Likewise.
53635         (__dvd): Likewise.
53636
53637 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53638
53639         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53640         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53641         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53642         2 && __USE_EXTERN_INLINES]: Likewise.
53643
53644 2013-01-08  Andreas Jaeger  <aj@suse.de>
53645
53646         [BZ# 14985]
53647         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53648         Remove.
53649         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53650         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53651
53652 2013-01-07  Anton Blanchard  <anton@samba.org>
53653
53654         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53655         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53656         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53657         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53658         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53659         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53660         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53661         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53662         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53663         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53664         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53665         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53666         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53667         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53668         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53669         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53670         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53671         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53672         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53673         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53674         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53675         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53676         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53677         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53678         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53679         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53680         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53681         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53682         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53683         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53684         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53685         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53686         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53687         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53688         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53689         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53690         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53691         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53692         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53693         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53694         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53695         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53696         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53697
53698 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53699
53700         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53701         (__MALLOC_PMT): Likewise.
53702         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53703         [__GNUC__], only on [_LIBC].
53704         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53705         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53706         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53707         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53708         forward declaration.
53709         (realloc_hook_ini): Likewise.
53710         (memalign_hook_ini): Likewise.
53711         (__libc_memalign): Do not use __MALLOC_PMT in variable
53712         declaration.
53713         (__libc_valloc): Likewise.
53714         (__libc_pvalloc): Likewise.
53715         (__libc_calloc): Likewise.
53716         (__posix_memalign): Likewise.
53717
53718         [BZ #14996]
53719         * math/s_casinh.c: Include <float.h>.
53720         (__casinh): Do not do computation with squaring and square root
53721         for large arguments.
53722         * math/s_casinhf.c: Include <float.h>.
53723         (__casinhf): Do not do computation with squaring and square root
53724         for large arguments.
53725         * math/s_casinhl.c: Include <float.h>.
53726         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53727         (__casinhl): Do not do computation with squaring and square root
53728         for large arguments.
53729         * math/libm-test.inc (casin_test): Add more tests.
53730         (casinh_test): Likewise.
53731         * sysdeps/i386/fpu/libm-test-ulps: Update.
53732         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53733
53734 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53735
53736         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53737         (__x86_64_raw_data_cache_size): Likewise.
53738         (__x86_64_data_cache_size_half): Likewise.
53739         (__x86_64_raw_data_cache_size_half): Likewise.
53740         (__x86_64_shared_cache_size): Likewise.
53741         (__x86_64_raw_shared_cache_size): Likewise.
53742         (__x86_64_shared_cache_size_half): Likewise.
53743         (__x86_64_raw_shared_cache_size_half): Likewise.
53744         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53745         to ...
53746         (__x86_data_cache_size): This.
53747         (__x86_64_raw_data_cache_size): Renamed to ...
53748         (__x86_raw_data_cache_size): This.
53749         (__x86_64_data_cache_size_half): Renamed to ...
53750         (__x86_data_cache_size_half): This.
53751         (__x86_64_raw_data_cache_size_half): Renamed to ...
53752         (__x86_raw_data_cache_size_half): This.
53753         (__x86_64_shared_cache_size): Renamed to ...
53754         (__x86_shared_cache_size): This.
53755         (__x86_64_raw_shared_cache_size): Renamed to ...
53756         (__x86_raw_shared_cache_size): This.
53757         (__x86_64_shared_cache_size_half): Renamed to ...
53758         (__x86_shared_cache_size_half): This.
53759         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53760         (__x86_raw_shared_cache_size_half): This.
53761         * sysdeps/x86_64/memcpy.S: Updated.
53762         * sysdeps/x86_64/memset.S: Likewise.
53763         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53764         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53765         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53766
53767 2013-01-04  David S. Miller  <davem@davemloft.net>
53768
53769         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53770
53771 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53772
53773         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53774         1 to avoid redefinition warning.
53775         (__USE_GNU): Don't define.
53776         (init_signaling_nan): Protoize.
53777
53778         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53779
53780 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53781
53782         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53783         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53784         (__cpymn): Likewise.
53785         (norm): Remove commented code.
53786         (denorm): Likewise.
53787         (__mp_dbl): Likewise.
53788         (__inv): Likewise.
53789         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53790         (__cpymn): Likewise.
53791         (norm): Remove commented code.
53792         (denorm): Likewise.
53793         (__mp_dbl): Likewise.
53794         (__inv): Likewise.
53795
53796         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53797         mp_no value for 1.0 and 2.0.
53798         (norm): Use RADIXI instead of radixi.d.
53799         (denorm): Likewise.
53800         (__mul): Use 0.0 instead of zero.d.
53801         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53802         mp_no value for 1.0 and 2.0.
53803         (norm): Use RADIXI instead of radixi.d.
53804         (denorm): Likewise.
53805         (__mul): Use 0.0 instead of zero.d.
53806
53807 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53808
53809         [BZ #14994]
53810         * math/s_casinh.c (__casinh): Reduce finite argument to first
53811         quadrant then set signs of results at the end.
53812         * math/s_casinhf.c (__casinhf): Likewise.
53813         * math/s_casinhl.c (__casinhl): Likewise.
53814         * math/libm-test.inc (casin_test): Add more tests.
53815         (casinh_test): Likewise.
53816         * sysdeps/i386/fpu/libm-test-ulps: Update.
53817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53818
53819 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53820
53821         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53822
53823         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53824
53825         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53826         declarations.
53827         (denorm): Likewise.
53828         (__mp_dbl): Likewise.
53829         (__inv): Likewise.
53830
53831         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53832         and adjust the header comment.
53833
53834         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53835         variable name from declaration.
53836
53837 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53838
53839         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53840         Initialize COMMON_CPUID_INDEX_7 element.
53841         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53842         (CPUID_RTM): Likewise.
53843         (HAS_RTM): Likewise.
53844         (COMMON_CPUID_INDEX_7): New enum.
53845
53846 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53847
53848         [BZ #14981]
53849         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53850         size is zero, record memory as freed.
53851
53852 2013-01-03  Andreas Jaeger  <aj@suse.de>
53853
53854         * po/ia.po: Add new Interlingua translation.
53855
53856 2012-01-03  Allan McRae  <allan@archlinux.org>
53857
53858         * locale/programs/localedef.c: Fix description of '--posix' flag.
53859
53860 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53861
53862         * NEWS: Update dates in second copyright notice.
53863         * README: Update copyright dates in example.
53864         * manual/libc.texinfo: Update copyright dates.
53865         * scripts/test-installation.pl: Update copyright date in --version
53866         output.
53867
53868         * hurd/ctty-input.c: Fix copyright notice formatting.
53869         * hurd/ctty-output.c: Likewise.
53870         * hurd/dtable.c: Likewise.
53871         * hurd/hurd-raise.c: Likewise.
53872         * hurd/hurdprio.c: Likewise.
53873         * hurd/msgportdemux.c: Likewise.
53874         * misc/sys/file.h: Likewise.
53875         * misc/sys/ioctl.h: Likewise.
53876         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53877         * sysdeps/mach/hurd/chdir.c: Likewise.
53878         * sysdeps/mach/hurd/fchdir.c: Likewise.
53879         * sysdeps/mach/hurd/rename.c: Likewise.
53880         * sysdeps/mach/hurd/rmdir.c: Likewise.
53881         * sysdeps/mach/hurd/seekdir.c: Likewise.
53882         * sysdeps/mach/hurd/setsid.c: Likewise.
53883         * sysdeps/posix/wait3.c: Likewise.
53884
53885         * All files with FSF copyright notices: Update copyright dates
53886         using scripts/update-copyrights.
53887         * intl/plural.c: Regenerated.
53888         * locale/programs/charmap-kw.h: Likewise.
53889         * locale/programs/locfile-kw.h: Likewise.
53890
53891 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53892
53893         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53894         four values.
53895
53896         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53897         calculation loop and add branch prediction.
53898
53899         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53900         check access beyond bounds of m1np.
53901
53902         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53903         MPTWO.
53904         (__inv): Remove local variable MPTWO to use the global
53905         constant.
53906         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53907         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53908         variable MPTWO.
53909         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53910         MP3HALFS static const.
53911
53912 2013-01-01  David S. Miller  <davem@davemloft.net>
53913
53914         * po/ca.po: Update from translation team.
53915
53916 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53917
53918         * scripts/update-copyrights: New file.
53919         * Makeconfig: Reformat copyright notice.
53920         * ctype/ctype.h: Likewise.
53921         * debug/swprintf_chk.c: Likewise.
53922         * elf/dl-cache.c: Likewise.
53923         * elf/dl-debug.c: Likewise.
53924         * elf/dl-object.c: Likewise.
53925         * grp/initgroups.c: Likewise.
53926         * hurd/Makefile: Likewise.
53927         * hurd/hurd/signal.h: Likewise.
53928         * hurd/hurdfault.c: Likewise.
53929         * hurd/hurdioctl.c: Likewise.
53930         * hurd/hurdlookup.c: Likewise.
53931         * hurd/intr-msg.c: Likewise.
53932         * iconv/gconv_open.c: Likewise.
53933         * libio/swprintf.c: Likewise.
53934         * locale/lc-ctype.c: Likewise.
53935         * locale/nl_langinfo.c: Likewise.
53936         * mach/Machrules: Likewise.
53937         * mach/Makefile: Likewise.
53938         * malloc/obstack.h: Likewise.
53939         * manual/Makefile: Likewise.
53940         * manual/tsort.awk: Likewise.
53941         * misc/bits/stab.def: Likewise.
53942         * nis/nis_print_group_entry.c: Likewise.
53943         * nis/nis_table.c: Likewise.
53944         * nis/nss_compat/compat-pwd.c: Likewise.
53945         * nis/nss_compat/compat-spwd.c: Likewise.
53946         * po/Makefile: Likewise.
53947         * posix/fnmatch.c: Likewise.
53948         * posix/regex.h: Likewise.
53949         * resolv/Makefile: Likewise.
53950         * resolv/nss_dns/dns-network.c: Likewise.
53951         * resolv/res_hconf.c: Likewise.
53952         * scripts/gen-sorted.awk: Likewise.
53953         * soft-fp/soft-fp.h: Likewise.
53954         * stdio-common/printf.h: Likewise.
53955         * stdlib/monetary.h: Likewise.
53956         * stdlib/random.c: Likewise.
53957         * stdlib/random_r.c: Likewise.
53958         * sysdeps/generic/Makefile: Likewise.
53959         * sysdeps/gnu/Makefile: Likewise.
53960         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53961         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53962         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53963         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53964         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53965         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53966         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53967         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53968         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53969         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53970         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53971         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53972         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53973         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53974         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53975         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53976         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53977         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53978         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53979         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53980         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53981         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53982         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53983         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53984         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53985         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53986         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53987         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53988         * sysdeps/mach/hurd/errnos.awk: Likewise.
53989         * sysdeps/mach/hurd/fork.c: Likewise.
53990         * sysdeps/mach/hurd/getcwd.c: Likewise.
53991         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53992         * sysdeps/mach/hurd/mmap.c: Likewise.
53993         * sysdeps/mach/hurd/utimes.c: Likewise.
53994         * sysdeps/mach/hurd/xmknod.c: Likewise.
53995         * sysdeps/posix/profil.c: Likewise.
53996         * sysdeps/posix/readdir_r.c: Likewise.
53997         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53998         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53999         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
54000         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
54001         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
54002         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
54003         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
54004         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
54005         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
54006         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
54007         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
54008         * sysdeps/pthread/lio_listio.c: Likewise.
54009         * sysdeps/sparc/dl-procinfo.h: Likewise.
54010         * sysdeps/unix/i386/sysdep.S: Likewise.
54011         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
54012         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
54013         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
54014         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
54015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
54016         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
54017         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
54018         * sysdeps/unix/sysv/linux/speed.c: Likewise.
54019         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
54020         * sysdeps/wordsize-32/divdi3.c: Likewise.
54021         * time/sys/time.h: Likewise.
54022         * wcsmbs/Makefile: Likewise.
54023
54024 2013-01-01  David S. Miller  <davem@davemloft.net>
54025
54026         * po/fr.po: Update from translation team.
54027
54028         * catgets/gencat.c: Update copyright year.
54029         * csu/version.c: Likewise.
54030         * debug/catchsegv.sh: Likewise.
54031         * debug/pcprofiledump.c: Likewise.
54032         * debug/xtrace.sh: Likewise.
54033         * elf/ldconfig.c: Likewise.
54034         * elf/ldd.bash.in: Likewise.
54035         * elf/pldd.c: Likewise.
54036         * elf/sotruss.ksh: Likewise.
54037         * elf/sprof.c: Likewise.
54038         * iconv/iconv_prog.c: Likewise.
54039         * iconv/iconvconfig.c: Likewise.
54040         * locale/programs/locale.c: Likewise.
54041         * locale/programs/localedef.c: Likewise.
54042         * login/programs/pt_chown.c: Likewise.
54043         * malloc/memusage.sh: Likewise.
54044         * malloc/memusagestat.c: Likewise.
54045         * malloc/mtrace.pl: Likewise.
54046         * nscd/nscd.c: Likewise.
54047         * nss/getent.c: Likewise.
54048         * nss/makedb.c: Likewise.
54049         * posix/getconf.c: Likewise.
54050
54051 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
54052
54053         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
54054         numbers.
54055
54056 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
54057
54058         * math/bits/mathcalls.h (modf): Use __nonnull.
54059
54060 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
54061
54062         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
54063         (split): Use macro CN instead of the bare value.
54064         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
54065         could be used.
54066         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
54067         instead of the bare value.
54068         (power1): Likewise.
54069
54070 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54071
54072         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
54073         __ATAN_TWOM.
54074         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
54075
54076         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
54077         their values.
54078         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
54079         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
54080         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
54081         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
54082
54083 2012-12-28  Andreas Jaeger  <aj@suse.de>
54084
54085         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
54086         values are from Linux 3.7.
54087
54088         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
54089         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
54090
54091 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54092
54093         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
54094         TRUE case.
54095
54096         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
54097         (norm): Likewise.
54098         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
54099         variables with preprocessor constants.
54100         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
54101         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
54102         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
54103
54104 2012-12-27  Bruno Haible  <bruno@clisp.org>
54105
54106         [BZ #14317]
54107         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
54108         only if needed.
54109
54110 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54111
54112         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
54113         and use variable directly.
54114         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
54115
54116         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
54117         MPONE.
54118         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
54119         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
54120         variable MPONE.
54121         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
54122         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
54123         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
54124         include directive.  Remove local variable MPONE.
54125         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
54126         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
54127         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
54128
54129 2012-12-25  David S. Miller  <davem@davemloft.net>
54130
54131         * version.h (RELEASE): Set to "development".
54132         (VERSION): Set to "2.17.90".
54133         * NEWS: Add 2.18 section.
54134
54135 2012-12-21  David S. Miller  <davem@davemloft.net>
54136
54137         * po/hr.po: Update from translation team.
54138
54139 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54140
54141         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
54142
54143 2012-12-19  Steve Ellcey  <sellcey@mips.com>
54144
54145         * NEWS:  Mention new memcpy for MIPS.
54146
54147 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54148
54149         * manual/contrib.texi (Contributors): Spelling correction.
54150
54151 2012-12-15  David S. Miller  <davem@davemloft.net>
54152
54153         * po/ru.po: Update from translation team.
54154
54155 2012-12-13  David S. Miller  <davem@davemloft.net>
54156
54157         * NEWS: Mention IFUNC testsuite enhancements.
54158
54159         * po/pl.po: Update from translation team.
54160         * po/bg.po: Likewise.
54161
54162         * manual/contrib.texi (Contributors): Update entries for Hongjiu
54163         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
54164
54165 2012-12-11  David S. Miller  <davem@davemloft.net>
54166
54167         * po/sv.po: Update from translation team.
54168
54169         * po/vi.po: Update from translation team.
54170
54171         * po/cs.po: Update from translation team.
54172
54173         * po/de.po: Update from translation team.
54174         * po/eo.po: Likewise.
54175         * po/nl.po: Likewise.
54176
54177 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
54178
54179         [BZ #14246]
54180         * manual/argp.texi (Argp Helper Functions): Move node to follow
54181         Argp Parsing State.
54182
54183         [BZ #14872]
54184         * manual/conf.texi (Limits on File System Capacity): Mention if
54185         terminating null is included in the max size.
54186
54187 2012-12-10  Andreas Jaeger  <aj@suse.de>
54188
54189         * po/cs.po: Update from translation team.
54190
54191 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
54192
54193         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
54194         void pointer and cast to uintptr_t.
54195         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
54196         path.
54197         * sysdeps/s390/s390-64/memcpy.S: Likewise.
54198         * sysdeps/s390/s390-64/memset.S: Likewise.
54199
54200 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
54201
54202         [BZ #14833]
54203         * menual/message.texi (Message Translation): Fix typos.
54204         (Helper programs for gettext): Likewise.
54205
54206 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
54207
54208         [BZ #14898]
54209         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
54210         Change to -1.
54211
54212 2012-12-07  David S. Miller  <davem@davemloft.net>
54213
54214         * po/libc.pot: Update.
54215
54216 2012-12-07  Richard Henderson  <rth@redhat.com>
54217
54218         [BZ #10114]
54219         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
54220         normal/normal case to before the switch.
54221         (_FP_DIV): Likewise.
54222
54223 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
54224             Mike Frysinger  <vapier@gentoo.org>
54225
54226         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
54227         check for __NR_fadvise64_64.
54228
54229 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
54230
54231         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
54232         0, not just to plain "0" as a statement.
54233         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
54234         with cw.
54235
54236 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
54237
54238         * NEWS: Use sourceware.org in Bugzilla URL.
54239
54240 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54241
54242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
54243         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54244
54245         * stdio-common/tst-put-error.c (do_test): Add newline to the
54246         padded test to ensure flush.
54247
54248 2012-12-05  Jeff Law  <law@redhat.com>
54249
54250         * sunrpc/etc.rpc (fedfs_admin): Add entry.
54251
54252 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
54253
54254         * README: Don't refer to ports add-on as distributed separately.
54255         Mention AArch64 in list of systems supported in the ports add-on.
54256
54257         * LICENSES: Add more non-FSF copyright and license notices.
54258
54259         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
54260         ((unused)).
54261
54262         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
54263
54264         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
54265         10000 as width of padded output.
54266
54267 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54268
54269         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
54270
54271         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
54272         variable LX with __attribute__ ((unused)).
54273         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
54274         Likewise.
54275         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
54276         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
54277         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
54278         with __attribute__ ((unused)).
54279
54280 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
54281
54282         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
54283
54284 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54285
54286         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
54287         (CFLAGS-nldbl-acos.c): New variable.
54288         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
54289         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
54290         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
54291         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
54292         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
54293         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
54294         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
54295         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
54296         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
54297         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
54298         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
54299         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
54300         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
54301         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
54302         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
54303         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
54304         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
54305         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
54306         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
54307         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
54308         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
54309         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
54310         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
54311         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
54312         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
54313         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
54314         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
54315         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
54316         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
54317         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
54318         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
54319         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
54320         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
54321         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
54322         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
54323         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
54324         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
54325         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
54326         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
54327         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
54328         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
54329         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
54330         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
54331         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
54332         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
54333         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
54334         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
54335         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
54336         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
54337         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
54338         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
54339         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
54340         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
54341         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
54342         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
54343         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
54344         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
54345         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
54346         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
54347         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
54348         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
54349         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
54350         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
54351         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
54352         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
54353         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
54354         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
54355         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
54356         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
54357         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
54358         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
54359         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
54360         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
54361         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
54362         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
54363         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
54364         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
54365         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
54366         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
54367         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
54368         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
54369         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
54370         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
54371         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
54372         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
54373         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
54374         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
54375         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
54376         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
54377         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
54378         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
54379         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
54380         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
54381         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
54382         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
54383         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
54384         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
54385
54386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
54387         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54388
54389         [BZ #14914]
54390         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
54391         whole low double instead of just low 47 bits when splitting values
54392         into two parts.
54393
54394 2012-12-03  Allan McRae  <allan@archlinux.org>
54395
54396         * manual/stdio.texi (Predefined Printf Handlers): Remove
54397         @hsep and @vsep usage.
54398
54399 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
54400
54401         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
54402         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
54403
54404 2012-12-03  Jeff Law  <law@redhat.com>
54405
54406         * time/sys/time.h (settimeofday): Do not mark TV argument
54407         as __nonnull.
54408
54409 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
54410
54411         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
54412         when currently writing and seek to current position when not.
54413         * libio/Makefile (tests): Remove bug-fclose1.
54414         * libio/bug-fclose1.c: Delete.
54415
54416 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
54417
54418         * manual/arith.texi (feenableexcept): Fix typo.
54419         (fedisableexcept): Likewise.
54420
54421 2012-11-30  Roland McGrath  <roland@hack.frob.com>
54422
54423         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
54424         second, differently-typed declaration, rather than a cast.
54425
54426 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
54427
54428         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
54429         * include/rpc/svc.h: ... here.
54430
54431 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
54432
54433         [BZ #13013]
54434         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
54435         depending n and resplen2 to catch cases where answer
54436         equals answerp2.
54437
54438 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
54439
54440         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
54441         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
54442
54443 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
54444
54445         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
54446
54447 2012-11-29  Roland McGrath  <roland@hack.frob.com>
54448
54449         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
54450
54451 2012-11-28  Jeff Law  <law@redhat.com>
54452
54453         [BZ #13761]
54454         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
54455         dataset_temporary.  Track alloca usage into alloca_used.
54456         If dataset is large allocate and release it via malloc/free.
54457
54458 2012-06-04  Florian Weimer  <fweimer@redhat.com>
54459
54460         [BZ #14197]
54461         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
54462
54463 2012-11-28  David S. Miller  <davem@davemloft.net>
54464
54465         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54466
54467 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54468
54469         [BZ #14803]
54470         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
54471         of pi/2 rounded to nearest to 64 bits.
54472         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
54473         nearest to 64 bits.
54474         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
54475         bits.
54476
54477 2012-11-28  Jeff Law <law@redhat.com>
54478             Martin Osvald <mosvald@redhat.com>
54479
54480         [BZ #14889]
54481         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
54482         * sunrpc/svc.c: Include time.h.
54483         (__svc_accept_failed): New function.
54484         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
54485         any reason other than EINTR, call __svc_accept_failed.
54486         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
54487         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
54488
54489 2012-11-28  Andreas Schwab  <schwab@suse.de>
54490
54491         * scripts/abilist.awk: Also handle indirect functions in .opd
54492         section.
54493
54494 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54495
54496         [BZ #13881]
54497         * sysdeps/x86/fpu/powl_helper.c: New file.
54498         * sysdeps/x86/fpu/Makefile: Likewise.
54499         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
54500         (p3): New object.
54501         (__ieee754_powl): Use __powl_helper for finite arguments except
54502         integer exponents below 8.
54503         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
54504         (p3): New object.
54505         (__ieee754_powl): Use __powl_helper for finite arguments except
54506         integer exponents below 8.
54507         * math/libm-test.inc (pow_test): Add more tests and enable some
54508         previously disabled tests.
54509         * sysdeps/i386/fpu/libm-test-ulps: Update.
54510         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54511
54512 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54513             Carlos O'Donell  <carlos_odonell@mentor.com>
54514
54515         * nss/makedb.c (is_prime): Assert that input is odd and greater
54516         than 4.  Note that fact in a comment too.
54517         (next_prime): Add 4 to input.
54518
54519 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54520
54521         [BZ #11741]
54522         * libio/Makefile (tests): Add test case tst-fwrite-error.
54523         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
54524         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
54525         * libio/tst-fwrite-error.c: New test case.
54526
54527 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
54528
54529         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
54530         before casting to void *.
54531         * include/libc-internal.h (__pointer_type): New macro.
54532         (__integer_if_pointer_type_sub): Likewise.
54533         (__integer_if_pointer_type): Likewise.
54534         (cast_to_integer): Likewise.
54535         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
54536         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
54537         before casting to atomic64_t.
54538         (atomic_exchange_acq): Likewise.
54539         (__arch_exchange_and_add_body): Likewise.
54540         (__arch_add_body): Likewise.
54541         (atomic_add_negative): Likewise.
54542         (atomic_add_zero): Likewise.
54543
54544 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
54545
54546         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
54547         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
54548         (add_fdes): Likewise.
54549         (linear_search_fdes): Likewise.
54550         (binary_search_unencoded_fdes): Likewise.
54551
54552 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
54553
54554         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
54555
54556 2012-11-24  Adam Conrad  <adconrad@0c3.net>
54557
54558         * configure.in: Autodetect C++ header directories.
54559         * configure: Regenerated.
54560
54561 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
54562
54563         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
54564
54565 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
54566
54567         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54568
54569 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
54570
54571         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
54572         LDBL_MANT_DIG == 106]: Disable some tests.
54573         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54574         Likewise.
54575         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54576         Likewise.
54577
54578         [BZ #14871]
54579         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
54580         input for small inputs.  Return +/- pi/2 for large inputs.
54581         * math/libm-test.inc (atan_test): Add more tests.
54582
54583         * sysdeps/generic/unwind-dw2-fde-glibc.c
54584         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
54585         __attribute__ ((unused)).
54586
54587         [BZ #14645]
54588         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
54589         x * y if x and y are nonzero and z is zero.
54590
54591         [BZ #14811]
54592         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
54593         nonzero exponents with absolute value below 0x1p-117 to +/-
54594         0x1p-117.
54595
54596         [BZ #14869]
54597         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
54598         up arguments below 2**-450, not just those below 2**-500.
54599         * math/libm-test.inc (hypot_test): Add another test.
54600
54601         [BZ #14868]
54602         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
54603         Return a+b for ratio over 2**120, not 2**60.
54604         * math/libm-test.inc (hypot_test): Add another test.
54605
54606         * math/libm-test.inc (clog_test): Use
54607         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
54608         (clog10_test): Likewise.
54609
54610         [BZ #6778]
54611         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
54612
54613 2012-11-22  Andreas Schwab  <schwab@suse.de>
54614
54615         * sysdeps/i386/fpu/libm-test-ulps: Update.
54616
54617 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
54618
54619         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
54620         printf output with newline.
54621
54622 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54623
54624         [BZ #14865]
54625         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54626         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54627         -z nodlopen, -z initfirst and -z execstack support.
54628         * configure: Regenerated.
54629
54630         * elf/elf.h (DF_1_NODIRECT): New macro.
54631         (DF_1_IGNMULDEF): Likewise.
54632         (DF_1_NOKSYMS): Likewise.
54633         (DF_1_NOHDR): Likewise.
54634         (DF_1_EDITED): Likewise.
54635         (DF_1_NORELOC): Likewise.
54636         (DF_1_SYMINTPOSE): Likewise.
54637         (DF_1_GLOBAUDIT): Likewise.
54638         (DF_1_SINGLETON): Likewise.
54639         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54640         DT_1_SUPPORTED_MASK bits.
54641         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54642
54643 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54644
54645         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54646
54647 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54648
54649         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54650         macro.
54651
54652         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54653         (sendmmsg): Move declarations...
54654         * socket/sys/socket.h: ... here.
54655         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54656         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54657         include it from...
54658         * socket/recvmmsg.c: ... this new file.
54659         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54660         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54661         definition of __sendmmsg hidden.
54662         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54663         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54664         Move ENOSYS stub into and include it from...
54665         * socket/sendmmsg.c: ... this new file.
54666         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54667         (sysdep_routines): Move recvmmsg and sendmmsg...
54668         * socket/Makefile (routines): ... here.
54669         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54670         (GLIBC_PRIVATE): Add __sendmmsg.
54671         * include/sys/socket.h (__sendmmsg): Add declarations.
54672         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54673         sendmmsg.
54674
54675 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54676
54677         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54678         variable I1 with __attribute__ ((unused)).
54679         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54680
54681 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54682
54683         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54684         DUMMY variables with __attribute__ ((unused)).
54685
54686         * bits/byteswap.h: Include <bits/types.h>.
54687         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54688
54689 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54690
54691         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54692         string_t.  Do not manually set errno.
54693         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54694         length with __strnlen.  Make sure to both set errno and return it on
54695         failure.
54696
54697 2012-11-19  David S. Miller  <davem@davemloft.net>
54698
54699         With help from Joseph Myers.
54700         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54701         very large arguments properly.
54702         * math/libm-test.inc (atan_test): New tests.
54703         (atan2_test): New tests.
54704         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54705         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54706
54707 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54708
54709         [BZ #14856]
54710         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54711         Define to 3.
54712
54713         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54714         [POSIX] (EADDRNOTAVAIL): Likewise.
54715         [POSIX] (EAFNOSUPPORT): Likewise.
54716         [POSIX] (EALREADY): Likewise.
54717         [POSIX] (ECONNABORTED): Likewise.
54718         [POSIX] (ECONNREFUSED): Likewise.
54719         [POSIX] (ECONNRESET): Likewise.
54720         [POSIX] (EDESTADDRREQ): Likewise.
54721         [POSIX] (EDQUOT): Likewise.
54722         [POSIX] (EHOSTUNREACH): Likewise.
54723         [POSIX] (EIDRM): Likewise.
54724         [POSIX] (EISCONN): Likewise.
54725         [POSIX] (ELOOP): Likewise.
54726         [POSIX] (EMULTIHOP): Likewise.
54727         [POSIX] (ENETDOWN): Likewise.
54728         [POSIX] (ENETUNREACH): Likewise.
54729         [POSIX] (ENOBUFS): Likewise.
54730         [POSIX] (ENODATA): Likewise.
54731         [POSIX] (ENOLINK): Likewise.
54732         [POSIX] (ENOMSG): Likewise.
54733         [POSIX] (ENOPROTOOPT): Likewise.
54734         [POSIX] (ENOSR): Likewise.
54735         [POSIX] (ENOSTR): Likewise.
54736         [POSIX] (ENOTCONN): Likewise.
54737         [POSIX] (ENOTSOCK): Likewise.
54738         [POSIX] (EOPNOTSUPP): Likewise.
54739         [POSIX] (EOVERFLOW): Likewise.
54740         [POSIX] (EPROTO): Likewise.
54741         [POSIX] (EPROTONOSUPPORT): Likewise.
54742         [POSIX] (EPROTOTYPE): Likewise.
54743         [POSIX] (ESTALE): Likewise.
54744         [POSIX] (ETIME): Likewise.
54745         [POSIX] (ETXTBSY): Likewise.
54746         [POSIX] (EWOULDBLOCK): Likewise.
54747         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54748         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54749         [POSIX] (SEEK_CUR): Likewise.
54750         [POSIX] (SEEK_END): Likewise.
54751         [POSIX || UNIX98] (mode_t): Do not require.
54752         [POSIX] (off_t): Likewise.
54753         [POSIX] (pid_t): Likewise.
54754         [POSIX] (sys/stat.h): Do not allow header.
54755         [POSIX] (unistd.h): Likewise.
54756         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54757         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54758         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54759         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54760         require.
54761         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54762         sigevent): Specify elements.
54763         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54764         entry.
54765         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54766         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54767
54768         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54769         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54770         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54771         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54772         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54773         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54774         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54775         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54776         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54777         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54778         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54779         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54780         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54781         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54782         Likewise.
54783         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54784         Likewise.
54785         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54786         Likewise.
54787         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54788         Likewise.
54789         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54790         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54791         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54792         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54793         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54794         Specify lower bound on value.
54795         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54796         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54797         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54798         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54799         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54800         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54801         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54802         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54803         value.
54804         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54805         as optional.
54806         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54807         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54808         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54809         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54810         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54811         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54812         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54813         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54814         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54815         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54816         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54817         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54818         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54819         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54820         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54821         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54822         entry.
54823         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54824         optional.
54825         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54826         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54827         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54828         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54829         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54830         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54831         Likewise.
54832         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54833         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54834         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54835         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54836         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54837         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54838         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54839         as optional.
54840         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54841         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54842         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54843         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54844         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54845         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54846         specify as optional.
54847         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54848         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54849         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54850         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54851         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54852         [XPG3] (NL_LANGMAX): Likewise.
54853         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54854         [POSIX || XPG3] (NL_NMAX): Likewise.
54855         [POSIX || XPG3] (NL_SETMAX): Likewise.
54856         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54857         [XPG3] (NZERO): Likewise.
54858         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54859         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54860         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54861         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54862         (REG_ERANGE): Expect.
54863         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54864         optional-constant.
54865         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54866         Use (void) in prototype.
54867         [POSIX] (*_t): Allow.
54868         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54869         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54870         (WRDE_BADVAL): Expect.
54871
54872         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54873         expect.
54874         [XPG3 || XPG4] (O_RSYNC): Likewise.
54875         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54876         Likewise.
54877         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54878         [XPG3 || XPG4] (sigqueue): Likewise.
54879         [XPG3 || XPG4] (sigtimedwait): Likewise.
54880         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54881         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54882         [XPG3 || XPG4] (vsnprintf): Likewise.
54883         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54884         Likewise.
54885         [XPG3 || XPG4] (blksize_t): Likewise.
54886         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54887         Likewise.
54888         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54889         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54890         [XPG3 || XPG4] (struct itimerspec): Likewise.
54891         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54892         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54893         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54894         [XPG3 || XPG4] (clockid_t): Likewise.
54895         [XPG3 || XPG4] (timer_t): Likewise.
54896         [XPG3 || XPG4] (clock_getres): Likewise.
54897         [XPG3 || XPG4] (clock_gettime): Likewise.
54898         [XPG3 || XPG4] (clock_settime): Likewise.
54899         [XPG3 || XPG4] (nanosleep): Likewise.
54900         [XPG3 || XPG4] (timer_create): Likewise.
54901         [XPG3 || XPG4] (timer_delete): Likewise.
54902         [XPG3 || XPG4] (timer_gettime): Likewise.
54903         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54904         [XPG3 || XPG4] (timer_settime): Likewise.
54905         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54906         [XPG3 || XPG4] (getlogin_r): Likewise.
54907         [XPG3 || XPG4] (pread): Likewise.
54908         [XPG3 || XPG4] (pthread_atfork): Likewise.
54909         [XPG3 || XPG4] (pwrite): Likewise.
54910
54911         [BZ #14835]
54912         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54913         <bits/siginfo.h>.
54914
54915 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54916
54917         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54918         finalizing MALLSTREAM.
54919
54920         * sysdeps/mach/hurd/syncfs.c: New file.
54921
54922 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54923
54924         [BZ #14719]
54925         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54926         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54927         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54928         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54929         (_nss_dns_gethostbyname4_r): Likewise.
54930         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54931         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54932
54933 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54934
54935         [BZ #13763]
54936         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54937
54938 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54939
54940         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54941         * elf/cache.c (print_entry): Print ",AArch64" for
54942         FLAG_AARCH64_LIB64
54943
54944         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54945         * elf/cache.c (print_entry): Print ",hard-float" for
54946         FLAG_ARM_LIBHF.
54947
54948 2012-11-18  David S. Miller  <davem@davemloft.net>
54949
54950         With help from Joseph Myers.
54951         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54952         cutoff to 2**-13.
54953         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54954         cutoff to 2**-25.
54955         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54956         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54957         small.
54958         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54959         * math/libm-test.inc (y0_test): New tests.
54960         (y1_test): New tests.
54961         * sysdeps/i386/fpu/libm-test-ulps: Update.
54962         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54963         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54964
54965 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54966
54967         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54968         64-bit targets.
54969         * configure: Regenerated.
54970
54971 2012-11-17  David S. Miller  <davem@davemloft.net>
54972
54973         [BZ #14811]
54974         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54975         nonzero exponents with absolute value below 0x1p-128 to +/-
54976         0x1p-128.
54977
54978 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54979
54980         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54981
54982         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54983
54984         * posix/getconf-speclist.c: New file.
54985         * posix/posix-envs.def: Likewise.
54986         * posix/confstr.c (START_ENV_GROUP): New macro.
54987         (END_ENV_GROUP): Likewise.
54988         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54989         (KNOWN_PRESENT_ENV_STRING): Likewise.
54990         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54991         (UNKNOWN_ENVIRONMENT): Likewise.
54992         (confstr): Include posix-envs.def instead of handling
54993         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54994         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54995         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54996         (END_ENV_GROUP): Likewise.
54997         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54998         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54999         (UNKNOWN_ENVIRONMENT): Likewise.
55000         (__sysconf): Include posix-envs.def instead of handling associated
55001         cases directly here.
55002         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
55003         preprocessing getconf-speclist.c rather than running getconf or
55004         generating empty file.
55005
55006 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
55007
55008         * scripts/check-local-headers.sh: Ignore 'mach' headers.
55009
55010 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
55011
55012         [BZ #14672]
55013         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
55014
55015 2012-11-16  David S. Miller  <davem@davemloft.net>
55016
55017         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
55018         smaller than LDBL_EPSILON/2.0L, just return xm1.
55019
55020 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
55021
55022         * elf/tst-array1.c (init): Set constructor priority to 1000.
55023         (fini): Set destructor priority to 1000.
55024         * elf/tst-array2dep.c: Likewise.
55025
55026 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55027
55028         [BZ #11741]
55029         * libio/fileops.c (_IO_new_file_write): Correctly return error.
55030         (_IO_new_file_xsputn): Also return EOF if none of the input
55031         data was written when overflow failed.
55032         * libio/iopadn.c (_IO_padn): Likewise.
55033         * libio/iowpadn.c (_IO_wpadn): Likewise.
55034         * stdio-common/tst-put-error.c: Add copyright notice.
55035         (do_test): Add case for printing padded string.
55036         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
55037         _IO_padn returned error.
55038         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
55039         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
55040         return EOF.
55041
55042 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55043
55044         * libio/libioP.h: Add comment note that the references to C++
55045         bits are now obsolete.
55046
55047 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55048
55049         * math/libm-test.inc (check_complex): Use asprintf.
55050
55051 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
55052
55053         * debug/pcprofiledump.c (print_version): Update copyright year.
55054         * malloc/memusagestat.c (print_version): Likewise.
55055
55056 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
55057
55058         [BZ #14831]
55059         * elf/Makefile (tests): Add tst-audit8.
55060         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
55061         ($(objpfx)tst-audit8.out): New target.
55062         (tst-audit8-ENV): New variable.
55063         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
55064         audit if l_reloc_result is NULL.
55065         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
55066         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
55067         * elf/tst-audit8.c: New file.
55068
55069 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55070
55071         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
55072         * misc/Makefile (CFLAGS-select.c): Define.
55073         * posix/Makefile (CFLAGS-pause.c): Define.
55074
55075 2012-11-13  David S. Miller  <davem@davemloft.net>
55076
55077         * crypt/Makefile: Move test targets after toplevel Rules
55078         inclusion.  Grab any necessary sysdep routines when linking.
55079         * crypt/md5.c (md5_process_block): Remove define, we will always
55080         name it __md5_process_block.
55081         (md5_finish_ctx): Update md5_process_block call.
55082         (md5_stream): Likewise.
55083         (md5_process_bytes): Likewise.
55084         (md5_process_block): Rename to __md5_process_block and move to ...
55085         * crypt/md5-block.c: ... here.
55086         * crypt/sha256.c (sha256_process_block): Move to ...
55087         * crypt/sha256-block.c: ... here.
55088         * crypt/sha512.c (sha512_process_block): Move to ...
55089         * crypt/sha512-block.c: ... here.
55090         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
55091         path.
55092         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
55093         * sysdeps/sparc/sparc64/multiarch/Makefile
55094         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
55095         crypt subdir.
55096         (localedef-aux): Add md5 crypto assembler when in locale subdir.
55097         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
55098         multiarch changes.
55099         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
55100         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
55101         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
55102         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
55103         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
55104         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
55105         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
55106         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
55107         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
55108         file.
55109         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
55110         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
55111         file.
55112         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
55113
55114 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
55115
55116         * timezone/tzselect.ksh: Update from tzcode git revision
55117         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
55118         * timezone/zdump.c: Likewise.
55119         * timezone/zic.c: Likewise.
55120         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
55121         in TZVERSION setting, not $(PKGVERSION).
55122         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
55123         REPORT_BUGS_TO settings.
55124
55125         [BZ #14838]
55126         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
55127         macro.
55128
55129 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55130
55131         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
55132         detection to immediately after _FP_ROUND().
55133         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
55134         bits are 0.
55135
55136 2012-11-11  David S. Miller  <davem@davemloft.net>
55137
55138         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
55139         inttypes.h
55140         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
55141         __close rather than their public counterparts.
55142
55143 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
55144
55145         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
55146         file.
55147         [UNIX98] (sem_timedwait): Do not expect.
55148         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
55149         [XPG4 || UNIX98] (sockatmark): Do not expect.
55150         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
55151         (clock_getcpuclockid): Do not expect.
55152         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
55153         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
55154         Do not expect.
55155         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
55156         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
55157         [UNIX98] (vwscanf): Likewise.
55158         [UNIX98] (vswscanf): Likewise.
55159
55160 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
55161
55162         * timezone/version.h: Remove file.
55163         * timezone/README: Do not refer to version.h.
55164         * timezone/Makefile ($(objpfx)zic.o): New dependency on
55165         $(objpfx)version.h.
55166         ($(objpfx)zdump.o): Likewise.
55167         ($(objpfx)version.h): New target.
55168
55169         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
55170         2012i.
55171         * timezone/README: Don't mention modification to tzselect.ksh.
55172         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
55173         work on unmodified tzselect.ksh.  Substitute version numbers in
55174         tzselect.ksh.
55175
55176         * Makefile (format-me): Remove.
55177         (INSTALL): Adjust indentation.  Use commands directly instead of
55178         using $(format-me).
55179
55180         * aclocal.m4 (ACX_PKGVERSION): New macro.
55181         (ACX_BUGURL): Likewise.
55182         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
55183         (PKGVERSION): New AC_DEFINE_UNQUOTED.
55184         (REPORT_BUGS_TO): Likewise.
55185         * configure: Regenerated.
55186         * config.h.in (PKGVERSION): New macro.
55187         (REPORT_BUGS_TO): Likewise.
55188         * config.make.in (PKGVERSION): New variable.
55189         (PKGVERSION_TEXI): Likewise.
55190         (REPORT_BUGS_TO): Likewise.
55191         (REPORT_BUGS_TEXI): Likewise.
55192         * Makefile (format-me): Use -I$(common-objpfx)manual.
55193         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
55194         ($(common-objpfx)manual/%): New target.
55195         (manual/%): Remove target.
55196         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
55197         (print_version): Use PKGVERSION.
55198         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
55199         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
55200         and REPORT_BUGS_TO.
55201         ($(objpfx)xtrace): Likewise.
55202         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
55203         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
55204         (print_version): Use PKGVERSION.
55205         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
55206         (do_version): Use PKGVERSION.
55207         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
55208         REPORT_BUGS_TO.
55209         (common-ldd-rewrite): Likewise.
55210         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
55211         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
55212         (print_version): Use PKGVERSION.
55213         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
55214         * elf/pldd.c (argp_program_bug_address): Remove variable.
55215         (more_help): New function.
55216         (argp): Use more_help.
55217         (print_version): Use PKGVERSION.
55218         * elf/sln.c (main): Use PKGVERSION.
55219         (usage): Use REPORT_BUGS_TO.
55220         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
55221         (top level): Use PKGVERSION.
55222         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
55223         (print_version): Use PKGVERSION.
55224         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
55225         (print_version): Use PKGVERSION.
55226         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
55227         (print_version): Use PKGVERSION.
55228         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
55229         (print_version): Use PKGVERSION.
55230         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
55231         (print_version): Use PKGVERSION.
55232         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
55233         (print_version): Use PKGVERSION.
55234         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
55235         and BUGURL.
55236         ($(objpfx)memusage): Likewise.
55237         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
55238         (do_version): Use PKGVERSION.
55239         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
55240         (print_version): Use PKGVERSION.
55241         * malloc/mtrace.pl ($PACKAGE): Remove variable.
55242         ($PKGVERSION): New variable.
55243         ($REPORT_BUGS_TO): Likewise.
55244         (usage): Use $REPORT_BUGS_TO.
55245         (top level): Use $PKGVERSION.
55246         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
55247         ($(objpfx)pkgvers.texi): New rule.
55248         ($(objpfx)stamp-pkgvers): Likewise.
55249         * manual/install.texi: Include pkgvers.texi.
55250         (--with-pkgversion): Document new configure option.
55251         (--with-bugurl): Likewise.
55252         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
55253         than necessarily for this particular distribution.  Use
55254         REPORT_BUGS_TO for where to report bugs.
55255         * INSTALL: Regenerated.
55256         * manual/libc.texinfo: Include pkgvers.texi.
55257         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
55258         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
55259         (print_version): Use PKGVERSION.
55260         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
55261         (print_version): Use PKGVERSION.
55262         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
55263         (print_version): Use PKGVERSION.
55264         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
55265         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
55266         macro.
55267         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
55268         (print_version): Use PKGVERSION.
55269         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
55270         (print_version): Use PKGVERSION.
55271         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
55272         and PKGVERSION.
55273
55274         * timezone/checktab.awk: Update from tzcode 2012i.
55275         * timezone/ialloc.c: Likewise.
55276         * timezone/private.h: Likewise.
55277         * timezone/scheck.c: Likewise.
55278         * timezone/tzfile.h: Likewise.
55279         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
55280         (TZVERSION): Hardcode tzcode version number.
55281         * timezone/zdump.c: Update from tzcode 2012i.
55282         * timezone/zic.c: Likewise.
55283         * timezone/version.h: New file.
55284         * timezone/README: Describe version.h.  Update upstream location.
55285
55286         [BZ #14824]
55287         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
55288         (mktemp): Enable declaration.
55289         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
55290         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
55291         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
55292         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
55293         Likewise.
55294         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
55295         Likewise.
55296         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
55297         Likewise.
55298         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
55299         Likewise.
55300         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
55301         Likewise.
55302         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
55303         Likewise.
55304
55305         [BZ #14821]
55306         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
55307         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
55308         for copies of such integer values.
55309         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
55310         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
55311
55312 2012-11-09  Andreas Jaeger  <aj@suse.de>
55313
55314         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
55315         definitions and declarations that are provided by
55316         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
55317
55318 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55319
55320         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
55321         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
55322         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
55323         definition.
55324
55325 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55326
55327         * elf/elf.h: Update comment before AArch64 relocations.
55328
55329 2012-11-07  David S. Miller  <davem@davemloft.net>
55330
55331         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
55332         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
55333         (__start_context): Declare.
55334         (__makecontext_ret): Delete.
55335         (__makecontext): Hook up __start_context instead of
55336         __makecontext_ret.
55337         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
55338         (sysdep_routines): Add __start_context when in stdlib.
55339
55340 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55341
55342         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
55343         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
55344         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
55345         hardcoded "nm".
55346         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
55347         (READELF): New variable.  Use it instead of hardcoded "readelf".
55348
55349 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
55350
55351         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
55352         * sysdeps/x86/Makefile: Here.
55353         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
55354         * sysdeps/x86/tst-xmmymm.sh: This.
55355
55356 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55357
55358         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
55359         expectations.
55360         [UNIX98] (pthread_barrier_t): Do not expect.
55361         [UNIX98] (pthread_barrierattr_t): Likewise.
55362         [UNIX98] (pthread_spinlock_t): Likewise.
55363         [UNIX98] (pthread_barrier_destroy): Likewise.
55364         [UNIX98] (pthread_barrier_init): Likewise.
55365         [UNIX98] (pthread_barrier_wait): Likewise.
55366         [UNIX98] (pthread_barrierattr_destroy): Likewise.
55367         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
55368         [UNIX98] (pthread_barrierattr_init): Likewise.
55369         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
55370         [UNIX98] (pthread_getcpuclockid): Likewise.
55371         [UNIX98] (pthread_mutex_timedlock): Likewise.
55372         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
55373         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
55374         [UNIX98] (pthread_sigmask): Likewise.
55375         [UNIX98] (pthread_spin_destroy): Likewise.
55376         [UNIX98] (pthread_spin_init): Likewise.
55377         [UNIX98] (pthread_spin_lock): Likewise.
55378         [UNIX98] (pthread_spin_trylock): Likewise.
55379         [UNIX98] (pthread_spin_unlock): Likewise.
55380         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
55381         Do not expect.
55382         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
55383         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
55384         [XPG3 || XPG4] (pthread_cond_t): Likewise.
55385         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
55386         [XPG3 || XPG4] (pthread_key_t): Likewise.
55387         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
55388         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
55389         [XPG3 || XPG4] (pthread_once_t): Likewise.
55390         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
55391         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
55392         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
55393         [XPG3 || XPG4] (pthread_t): Likewise.
55394
55395         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
55396         not expect.
55397         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
55398
55399         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
55400         Change function return type to int.
55401
55402         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
55403         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
55404         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
55405         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
55406         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
55407         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
55408         [!POSIX] (posix_madvise): Likewise.
55409         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
55410         && !UNIX98].
55411         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
55412         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
55413         (mode_t): Likewise.
55414         (posix_mem_offset): Likewise.
55415         (posix_typed_mem_get_info): Likewise.
55416         (posix_typed_mem_open): Likewise.
55417
55418         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
55419         Change condition to [XOPEN2K8].
55420
55421         * conform/conformtest.pl: Preprocess allow-header data with -x c
55422         instead of from stdin.
55423         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
55424         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
55425         [C99-based standards] (cerfc): Likewise.
55426         [C99-based standards] (cexp2): Likewise.
55427         [C99-based standards] (cexpm1): Likewise.
55428         [C99-based standards] (clog10): Likewise.
55429         [C99-based standards] (clog1p): Likewise.
55430         [C99-based standards] (clog2): Likewise.
55431         [C99-based standards] (clgamma): Likewise.
55432         [C99-based standards] (ctgamma): Likewise.
55433         [C99-based standards] (cerff): Likewise.
55434         [C99-based standards] (cerfcf): Likewise.
55435         [C99-based standards] (cexp2f): Likewise.
55436         [C99-based standards] (cexpm1f): Likewise.
55437         [C99-based standards] (clog10f): Likewise.
55438         [C99-based standards] (clog1pf): Likewise.
55439         [C99-based standards] (clog2f): Likewise.
55440         [C99-based standards] (clgammaf): Likewise.
55441         [C99-based standards] (ctgammaf): Likewise.
55442         [C99-based standards] (cerfl): Likewise.
55443         [C99-based standards] (cerfcl): Likewise.
55444         [C99-based standards] (cexp2l): Likewise.
55445         [C99-based standards] (cexpm1l): Likewise.
55446         [C99-based standards] (clog10l): Likewise.
55447         [C99-based standards] (clog1pl): Likewise.
55448         [C99-based standards] (clog2l): Likewise.
55449         [C99-based standards] (clgammal): Likewise.
55450         [C99-based standards] (ctgammal): Likewise.
55451         * conform/data/inttypes.h-data [C99-based standards]: Include
55452         stdint.h-data.  Remove all expectations for stdint.h contents.
55453         [C99-based standards] (PRI*): Do not allow.
55454         [C99-based standards] (SCN*): Likewise.
55455         [C99-based standards] (*_t): Likewise.
55456         [C99-based-standards] (PRId8): Expect macro.
55457         [C99-based-standards] (PRIi8): Likewise.
55458         [C99-based-standards] (PRIo8): Likewise.
55459         [C99-based-standards] (PRIu8): Likewise.
55460         [C99-based-standards] (PRIx8): Likewise.
55461         [C99-based-standards] (PRIX8): Likewise.
55462         [C99-based-standards] (SCNd8): Likewise.
55463         [C99-based-standards] (SCNi8): Likewise.
55464         [C99-based-standards] (SCNo8): Likewise.
55465         [C99-based-standards] (SCNu8): Likewise.
55466         [C99-based-standards] (SCNx8): Likewise.
55467         [C99-based-standards] (PRIdLEAST8): Likewise.
55468         [C99-based-standards] (PRIiLEAST8): Likewise.
55469         [C99-based-standards] (PRIoLEAST8): Likewise.
55470         [C99-based-standards] (PRIuLEAST8): Likewise.
55471         [C99-based-standards] (PRIxLEAST8): Likewise.
55472         [C99-based-standards] (PRIXLEAST8): Likewise.
55473         [C99-based-standards] (SCNdLEAST8): Likewise.
55474         [C99-based-standards] (SCNiLEAST8): Likewise.
55475         [C99-based-standards] (SCNoLEAST8): Likewise.
55476         [C99-based-standards] (SCNuLEAST8): Likewise.
55477         [C99-based-standards] (SCNxLEAST8): Likewise.
55478         [C99-based-standards] (PRIdFAST8): Likewise.
55479         [C99-based-standards] (PRIiFAST8): Likewise.
55480         [C99-based-standards] (PRIoFAST8): Likewise.
55481         [C99-based-standards] (PRIuFAST8): Likewise.
55482         [C99-based-standards] (PRIxFAST8): Likewise.
55483         [C99-based-standards] (PRIXFAST8): Likewise.
55484         [C99-based-standards] (SCNdFAST8): Likewise.
55485         [C99-based-standards] (SCNiFAST8): Likewise.
55486         [C99-based-standards] (SCNoFAST8): Likewise.
55487         [C99-based-standards] (SCNuFAST8): Likewise.
55488         [C99-based-standards] (SCNxFAST8): Likewise.
55489         [C99-based-standards] (PRId16): Likewise.
55490         [C99-based-standards] (PRIi16): Likewise.
55491         [C99-based-standards] (PRIo16): Likewise.
55492         [C99-based-standards] (PRIu16): Likewise.
55493         [C99-based-standards] (PRIx16): Likewise.
55494         [C99-based-standards] (PRIX16): Likewise.
55495         [C99-based-standards] (SCNd16): Likewise.
55496         [C99-based-standards] (SCNi16): Likewise.
55497         [C99-based-standards] (SCNo16): Likewise.
55498         [C99-based-standards] (SCNu16): Likewise.
55499         [C99-based-standards] (SCNx16): Likewise.
55500         [C99-based-standards] (PRIdLEAST16): Likewise.
55501         [C99-based-standards] (PRIiLEAST16): Likewise.
55502         [C99-based-standards] (PRIoLEAST16): Likewise.
55503         [C99-based-standards] (PRIuLEAST16): Likewise.
55504         [C99-based-standards] (PRIxLEAST16): Likewise.
55505         [C99-based-standards] (PRIXLEAST16): Likewise.
55506         [C99-based-standards] (SCNdLEAST16): Likewise.
55507         [C99-based-standards] (SCNiLEAST16): Likewise.
55508         [C99-based-standards] (SCNoLEAST16): Likewise.
55509         [C99-based-standards] (SCNuLEAST16): Likewise.
55510         [C99-based-standards] (SCNxLEAST16): Likewise.
55511         [C99-based-standards] (PRIdFAST16): Likewise.
55512         [C99-based-standards] (PRIiFAST16): Likewise.
55513         [C99-based-standards] (PRIoFAST16): Likewise.
55514         [C99-based-standards] (PRIuFAST16): Likewise.
55515         [C99-based-standards] (PRIxFAST16): Likewise.
55516         [C99-based-standards] (PRIXFAST16): Likewise.
55517         [C99-based-standards] (SCNdFAST16): Likewise.
55518         [C99-based-standards] (SCNiFAST16): Likewise.
55519         [C99-based-standards] (SCNoFAST16): Likewise.
55520         [C99-based-standards] (SCNuFAST16): Likewise.
55521         [C99-based-standards] (SCNxFAST16): Likewise.
55522         [C99-based-standards] (PRId32): Likewise.
55523         [C99-based-standards] (PRIi32): Likewise.
55524         [C99-based-standards] (PRIo32): Likewise.
55525         [C99-based-standards] (PRIu32): Likewise.
55526         [C99-based-standards] (PRIx32): Likewise.
55527         [C99-based-standards] (PRIX32): Likewise.
55528         [C99-based-standards] (SCNd32): Likewise.
55529         [C99-based-standards] (SCNi32): Likewise.
55530         [C99-based-standards] (SCNo32): Likewise.
55531         [C99-based-standards] (SCNu32): Likewise.
55532         [C99-based-standards] (SCNx32): Likewise.
55533         [C99-based-standards] (PRIdLEAST32): Likewise.
55534         [C99-based-standards] (PRIiLEAST32): Likewise.
55535         [C99-based-standards] (PRIoLEAST32): Likewise.
55536         [C99-based-standards] (PRIuLEAST32): Likewise.
55537         [C99-based-standards] (PRIxLEAST32): Likewise.
55538         [C99-based-standards] (PRIXLEAST32): Likewise.
55539         [C99-based-standards] (SCNdLEAST32): Likewise.
55540         [C99-based-standards] (SCNiLEAST32): Likewise.
55541         [C99-based-standards] (SCNoLEAST32): Likewise.
55542         [C99-based-standards] (SCNuLEAST32): Likewise.
55543         [C99-based-standards] (SCNxLEAST32): Likewise.
55544         [C99-based-standards] (PRIdFAST32): Likewise.
55545         [C99-based-standards] (PRIiFAST32): Likewise.
55546         [C99-based-standards] (PRIoFAST32): Likewise.
55547         [C99-based-standards] (PRIuFAST32): Likewise.
55548         [C99-based-standards] (PRIxFAST32): Likewise.
55549         [C99-based-standards] (PRIXFAST32): Likewise.
55550         [C99-based-standards] (SCNdFAST32): Likewise.
55551         [C99-based-standards] (SCNiFAST32): Likewise.
55552         [C99-based-standards] (SCNoFAST32): Likewise.
55553         [C99-based-standards] (SCNuFAST32): Likewise.
55554         [C99-based-standards] (SCNxFAST32): Likewise.
55555         [C99-based-standards] (PRId64): Likewise.
55556         [C99-based-standards] (PRIi64): Likewise.
55557         [C99-based-standards] (PRIo64): Likewise.
55558         [C99-based-standards] (PRIu64): Likewise.
55559         [C99-based-standards] (PRIx64): Likewise.
55560         [C99-based-standards] (PRIX64): Likewise.
55561         [C99-based-standards] (SCNd64): Likewise.
55562         [C99-based-standards] (SCNi64): Likewise.
55563         [C99-based-standards] (SCNo64): Likewise.
55564         [C99-based-standards] (SCNu64): Likewise.
55565         [C99-based-standards] (SCNx64): Likewise.
55566         [C99-based-standards] (PRIdLEAST64): Likewise.
55567         [C99-based-standards] (PRIiLEAST64): Likewise.
55568         [C99-based-standards] (PRIoLEAST64): Likewise.
55569         [C99-based-standards] (PRIuLEAST64): Likewise.
55570         [C99-based-standards] (PRIxLEAST64): Likewise.
55571         [C99-based-standards] (PRIXLEAST64): Likewise.
55572         [C99-based-standards] (SCNdLEAST64): Likewise.
55573         [C99-based-standards] (SCNiLEAST64): Likewise.
55574         [C99-based-standards] (SCNoLEAST64): Likewise.
55575         [C99-based-standards] (SCNuLEAST64): Likewise.
55576         [C99-based-standards] (SCNxLEAST64): Likewise.
55577         [C99-based-standards] (PRIdFAST64): Likewise.
55578         [C99-based-standards] (PRIiFAST64): Likewise.
55579         [C99-based-standards] (PRIoFAST64): Likewise.
55580         [C99-based-standards] (PRIuFAST64): Likewise.
55581         [C99-based-standards] (PRIxFAST64): Likewise.
55582         [C99-based-standards] (PRIXFAST64): Likewise.
55583         [C99-based-standards] (SCNdFAST64): Likewise.
55584         [C99-based-standards] (SCNiFAST64): Likewise.
55585         [C99-based-standards] (SCNoFAST64): Likewise.
55586         [C99-based-standards] (SCNuFAST64): Likewise.
55587         [C99-based-standards] (SCNxFAST64): Likewise.
55588         [C99-based-standards] (PRIdMAX): Likewise.
55589         [C99-based-standards] (PRIiMAX): Likewise.
55590         [C99-based-standards] (PRIoMAX): Likewise.
55591         [C99-based-standards] (PRIuMAX): Likewise.
55592         [C99-based-standards] (PRIxMAX): Likewise.
55593         [C99-based-standards] (PRIXMAX): Likewise.
55594         [C99-based-standards] (SCNdMAX): Likewise.
55595         [C99-based-standards] (SCNiMAX): Likewise.
55596         [C99-based-standards] (SCNoMAX): Likewise.
55597         [C99-based-standards] (SCNuMAX): Likewise.
55598         [C99-based-standards] (SCNxMAX): Likewise.
55599         [C99-based-standards] (PRIdPTR): Likewise.
55600         [C99-based-standards] (PRIiPTR): Likewise.
55601         [C99-based-standards] (PRIoPTR): Likewise.
55602         [C99-based-standards] (PRIuPTR): Likewise.
55603         [C99-based-standards] (PRIxPTR): Likewise.
55604         [C99-based-standards] (PRIXPTR): Likewise.
55605         [C99-based-standards] (SCNdPTR): Likewise.
55606         [C99-based-standards] (SCNiPTR): Likewise.
55607         [C99-based-standards] (SCNoPTR): Likewise.
55608         [C99-based-standards] (SCNuPTR): Likewise.
55609         [C99-based-standards] (SCNxPTR): Likewise.
55610         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
55611         allow.
55612         * conform/data/stdint.h-data: Update comments to clarify
55613         requirements.
55614         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
55615         type.
55616         [C99-based standards] (INT8_MAX): Likewise.
55617         [C99-based standards] (INT16_MIN): Likewise.
55618         [C99-based standards] (INT16_MAX): Likewise.
55619         [C99-based standards] (INT32_MIN): Likewise.
55620         [C99-based standards] (INT32_MAX): Likewise.
55621         [C99-based standards] (INT64_MIN): Likewise.
55622         [C99-based standards] (INT64_MAX): Likewise.
55623         [C99-based standards] (UINT8_MAX): Likewise.
55624         [C99-based standards] (UINT16_MAX): Likewise.
55625         [C99-based standards] (UINT32_MAX): Likewise.
55626         [C99-based standards] (UINT64_MAX): Likewise.
55627         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55628         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55629         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55630         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55631         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55632         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55633         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55634         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55635         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55636         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55637         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55638         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55639         [C99-based standards] (INT_FAST8_MIN): Likewise.
55640         [C99-based standards] (INT_FAST8_MAX): Likewise.
55641         [C99-based standards] (INT_FAST16_MIN): Likewise.
55642         [C99-based standards] (INT_FAST16_MAX): Likewise.
55643         [C99-based standards] (INT_FAST32_MIN): Likewise.
55644         [C99-based standards] (INT_FAST32_MAX): Likewise.
55645         [C99-based standards] (INT_FAST64_MIN): Likewise.
55646         [C99-based standards] (INT_FAST64_MAX): Likewise.
55647         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55648         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55649         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55650         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55651         [C99-based standards] (INTPTR_MIN): Likewise.
55652         [C99-based standards] (INTPTR_MAX): Likewise.
55653         [C99-based standards] (UINTPTR_MAX): Likewise.
55654         [C99-based standards] (INTMAX_MIN): Likewise.
55655         [C99-based standards] (INTMAX_MAX): Likewise.
55656         [C99-based standards] (UINTMAX_MAX): Likewise.
55657         [C99-based standards] (PTRDIFF_MIN): Likewise.
55658         [C99-based standards] (PTRDIFF_MAX): Likewise.
55659         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55660         [C99-based standards] (SIZE_MAX): Likewise.
55661         [C99-based standards] (WCHAR_MAX): Likewise.
55662         [C99-based standards] (WINT_MAX): Likewise.
55663         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55664         constraint on value.
55665         [C99-based standards] (WCHAR_MIN): Likewise.
55666         [C99-based standards] (WINT_MIN): Likewise.
55667         [C99-based standards] (*_t): Allow.
55668         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55669         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55670         Include math.h-data and complex.h-data.  Remove all expectations
55671         of math.h and complex.h contents.
55672         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55673         at end of line.
55674         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55675         (struct tm): Expect tag.
55676         [C99-based-standards] (wcstof): Expect function.
55677         [C99-based-standards] (wcstold): Likewise.
55678         [C99-based-standards] (wcstoll): Likewise.
55679         [C99-based-standards] (wcstoull): Likewise.
55680         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55681         macro-int-constant.  Specify type.
55682         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55683         constraint on value.
55684         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55685         Specify type.
55686         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55687         Specify value.
55688         [ISO C standards]: Do not allow headers.
55689         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55690         wcs[abcdefghijklmnopqrstuvwxyz]*.
55691         [ISO C standards] (*_t): Do not allow.
55692         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55693         Expect function.
55694         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55695         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55696         Specify type.
55697         [ISO C standards]: Do not allow headers.
55698         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55699         is[abcdefghijklmnopqrstuvwxyz]*.
55700         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55701         to[abcdefghijklmnopqrstuvwxyz]*.
55702         [ISO C standards] (*_t): Do not allow.
55703         * conform/data/stdalign.h-data: New file.
55704         * conform/data/stdbool.h-data: Likewise.
55705         * conform/data/stdnoreturn.h-data: Likewise.
55706
55707 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55708
55709         [BZ #14815]
55710         * manual/filesys.texi (Directory Entries): Typo fix.
55711         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55712
55713 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55714
55715         * elf/elf.h (EM_AARCH64): New macro.
55716         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55717         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55718         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55719         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55720         (R_AARCH64_TLSDESC): Likewise.
55721         (NT_ARM_TLS): Likewise.
55722         (NT_ARM_HW_BREAK): Likewise.
55723         (NT_ARM_HW_WATCH): Likewise.
55724
55725 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55726
55727         [BZ #14811]
55728         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55729         (__ieee754_powl): Saturate nonzero exponents with absolute value
55730         below 0x1p-79 to +/- 0x1p-79.
55731         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55732         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55733         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55734         nonzero exponents with absolute value below 0x1p-32 to +/-
55735         0x1p-32.
55736         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55737         (__ieee754_powl): Saturate nonzero exponents with absolute value
55738         below 0x1p-79 to +/- 0x1p-79.
55739         * math/libm-test.inc (pow_test): Add more tests.
55740
55741 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55742
55743         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55744         _dl_s390_cap_flags with kernel. Increase string length.
55745         (_dl_s390_platforms): Add z196 and zEC12.
55746
55747 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55748
55749         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55750         Change XOPEN21K to XOPEN2K.
55751
55752 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55753
55754         * string/memmove.c: Use memcpy when possible.
55755
55756 2012-11-06  Andreas Jaeger  <aj@suse.de>
55757
55758         * po/eo.po: Update from translation team.
55759
55760 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55761
55762         [BZ #14793]
55763         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55764         exponent and small x and y exponents, scale x or y up.  Increase
55765         by 2 the exponent used in scaling up.
55766         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55767         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55768         * math/libm-test.inc (fma_test): Add more tests.
55769         (fma_test_towardzero): Likewise.
55770         (fma_test_downward): Likewise.
55771         (fma_test_upward): Likewise.
55772
55773 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55774
55775         [BZ #14805]
55776         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55777         fenv_t *.
55778
55779         [BZ #14801]
55780         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55781         namespace for names of struct fields.
55782         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55783         fenv_t fields.
55784         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55785         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55786
55787 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55788
55789         [BZ #3665]
55790         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55791
55792 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55793
55794         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55795         PTR_DEMANGLE.
55796
55797         [BZ #5246]
55798         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55799         PTR_DEMANGLE.
55800
55801 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55802
55803         [BZ #14797]
55804         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55805         definitely overflow as x * y not x * y + z.
55806         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55807         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55808         * math/libm-test.inc (fma_test): Add more tests.
55809         (fma_test_towardzero): Likewise.
55810         (fma_test_downward): Likewise.
55811         (fma_test_upward): Likewise.
55812
55813 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55814
55815         [BZ #157]
55816
55817         * include/stub-tag.h: Remove file.
55818         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55819         '#include' of it.
55820         * manual/maint.texi (Porting): Don't reference it.
55821         * Makerules ($(objpfx)stubs): Likewise.
55822         * dirent/closedir.c: Don't include <stub-tag.h>.
55823         * dirent/dirfd.c: Likewise.
55824         * dirent/fdopendir.c: Likewise.
55825         * dirent/getdents.c: Likewise.
55826         * dirent/getdents64.c: Likewise.
55827         * dirent/opendir.c: Likewise.
55828         * dirent/readdir.c: Likewise.
55829         * dirent/readdir64.c: Likewise.
55830         * dirent/readdir64_r.c: Likewise.
55831         * dirent/readdir_r.c: Likewise.
55832         * dirent/rewinddir.c: Likewise.
55833         * dirent/seekdir.c: Likewise.
55834         * dirent/telldir.c: Likewise.
55835         * gmon/profil.c: Likewise.
55836         * grp/setgroups.c: Likewise.
55837         * inet/if_index.c: Likewise.
55838         * io/access.c: Likewise.
55839         * io/chdir.c: Likewise.
55840         * io/chmod.c: Likewise.
55841         * io/chown.c: Likewise.
55842         * io/close.c: Likewise.
55843         * io/dup.c: Likewise.
55844         * io/dup2.c: Likewise.
55845         * io/dup3.c: Likewise.
55846         * io/euidaccess.c: Likewise.
55847         * io/faccessat.c: Likewise.
55848         * io/fchdir.c: Likewise.
55849         * io/fchmod.c: Likewise.
55850         * io/fchmodat.c: Likewise.
55851         * io/fchown.c: Likewise.
55852         * io/fchownat.c: Likewise.
55853         * io/fcntl.c: Likewise.
55854         * io/flock.c: Likewise.
55855         * io/fstatfs.c: Likewise.
55856         * io/fstatfs64.c: Likewise.
55857         * io/fstatvfs.c: Likewise.
55858         * io/fstatvfs64.c: Likewise.
55859         * io/futimens.c: Likewise.
55860         * io/fxstat.c: Likewise.
55861         * io/fxstat64.c: Likewise.
55862         * io/fxstatat.c: Likewise.
55863         * io/fxstatat64.c: Likewise.
55864         * io/getcwd.c: Likewise.
55865         * io/isatty.c: Likewise.
55866         * io/lchmod.c: Likewise.
55867         * io/lchown.c: Likewise.
55868         * io/link.c: Likewise.
55869         * io/linkat.c: Likewise.
55870         * io/lseek.c: Likewise.
55871         * io/lseek64.c: Likewise.
55872         * io/lxstat64.c: Likewise.
55873         * io/mkdir.c: Likewise.
55874         * io/mkdirat.c: Likewise.
55875         * io/mkfifo.c: Likewise.
55876         * io/mkfifoat.c: Likewise.
55877         * io/open.c: Likewise.
55878         * io/open64.c: Likewise.
55879         * io/openat.c: Likewise.
55880         * io/openat64.c: Likewise.
55881         * io/pipe.c: Likewise.
55882         * io/pipe2.c: Likewise.
55883         * io/poll.c: Likewise.
55884         * io/posix_fadvise.c: Likewise.
55885         * io/posix_fadvise64.c: Likewise.
55886         * io/posix_fallocate.c: Likewise.
55887         * io/posix_fallocate64.c: Likewise.
55888         * io/read.c: Likewise.
55889         * io/readlink.c: Likewise.
55890         * io/readlinkat.c: Likewise.
55891         * io/rmdir.c: Likewise.
55892         * io/sendfile.c: Likewise.
55893         * io/sendfile64.c: Likewise.
55894         * io/statfs.c: Likewise.
55895         * io/statfs64.c: Likewise.
55896         * io/statvfs.c: Likewise.
55897         * io/statvfs64.c: Likewise.
55898         * io/symlink.c: Likewise.
55899         * io/symlinkat.c: Likewise.
55900         * io/ttyname.c: Likewise.
55901         * io/ttyname_r.c: Likewise.
55902         * io/umask.c: Likewise.
55903         * io/unlink.c: Likewise.
55904         * io/unlinkat.c: Likewise.
55905         * io/utime.c: Likewise.
55906         * io/utimensat.c: Likewise.
55907         * io/write.c: Likewise.
55908         * io/xmknod.c: Likewise.
55909         * io/xmknodat.c: Likewise.
55910         * io/xstat.c: Likewise.
55911         * io/xstat64.c: Likewise.
55912         * login/getpt.c: Likewise.
55913         * login/grantpt.c: Likewise.
55914         * login/unlockpt.c: Likewise.
55915         * math/e_acoshl.c: Likewise.
55916         * math/e_acosl.c: Likewise.
55917         * math/e_asinl.c: Likewise.
55918         * math/e_atan2l.c: Likewise.
55919         * math/e_atanhl.c: Likewise.
55920         * math/e_coshl.c: Likewise.
55921         * math/e_expl.c: Likewise.
55922         * math/e_fmodl.c: Likewise.
55923         * math/e_gammal_r.c: Likewise.
55924         * math/e_hypotl.c: Likewise.
55925         * math/e_j0l.c: Likewise.
55926         * math/e_j1l.c: Likewise.
55927         * math/e_jnl.c: Likewise.
55928         * math/e_lgammal_r.c: Likewise.
55929         * math/e_log10l.c: Likewise.
55930         * math/e_log2l.c: Likewise.
55931         * math/e_logl.c: Likewise.
55932         * math/e_powl.c: Likewise.
55933         * math/e_rem_pio2l.c: Likewise.
55934         * math/e_sinhl.c: Likewise.
55935         * math/e_sqrtl.c: Likewise.
55936         * math/fclrexcpt.c: Likewise.
55937         * math/fedisblxcpt.c: Likewise.
55938         * math/feenablxcpt.c: Likewise.
55939         * math/fegetenv.c: Likewise.
55940         * math/fegetexcept.c: Likewise.
55941         * math/fegetround.c: Likewise.
55942         * math/feholdexcpt.c: Likewise.
55943         * math/fesetenv.c: Likewise.
55944         * math/fesetround.c: Likewise.
55945         * math/feupdateenv.c: Likewise.
55946         * math/fgetexcptflg.c: Likewise.
55947         * math/fraiseexcpt.c: Likewise.
55948         * math/fsetexcptflg.c: Likewise.
55949         * math/ftestexcept.c: Likewise.
55950         * math/k_cosl.c: Likewise.
55951         * math/k_rem_pio2l.c: Likewise.
55952         * math/k_sinl.c: Likewise.
55953         * math/k_tanl.c: Likewise.
55954         * math/s_asinhl.c: Likewise.
55955         * math/s_atanl.c: Likewise.
55956         * math/s_cbrtl.c: Likewise.
55957         * math/s_erfl.c: Likewise.
55958         * math/s_expm1l.c: Likewise.
55959         * math/s_log1pl.c: Likewise.
55960         * math/s_tanhl.c: Likewise.
55961         * misc/acct.c: Likewise.
55962         * misc/brk.c: Likewise.
55963         * misc/chflags.c: Likewise.
55964         * misc/chroot.c: Likewise.
55965         * misc/fchflags.c: Likewise.
55966         * misc/fgetxattr.c: Likewise.
55967         * misc/flistxattr.c: Likewise.
55968         * misc/fremovexattr.c: Likewise.
55969         * misc/fsetxattr.c: Likewise.
55970         * misc/fsync.c: Likewise.
55971         * misc/ftruncate.c: Likewise.
55972         * misc/futimes.c: Likewise.
55973         * misc/futimesat.c: Likewise.
55974         * misc/getdomain.c: Likewise.
55975         * misc/getdtsz.c: Likewise.
55976         * misc/gethostid.c: Likewise.
55977         * misc/gethostname.c: Likewise.
55978         * misc/getloadavg.c: Likewise.
55979         * misc/getpagesize.c: Likewise.
55980         * misc/getsysstats.c: Likewise.
55981         * misc/getxattr.c: Likewise.
55982         * misc/gtty.c: Likewise.
55983         * misc/ioctl.c: Likewise.
55984         * misc/lgetxattr.c: Likewise.
55985         * misc/listxattr.c: Likewise.
55986         * misc/llistxattr.c: Likewise.
55987         * misc/lremovexattr.c: Likewise.
55988         * misc/lsetxattr.c: Likewise.
55989         * misc/lutimes.c: Likewise.
55990         * misc/madvise.c: Likewise.
55991         * misc/mincore.c: Likewise.
55992         * misc/mlock.c: Likewise.
55993         * misc/mlockall.c: Likewise.
55994         * misc/mmap.c: Likewise.
55995         * misc/mprotect.c: Likewise.
55996         * misc/msync.c: Likewise.
55997         * misc/munlock.c: Likewise.
55998         * misc/munlockall.c: Likewise.
55999         * misc/munmap.c: Likewise.
56000         * misc/preadv.c: Likewise.
56001         * misc/preadv64.c: Likewise.
56002         * misc/ptrace.c: Likewise.
56003         * misc/pwritev.c: Likewise.
56004         * misc/pwritev64.c: Likewise.
56005         * misc/readv.c: Likewise.
56006         * misc/reboot.c: Likewise.
56007         * misc/remap_file_pages.c: Likewise.
56008         * misc/removexattr.c: Likewise.
56009         * misc/revoke.c: Likewise.
56010         * misc/select.c: Likewise.
56011         * misc/setdomain.c: Likewise.
56012         * misc/setegid.c: Likewise.
56013         * misc/seteuid.c: Likewise.
56014         * misc/sethostid.c: Likewise.
56015         * misc/sethostname.c: Likewise.
56016         * misc/setregid.c: Likewise.
56017         * misc/setreuid.c: Likewise.
56018         * misc/setxattr.c: Likewise.
56019         * misc/sstk.c: Likewise.
56020         * misc/stty.c: Likewise.
56021         * misc/swapoff.c: Likewise.
56022         * misc/swapon.c: Likewise.
56023         * misc/sync.c: Likewise.
56024         * misc/syncfs.c: Likewise.
56025         * misc/syscall.c: Likewise.
56026         * misc/truncate.c: Likewise.
56027         * misc/ualarm.c: Likewise.
56028         * misc/usleep.c: Likewise.
56029         * misc/ustat.c: Likewise.
56030         * misc/utimes.c: Likewise.
56031         * misc/vhangup.c: Likewise.
56032         * misc/writev.c: Likewise.
56033         * posix/_exit.c: Likewise.
56034         * posix/alarm.c: Likewise.
56035         * posix/execve.c: Likewise.
56036         * posix/fexecve.c: Likewise.
56037         * posix/fork.c: Likewise.
56038         * posix/fpathconf.c: Likewise.
56039         * posix/getaddrinfo.c: Likewise.
56040         * posix/getegid.c: Likewise.
56041         * posix/geteuid.c: Likewise.
56042         * posix/getgid.c: Likewise.
56043         * posix/getgroups.c: Likewise.
56044         * posix/getlogin.c: Likewise.
56045         * posix/getlogin_r.c: Likewise.
56046         * posix/getpgid.c: Likewise.
56047         * posix/getpid.c: Likewise.
56048         * posix/getppid.c: Likewise.
56049         * posix/getresgid.c: Likewise.
56050         * posix/getresuid.c: Likewise.
56051         * posix/getsid.c: Likewise.
56052         * posix/getuid.c: Likewise.
56053         * posix/glob64.c: Likewise.
56054         * posix/nanosleep.c: Likewise.
56055         * posix/pathconf.c: Likewise.
56056         * posix/pause.c: Likewise.
56057         * posix/posix_madvise.c: Likewise.
56058         * posix/pread.c: Likewise.
56059         * posix/pread64.c: Likewise.
56060         * posix/pwrite.c: Likewise.
56061         * posix/pwrite64.c: Likewise.
56062         * posix/sched_getaffinity.c: Likewise.
56063         * posix/sched_getp.c: Likewise.
56064         * posix/sched_gets.c: Likewise.
56065         * posix/sched_primax.c: Likewise.
56066         * posix/sched_primin.c: Likewise.
56067         * posix/sched_rr_gi.c: Likewise.
56068         * posix/sched_setaffinity.c: Likewise.
56069         * posix/sched_setp.c: Likewise.
56070         * posix/sched_sets.c: Likewise.
56071         * posix/sched_yield.c: Likewise.
56072         * posix/setgid.c: Likewise.
56073         * posix/setlogin.c: Likewise.
56074         * posix/setpgid.c: Likewise.
56075         * posix/setresgid.c: Likewise.
56076         * posix/setresuid.c: Likewise.
56077         * posix/setsid.c: Likewise.
56078         * posix/setuid.c: Likewise.
56079         * posix/sleep.c: Likewise.
56080         * posix/spawni.c: Likewise.
56081         * posix/sysconf.c: Likewise.
56082         * posix/times.c: Likewise.
56083         * posix/wait.c: Likewise.
56084         * posix/wait3.c: Likewise.
56085         * posix/wait4.c: Likewise.
56086         * posix/waitpid.c: Likewise.
56087         * resolv/gai_sigqueue.c: Likewise.
56088         * resource/getpriority.c: Likewise.
56089         * resource/getrlimit.c: Likewise.
56090         * resource/getrusage.c: Likewise.
56091         * resource/nice.c: Likewise.
56092         * resource/setpriority.c: Likewise.
56093         * resource/setrlimit.c: Likewise.
56094         * resource/ulimit.c: Likewise.
56095         * rt/aio_cancel.c: Likewise.
56096         * rt/aio_fsync.c: Likewise.
56097         * rt/aio_read.c: Likewise.
56098         * rt/aio_sigqueue.c: Likewise.
56099         * rt/aio_suspend.c: Likewise.
56100         * rt/aio_write.c: Likewise.
56101         * rt/clock_getres.c: Likewise.
56102         * rt/clock_gettime.c: Likewise.
56103         * rt/clock_nanosleep.c: Likewise.
56104         * rt/clock_settime.c: Likewise.
56105         * rt/lio_listio.c: Likewise.
56106         * rt/mq_close.c: Likewise.
56107         * rt/mq_getattr.c: Likewise.
56108         * rt/mq_notify.c: Likewise.
56109         * rt/mq_open.c: Likewise.
56110         * rt/mq_receive.c: Likewise.
56111         * rt/mq_send.c: Likewise.
56112         * rt/mq_setattr.c: Likewise.
56113         * rt/mq_timedreceive.c: Likewise.
56114         * rt/mq_timedsend.c: Likewise.
56115         * rt/mq_unlink.c: Likewise.
56116         * rt/shm_open.c: Likewise.
56117         * rt/shm_unlink.c: Likewise.
56118         * rt/timer_create.c: Likewise.
56119         * rt/timer_delete.c: Likewise.
56120         * rt/timer_getoverr.c: Likewise.
56121         * rt/timer_gettime.c: Likewise.
56122         * rt/timer_settime.c: Likewise.
56123         * setjmp/__longjmp.c: Likewise.
56124         * setjmp/setjmp.c: Likewise.
56125         * signal/kill.c: Likewise.
56126         * signal/killpg.c: Likewise.
56127         * signal/raise.c: Likewise.
56128         * signal/sigaction.c: Likewise.
56129         * signal/sigaltstack.c: Likewise.
56130         * signal/sigblock.c: Likewise.
56131         * signal/sigignore.c: Likewise.
56132         * signal/sigintr.c: Likewise.
56133         * signal/signal.c: Likewise.
56134         * signal/sigpause.c: Likewise.
56135         * signal/sigpending.c: Likewise.
56136         * signal/sigqueue.c: Likewise.
56137         * signal/sigreturn.c: Likewise.
56138         * signal/sigset.c: Likewise.
56139         * signal/sigsetmask.c: Likewise.
56140         * signal/sigstack.c: Likewise.
56141         * signal/sigsuspend.c: Likewise.
56142         * signal/sigtimedwait.c: Likewise.
56143         * signal/sigvec.c: Likewise.
56144         * signal/sigwait.c: Likewise.
56145         * signal/sigwaitinfo.c: Likewise.
56146         * signal/sysv_signal.c: Likewise.
56147         * socket/accept.c: Likewise.
56148         * socket/accept4.c: Likewise.
56149         * socket/bind.c: Likewise.
56150         * socket/connect.c: Likewise.
56151         * socket/getpeername.c: Likewise.
56152         * socket/getsockname.c: Likewise.
56153         * socket/getsockopt.c: Likewise.
56154         * socket/isfdtype.c: Likewise.
56155         * socket/listen.c: Likewise.
56156         * socket/recv.c: Likewise.
56157         * socket/recvfrom.c: Likewise.
56158         * socket/recvmsg.c: Likewise.
56159         * socket/send.c: Likewise.
56160         * socket/sendmsg.c: Likewise.
56161         * socket/sendto.c: Likewise.
56162         * socket/setsockopt.c: Likewise.
56163         * socket/shutdown.c: Likewise.
56164         * socket/sockatmark.c: Likewise.
56165         * socket/socket.c: Likewise.
56166         * socket/socketpair.c: Likewise.
56167         * stdio-common/ctermid.c: Likewise.
56168         * stdio-common/cuserid.c: Likewise.
56169         * stdio-common/remove.c: Likewise.
56170         * stdio-common/rename.c: Likewise.
56171         * stdio-common/renameat.c: Likewise.
56172         * stdio-common/tempname.c: Likewise.
56173         * stdlib/getcontext.c: Likewise.
56174         * stdlib/makecontext.c: Likewise.
56175         * stdlib/setcontext.c: Likewise.
56176         * stdlib/swapcontext.c: Likewise.
56177         * stdlib/system.c: Likewise.
56178         * streams/fattach.c: Likewise.
56179         * streams/fdetach.c: Likewise.
56180         * streams/getmsg.c: Likewise.
56181         * streams/getpmsg.c: Likewise.
56182         * streams/putmsg.c: Likewise.
56183         * streams/putpmsg.c: Likewise.
56184         * sysdeps/unix/bsd/getpt.c: Likewise.
56185         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
56186         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
56187         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
56188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
56189         Likewise.
56190         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
56191         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
56192         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
56193         * sysvipc/msgctl.c: Likewise.
56194         * sysvipc/msgget.c: Likewise.
56195         * sysvipc/msgrcv.c: Likewise.
56196         * sysvipc/msgsnd.c: Likewise.
56197         * sysvipc/semctl.c: Likewise.
56198         * sysvipc/semget.c: Likewise.
56199         * sysvipc/semop.c: Likewise.
56200         * sysvipc/semtimedop.c: Likewise.
56201         * sysvipc/shmat.c: Likewise.
56202         * sysvipc/shmctl.c: Likewise.
56203         * sysvipc/shmdt.c: Likewise.
56204         * sysvipc/shmget.c: Likewise.
56205         * termios/tcdrain.c: Likewise.
56206         * termios/tcflow.c: Likewise.
56207         * termios/tcflush.c: Likewise.
56208         * termios/tcgetattr.c: Likewise.
56209         * termios/tcgetpgrp.c: Likewise.
56210         * termios/tcsendbrk.c: Likewise.
56211         * termios/tcsetattr.c: Likewise.
56212         * termios/tcsetpgrp.c: Likewise.
56213         * time/adjtime.c: Likewise.
56214         * time/clock.c: Likewise.
56215         * time/getitimer.c: Likewise.
56216         * time/gettimeofday.c: Likewise.
56217         * time/setitimer.c: Likewise.
56218         * time/settimeofday.c: Likewise.
56219         * time/stime.c: Likewise.
56220         * time/time.c: Likewise.
56221
56222 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
56223
56224         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
56225         /usr/old/bin.
56226
56227         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
56228         instead of spaces.
56229         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
56230
56231 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
56232
56233         [BZ #14796]
56234         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
56235         FE_TONEAREST before applying Dekker multiplication and Knuth
56236         addition.  Clear inexact exceptions and check for exact zero
56237         results afterwards.
56238         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56239         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56240         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56241         * math/libm-test.inc (fma_test): Add more tests.
56242         (fma_test_towardzero): Likewise.
56243         (fma_test_downward): Likewise.
56244         (fma_test_upward): Likewise.
56245         * sysdeps/generic/math_private.h (default_libc_fesetround): New
56246         function.
56247         (libc_fesetround): New macro.
56248         (libc_fesetroundf): Likewise.
56249         (libc_fesetroundl): Likewise.
56250         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
56251         function.
56252         (libc_fesetround_387): Likewise.
56253         (libc_fesetroundf): New macro.
56254         (libc_fesetround): Likewise.
56255         (libc_fesetroundl): Likewise.
56256         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
56257         function.
56258         (libc_fesetroundf): New macro.
56259         (libc_fesetround): Likewise.
56260         (libc_fesetroundl): Likewise.
56261         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
56262         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
56263         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
56264         libm_hidden_ver.
56265         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
56266         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
56267         libm_hidden_def.
56268         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
56269         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
56270         libm_hidden_ver.
56271         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
56272         libm_hidden_def.
56273
56274         [BZ #3439]
56275         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
56276         integer constant usable in #if and use that to give value to enum
56277         constant.
56278         (FE_DIVBYZERO): Likewise.
56279         (FE_UNDERFLOW): Likewise.
56280         (FE_OVERFLOW): Likewise.
56281         (FE_INVALID): Likewise.
56282         (FE_INVALID_SNAN): Likewise.
56283         (FE_INVALID_ISI): Likewise.
56284         (FE_INVALID_IDI): Likewise.
56285         (FE_INVALID_ZDZ): Likewise.
56286         (FE_INVALID_IMZ): Likewise.
56287         (FE_INVALID_COMPARE): Likewise.
56288         (FE_INVALID_SOFTWARE): Likewise.
56289         (FE_INVALID_SQRT): Likewise.
56290         (FE_INVALID_INTEGER_CONVERSION): Likewise.
56291         (FE_TONEAREST): Likewise.
56292         (FE_TOWARDZERO): Likewise.
56293         (FE_UPWARD): Likewise.
56294         (FE_DOWNWARD): Likewise.
56295         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
56296         (FE_DIVBYZERO): Likewise.
56297         (FE_OVERFLOW): Likewise.
56298         (FE_UNDERFLOW): Likewise.
56299         (FE_INEXACT): Likewise.
56300         (FE_TONEAREST): Likewise.
56301         (FE_DOWNWARD): Likewise.
56302         (FE_UPWARD): Likewise.
56303         (FE_TOWARDZERO): Likewise.
56304         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
56305         (FE_UNDERFLOW): Likewise.
56306         (FE_OVERFLOW): Likewise.
56307         (FE_DIVBYZERO): Likewise.
56308         (FE_INVALID): Likewise.
56309         (FE_TONEAREST): Likewise.
56310         (FE_TOWARDZERO): Likewise.
56311         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
56312         (FE_OVERFLOW): Likewise.
56313         (FE_UNDERFLOW): Likewise.
56314         (FE_DIVBYZERO): Likewise.
56315         (FE_INEXACT): Likewise.
56316         (FE_TONEAREST): Likewise.
56317         (FE_TOWARDZERO): Likewise.
56318         (FE_UPWARD): Likewise.
56319         (FE_DOWNWARD): Likewise.
56320         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
56321         (FE_DIVBYZERO): Likewise.
56322         (FE_OVERFLOW): Likewise.
56323         (FE_UNDERFLOW): Likewise.
56324         (FE_INEXACT): Likewise.
56325         (FE_TONEAREST): Likewise.
56326         (FE_DOWNWARD): Likewise.
56327         (FE_UPWARD): Likewise.
56328         (FE_TOWARDZERO): Likewise.
56329
56330 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
56331
56332         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
56333
56334 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
56335
56336         * scripts/cross-test-ssh.sh (command): Use newlines to separate
56337         commands.  Quote $PWD.
56338         (blacklist_exports): Don't use remove_newlines.  Replace "declare
56339         -x" by "export".
56340         (remove_newlines): Remove.
56341
56342 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
56343
56344         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
56345         * stdlib/stdlib.h (atof): Moved to ...
56346         * include/bits/stdlib-float.h: Here.  New file.
56347         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
56348         * stdlib/bits/stdlib-float.h: New file.
56349         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
56350         -mno-sse -mno-mmx.
56351         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
56352         <xmmintrin.h>.
56353
56354 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56355
56356         * conform/conformtest.pl (@headers): Add fenv.h.
56357         * conform/data/fenv.h-data: New file.
56358         * include/fenv.h [_ISOMAC]: Disable all contents of file except
56359         include of <math/fenv.h>.
56360
56361         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
56362         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
56363         && !UNIX98].  Enables tests for XOPEN2K8.
56364         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
56365         POSIX2008]: Likewise.
56366
56367         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
56368         (struct rusage): Do not expect type or its members.
56369
56370         [BZ #3439]
56371         * math/math.h (FP_NAN): Define macro to integer constant usable in
56372         #if and use that to give value to enum constant.
56373         (FP_INFINITE): Likewise.
56374         (FP_ZERO): Likewise.
56375         (FP_SUBNORMAL): Likewise.
56376         (FP_NORMAL): Likewise.
56377
56378 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
56379
56380         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
56381         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
56382         arguments.
56383
56384 2012-11-02  Roland McGrath  <roland@hack.frob.com>
56385
56386         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
56387         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
56388         autoconf-time if not.
56389         * configure.in: Remove AC_PREREQ.
56390
56391 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56392
56393         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
56394         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
56395         of the internal implementation.
56396
56397 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56398
56399         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
56400         except include of <misc/sys/syslog.h>.
56401
56402 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56403
56404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
56405         function returns with a NULL context exit with zero.
56406
56407 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56408
56409         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
56410
56411 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
56412
56413         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
56414         (run_program_cmd): This.
56415         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
56416         (tst_langinfo): New variable.  Use it.
56417
56418 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
56419
56420         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
56421         floating point opcodes.
56422
56423 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56424
56425         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
56426         variable.
56427
56428         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
56429
56430         * sysdeps/mach/hurd/powerpc: Remove directory.
56431         * sysdeps/mach/powerpc: Likewise.
56432
56433 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56434
56435         * scripts/check-local-headers.sh: Ignore c++ headers.
56436
56437 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56438
56439         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
56440         __libc_cleanup_region_start argument.
56441
56442 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
56443
56444         [BZ #14784]
56445         [BZ #14785]
56446         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
56447         x * y using scaling, not as x * y + z.
56448         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56449         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56450         * math/libm-test.inc (fma_test): Add more tests.
56451         (fma_test_towardzero): Likewise.
56452         (fma_test_downward): Likewise.
56453         (fma_test_upward): Likewise.
56454
56455 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56456
56457         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
56458
56459 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56460
56461         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
56462         New variable.
56463
56464 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
56465
56466         * rt/tst-shm.c (worker): Correct checking for mmap failure.
56467
56468 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56469
56470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56471         Fix sort order.
56472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56473         Likewise.
56474
56475 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56476
56477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56478         Fix the order of the list for glibc 2.17.
56479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56480         Likewise.
56481
56482 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56483
56484         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56485
56486 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56487
56488         [BZ #14610]
56489         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
56490         for low part of x being zero before using __atanl (y).
56491         * math/libm-test.inc (atan2_test): Add another test.
56492
56493         * manual/install.texi (Configuring and compiling): Document
56494         general use of test-wrapper and test-wrapper-env.
56495         * INSTALL: Regenerated.
56496
56497         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
56498         (__fma): Do not extract and scale down low bits on after-rounding
56499         systems when result rounded to normal precision would have normal
56500         exponent.
56501         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
56502         (__fmal): Do not extract and scale down low bits on after-rounding
56503         systems when result rounded to normal precision would have normal
56504         exponent.
56505         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
56506         (__fmal): Do not extract and scale down low bits on after-rounding
56507         systems when result rounded to normal precision would have normal
56508         exponent.
56509         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56510         macro.
56511         (fma_test): Add more tests.
56512         (fma_test_towardzero): Likewise.
56513         (fma_test_downward): Likewise.
56514         (fma_test_upward): Likewise.
56515
56516 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56517
56518         * sysdeps/i386/tininess.h: Renamed to ...
56519         * sysdeps/x86/tininess.h: This.
56520         * sysdeps/x86_64/tininess.h: Removed.
56521
56522 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56523
56524         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
56525         input.  Use $(build-program-cmd).
56526         ($(objpfx)tst-array1-static.out): Likewise.
56527         ($(objpfx)tst-array2.out): Likewise.
56528         ($(objpfx)tst-array3.out): Likewise.
56529         ($(objpfx)tst-array4.out): Likewise.
56530         ($(objpfx)tst-array5.out): Likewise.
56531         ($(objpfx)tst-array5-static.out): Likewise.
56532
56533 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
56534
56535         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
56536         if defined.
56537
56538         * nss/nsswitch.h (nss_interface_function): Provide new
56539         macro for use with NSS functions.
56540         * grp/initgroups.c: Use new macro.
56541         * nss/getXXbyYY.c: Likewise.
56542         * nss/getXXbyYY_r.c: Likewise.
56543         * nss/getXXent.c: Likewise.
56544         * nss/getXXent_r.c: Likewise.
56545         * sysdeps/posix/getaddrinfo.c: Likewise.
56546
56547 2012-10-30  Andreas Jaeger  <aj@suse.de>
56548
56549         * po/ru.po: Update Russion translation from translation project.
56550
56551 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56552
56553         [BZ #14152]
56554         [BZ #14783]
56555         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
56556         result and shift together with sticky bit instead of replicating
56557         round-to-nearest rounding.
56558         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56559         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56560         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
56561         missing underflow exceptions.
56562         (fma_test_towardzero): Add more tests.
56563         (fma_test_downward): Likewise.
56564         (fma_test_upward): Likewise.
56565
56566         [BZ #14047]
56567         * sysdeps/generic/tininess.h: New file.
56568         * sysdeps/i386/tininess.h: Likewise.
56569         * sysdeps/sh/tininess.h: Likewise.
56570         * sysdeps/x86_64/tininess.h: Likewise.
56571         * stdlib/tst-strtod-underflow.c: Likewise.
56572         * stdlib/tst-tininess.c: Likewise.
56573         * stdlib/strtod_l.c: Include <tininess.h>.
56574         (round_and_return): Do not set errno for exact underflow cases.
56575         Force an underflow exception when setting errno for underflow.
56576         Determine underflow based on rounding to normal precision if
56577         TININESS_AFTER_ROUNDING.
56578         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
56579         ERANGE for exact underflow cases.
56580         * stdlib/Makefile (tests): Add tst-tininess and
56581         tst-strtod-underflow.
56582         ($(objpfx)tst-tininess): Use $(link-libm).
56583         ($(objpfx)tst-strtod-underflow): Likewise.
56584
56585 2012-10-30  Andreas Jaeger  <aj@suse.de>
56586
56587         [BZ#14767]
56588         * elf/Makefile (tests): Remove conditional for have-initfini-array
56589         since this is now always required and the variable does not exist
56590         anymore.
56591         (tests-static): Likewise.
56592         (modules-names): Likewise.
56593
56594         * po/eo.po: Add Esperanto translation from translation project.
56595
56596         * elf/tst-array1.c (fini_array): Make writeable so that it can be
56597         merged with constructor/destructor.
56598         (init_array): Likewise.
56599         * elf/tst-array2dep.c (fini_array): Likewise.
56600         (init_array): Likewise.
56601
56602 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
56603
56604         * manual/message.texi: Delete @cartouche tags.
56605
56606 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
56607
56608         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
56609         EOPNOTSUPP.
56610         * sysdeps/mach/hurd/fsync.c: Likewise.
56611
56612         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
56613         [_POSIX_REALTIME_SIGNALS]: Change condition to
56614         [_POSIX_REALTIME_SIGNALS > 0].
56615
56616 2012-10-27  Andreas Jaeger  <aj@suse.de>
56617
56618         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
56619         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
56620         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
56621         [__WORDSIZE != 64]: Likewise.
56622
56623 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56624
56625         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56626         *  iconvdata/tst-tables.sh: Likewise.
56627
56628 2012-10-25  David S. Miller  <davem@davemloft.net>
56629
56630         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56631         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56632         of strtoull.
56633
56634         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56635         ifunc-impl-list.c
56636         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56637         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56638         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56639         file.
56640
56641 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56642
56643         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56644         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56645         __getdirentries.
56646
56647 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56648             Jim Blandy  <jimb@codesourcery.com>
56649
56650         * scripts/cross-test-ssh.sh: New file.
56651         * manual/install.texi (Configuring and compiling): Document use of
56652         cross-test-ssh.sh.
56653         * INSTALL: Regenerated.
56654
56655 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56656
56657         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56658         EOPNOTSUPP.
56659
56660 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56661
56662         * Makeconfig (run-program-prefix): Fix comment.
56663
56664 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56665             Jim Blandy  <jimb@codesourcery.com>
56666
56667         * Makeconfig (test-wrapper): New variable,
56668         (test-wrapper-env): Likewise.
56669         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56670         (run-built-tests): Define to yes.
56671         (run-program-prefix): Use $(test-wrapper).
56672         (built-program-cmd): Likewise.
56673         * Rules (make-test-out): Use $(test-wrapper-env) and
56674         $(host-built-program-cmd).
56675         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56676         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56677         tst-pathopt.sh.
56678         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56679         $(test-wrapper-env) to tst-rtld-load-self.sh.
56680         ($(objpfx)order2.out): Use $(test-wrapper).
56681         ($(objpfx)tst-initorder.out): Likewise.
56682         ($(objpfx)tst-initorder2.out): Likewise.
56683         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56684         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56685         (test_wrapper_env): New variable.  Use it to run ld.so.
56686         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56687         Use it to run ld.so.
56688         (test_wrapper_env): Likewise.
56689         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56690         $(test-wrapper) to run-iconv-test.sh.
56691         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56692         (ICONV): Use $test_wrapper.
56693         * posix/Makefile ($(objpfx)globtest.out): Pass
56694         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56695         globtest.sh, not $(run-program-prefix).
56696         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56697         (test_wrapper): Likewise.
56698         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56699         set together with run_via_rtld_prefix.
56700         (run_program_prefix): Define in terms of test_wrapper and
56701         run_via_rtld_prefix.
56702
56703 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56704
56705         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56706         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56707         Targets removed.
56708
56709         [BZ #14743]
56710         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56711         Declare __clock_getres, __clock_gettime, __clock_settime,
56712         __clock_nanosleep, and __clock_getcpuclockid.
56713         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56714         Remove librt_hidden_def (clock_gettime).
56715         * sysdeps/unix/clock_gettime.c: Likewise.
56716         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56717         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56718         * rt/clock_getres.c: Define __clock_getres as an alias.
56719         * sysdeps/posix/clock_getres.c: Likewise.
56720         * rt/clock_settime.c: Define __clock_settime as an alias.
56721         * sysdeps/unix/clock_settime.c: Likewise.
56722         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56723         * sysdeps/unix/clock_nanosleep.c: Likewise.
56724         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56725         * rt/clock-compat.c: New file.
56726         * rt/Makefile (librt-routines): Add clock-compat and move
56727         $(clock-routines) to ...
56728         (routines): ... here, new variable.
56729         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56730         Don't add get_clockfreq here.
56731         * rt/Versions (libc: GLIBC_2.17): New version set.
56732         Add clock_* symbols here.
56733         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56734         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56735         (GLIBC_2.17): Add clock_* symbols.
56736         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56737         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56738         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56740         Likewise.
56741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56742         Likewise.
56743         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56744         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56745         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56746         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56747         * NEWS: Mention the move.
56748
56749         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56750         Use __open, __read, __close rather than their public counterparts.
56751         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56752         (__get_clockfreq_via_cpuinfo): Likewise.
56753         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56754         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56755
56756         * config.h.in (HAVE_IFUNC): New #undef.
56757         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56758         was successful.
56759         * configure: Regenerated.
56760
56761 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56762
56763         * configure.in: Move READELF check to start of file.
56764         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56765         libc_cv_asm_gnu_indirect_function in the process.
56766         * configure: Regenerated.
56767
56768 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56769
56770         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56771         send the output to /dev/null.
56772         (libc_cv_cc_with_libunwind): Likewise.
56773         (libc_cv_as_noexecstack): Likewise.
56774         * configure: Regenerate.
56775
56776 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56777
56778         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56779
56780         * posix/globtest.sh (TMPDIR): Do not set.
56781         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56782         (testout): Likewise.
56783
56784 2012-10-24  Andreas Jaeger  <aj@suse.de>
56785
56786         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56787         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56788         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56789         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56790         posix_fadvise64, posix_fallocate64.
56791
56792         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56793         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56794         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56795         Likewise.
56796         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56797         Likewise.
56798         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56799
56800         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56801         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56802         <bits/fcntl-linux.h>.
56803         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56804
56805         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56806         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56807         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56808         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56809         [__WORDSIZE != 64]: Likewise.
56810
56811 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56812
56813         * Makeconfig (run-built-tests): New variable.
56814         * Rules [$(cross-compiling) = yes]: Change condition to
56815         [$(run-built-tests) = no].
56816         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56817         to [$(run-built-tests) = yes].
56818         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56819         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56820         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56821         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56822         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56823         * io/Makefile [$(cross-compiling) = no]: Likewise.
56824         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56825         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56826         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56827         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56828         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56829         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56830         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56831         * string/Makefile [$(cross-compiling) = no]: Likewise.
56832
56833         * posix/Makefile ($(objpfx)globtest.out): Pass
56834         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56835         $(rtld-installed-name).
56836         * posix/globtest.sh (elf_objpfx): Remove variable.
56837         (rtld_installed_name): Likewise.
56838         (library_path): Likewise.
56839         (run_program_prefix): New variable.  Use for running globtest
56840         binary.
56841
56842 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56843             Joseph Myers  <joseph@codesourcery.com>
56844
56845         * Makeconfig (host-built-program-cmd): New variable.
56846         * elf/Makefile (tst-stackguard1-ARGS): Use
56847         $(host-built-program-cmd).
56848         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56849         (tst-spawn-ARGS): Likewise.
56850         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56851
56852 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56853             Jim Blandy  <jimb@codesourcery.com>
56854
56855         * Makeconfig (run-via-rtld-prefix): New variable.
56856         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56857         (built-program-cmd): Likewise.
56858
56859 2012-10-22  Andreas Jaeger  <aj@suse.de>
56860
56861         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56862         __O_RSYNC if it exists, otherwise to O_SYNC.
56863
56864 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56865             Joseph Myers  <joseph@codesourcery.com>
56866
56867         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56868         /dev/null.
56869         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56870         from /dev/null
56871         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56872         /dev/null.
56873
56874 2012-10-22  Andreas Jaeger  <aj@suse.de>
56875
56876         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56877         Define always.
56878         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56879
56880         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56881         bits/fcntl-linux.h.
56882
56883         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56884         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56885
56886         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56887         to __O_LARGEFILE.
56888         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56889         to __O_LARGEFILE.
56890
56891 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56892             Joseph Myers  <joseph@codesourcery.com>
56893
56894         * config.make.in (NM): New variable.
56895
56896 2012-10-21  Andreas Jaeger  <aj@suse.de>
56897
56898         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56899         definitions and declarations that are provided by
56900         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56901
56902 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56903
56904         [BZ #14683]
56905         * elf/Makefile (tests-static): Add tst-leaks1-static.
56906         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56907         ($(objpfx)tst-leaks1-static): New rule.
56908         ($(objpfx)tst-leaks1-static-mem): Likewise.
56909         (tst-leaks1-static-ENV): New macro.
56910         * elf/dl-open.c (dl_open_worker): Check the main application
56911         only if SHARED is defined.
56912         * elf/tst-leaks1-static.c: New file.
56913
56914 2012-10-20  Andreas Jaeger  <aj@suse.de>
56915
56916         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56917         generic values for Linux.
56918         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56919         and declarations that are provided by <bits/fcntl-linux.h> and
56920         include <bits/fcntl-linux.h>.
56921         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56922         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56923
56924 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56925
56926         * io/fcntl.h: Move include of <bits/types.h> to the top and
56927         include it unconditionally.
56928
56929 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56930
56931         * wcsmbs/Makefile (tests-ifunc): New variable.
56932         (tests): Add $(tests-ifunc).
56933         * wcsmbs/test-wcschr-ifunc.c: New file.
56934         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56935         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56936         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56937         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56938         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56939
56940         * string/Makefile (tests-ifunc): New variable.
56941         (tests): Add $(tests-ifunc).
56942         * string/test-memccpy.c (TEST_NAME): New macro.
56943         * string/test-memchr.c (TEST_NAME): Likewise.
56944         * string/test-memcmp.c (TEST_NAME): Likewise.
56945         * string/test-memcpy.c (TEST_NAME): Likewise.
56946         * string/test-memmem.c (TEST_NAME): Likewise.
56947         * string/test-memmove.c (TEST_NAME): Likewise.
56948         * string/test-memset.c (TEST_NAME): Likewise.
56949         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56950         * string/test-stpcpy.c (TEST_NAME): Likewise.
56951         * string/test-stpncpy.c (TEST_NAME): Likewise.
56952         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56953         * string/test-strcasestr.c (TEST_NAME): Likewise.
56954         * string/test-strcat.c (TEST_NAME): Likewise.
56955         * string/test-strchr.c (TEST_NAME): Likewise.
56956         * string/test-strcmp.c(TEST_NAME): Likewise.
56957         * string/test-strcpy.c (TEST_NAME): Likewise.
56958         * string/test-strcspn.c (TEST_NAME): Likewise.
56959         * string/test-strlen.c (TEST_NAME): Likewise.
56960         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56961         * string/test-strncmp.c (TEST_NAME): Likewise.
56962         * string/test-strncpy.c (TEST_NAME): Likewise.
56963         * string/test-strnlen.c (TEST_NAME): Likewise.
56964         * string/test-strpbrk.c (TEST_NAME): Likewise.
56965         * string/test-strrchr.c (TEST_NAME): Likewise.
56966         * string/test-strspn.c (TEST_NAME): Likewise.
56967         * string/test-strstr.c (TEST_NAME): Likewise.
56968         * string/test-bcopy-ifunc.c: New file.
56969         * string/test-bzero-ifunc.c: Likewise.
56970         * string/test-memccpy-ifunc.c: Likewise.
56971         * string/test-memchr-ifunc.c: Likewise.
56972         * string/test-memcmp-ifunc.c: Likewise.
56973         * string/test-memcpy-ifunc.c: Likewise.
56974         * string/test-memmem-ifunc.c: Likewise.
56975         * string/test-memmove-ifunc.c: Likewise.
56976         * string/test-mempcpy-ifunc.c: Likewise.
56977         * string/test-memset-ifunc.c: Likewise.
56978         * string/test-rawmemchr-ifunc.c: Likewise.
56979         * string/test-stpcpy-ifunc.c: Likewise.
56980         * string/test-stpncpy-ifunc.c: Likewise.
56981         * string/test-strcasecmp-ifunc.c: Likewise.
56982         * string/test-strcasestr-ifunc.c: Likewise.
56983         * string/test-strcat-ifunc.c: Likewise.
56984         * string/test-strchr-ifunc.c: Likewise.
56985         * string/test-strchrnul-ifunc.c: Likewise.
56986         * string/test-strcmp-ifunc.c: Likewise.
56987         * string/test-strcpy-ifunc.c: Likewise.
56988         * string/test-strcspn-ifunc.c: Likewise.
56989         * string/test-strlen-ifunc.c: Likewise.
56990         * string/test-strncasecmp-ifunc.c: Likewise.
56991         * string/test-strncat-ifunc.c: Likewise.
56992         * string/test-strncmp-ifunc.c: Likewise.
56993         * string/test-strncpy-ifunc.c: Likewise.
56994         * string/test-strnlen-ifunc.c: Likewise.
56995         * string/test-strpbrk-ifunc.c: Likewise.
56996         * string/test-strrchr-ifunc.c: Likewise.
56997         * string/test-strspn-ifunc.c: Likewise.
56998         * string/test-strstr-ifunc.c: Likewise.
56999
57000         * debug/Makefile (tests-ifunc): New variable.
57001         (tests): Add $(tests-ifunc).
57002         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
57003         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
57004         * debug/test-stpcpy_chk-ifunc.c: New file.
57005         * debug/test-strcpy_chk-ifunc.c: Likewise.
57006
57007 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
57008
57009         [BZ #13601]
57010         * elf/dl-load.c (open_verify): Retry read if the entire ELF
57011         header is not read in.
57012
57013 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
57014
57015         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
57016         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
57017         directly.  Pass built executable to script as
57018         $(built-program-cmd).
57019         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
57020         $testprogram without using LD_LIBRARY_PATH and $ldso.
57021
57022         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
57023         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
57024         $(rtld-installed-name).
57025         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
57026         (rtld_installed_name): Likewise.
57027         (library_path): Likewise.
57028         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
57029         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
57030         $(run-program-prefix) to tst-tables.sh.
57031         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
57032         it to run tst-table-from and tst-table-to.
57033         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
57034         Pass it to tst-table.sh.
57035         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
57036         $(run-program-prefix) to tst-gettext.sh.
57037         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
57038         tst-translit.sh.
57039         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
57040         tst-gettext2.sh.
57041         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
57042         to run tst-gettext.
57043         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
57044         to run tst-gettext2.
57045         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
57046         to run tst-translit.
57047         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
57048         $(run-program-prefix) to tst-mtrace.sh.
57049         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
57050         to run tst-mtrace.
57051         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
57052         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
57053         $(rtld-installed-name).
57054         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
57055         (rtld_installed_name): Likewise.
57056         (run_program_prefix): New variable.  Use it to run wordexp-test.
57057
57058         * Makeconfig (ARCH): Remove all definitions.
57059         (machine): Likewise.
57060         [ARCH]: Remove conditional code.
57061         [!objdir]: Give error.
57062         [!objdir] (objpfx): Remove.
57063         [!objdir] (common-objpfx): Likewise.
57064         [!objdir] (common-objdir): Likewise.
57065         * configure.in (config_makefile): Remove.  Hardcode Makefile in
57066         AC_CONFIG_FILES call.
57067         * configure: Regenerated.
57068
57069         [BZ #13888]
57070         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
57071         or TMPDIR.
57072         (testout): Likewise.
57073
57074         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
57075         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
57076         $(rtld-installed-name).
57077         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
57078         (rtld_installed_name): Likwise.
57079         (runit): Remove function.
57080         (run_getconf): New variable,  Use it for running getconf binary.
57081
57082 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
57083
57084         [BZ #14716]
57085         * string/test-memmem.c (check_result): New function.
57086         (do_one_test): Use it.
57087         (check1): New function.
57088         (test_main): Use it.
57089
57090 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
57091
57092         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
57093
57094 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
57095
57096         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
57097         (_G_LSEEK64): Likewise.
57098         (_G_MMAP64): Likewise.
57099         (_G_FSTAT64): Likewise.
57100         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
57101         (_G_LSEEK64): Likewise.
57102         (_G_MMAP64): Likewise.
57103         (_G_FSTAT64): Likewise.
57104         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
57105         unconditional.  Call __mmap64 directly.
57106         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
57107         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
57108         __lseek64 directly.
57109         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
57110         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
57111         __mmap64 directly.
57112         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
57113         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57114         __lseek64 directly.
57115         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
57116         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57117         __lseek64 directly.
57118         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
57119         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
57120         __lseek64 directly.
57121         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
57122         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
57123         __fxstat64 directly.
57124         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
57125         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
57126         unconditional.
57127         (freopen64) [!_G_OPEN64]: Remove conditional code.
57128         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
57129         unconditional.
57130         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
57131         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
57132         unconditional.
57133         (ftello64) [!_G_LSEEK64]: Remove conditional code.
57134         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
57135         unconditional.
57136         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57137         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
57138         unconditional.
57139         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
57140         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
57141         unconditional.
57142         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57143         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
57144         unconditional.
57145         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57146         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
57147         unconditional.
57148         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57149
57150 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57151
57152         [BZ #12140]
57153         * manual/memory.texi (Malloc Tunable Parameters): Add note
57154         about free list pointers overwriting some perturb bytes.
57155         Wording suggested by Roland McGrath.
57156
57157 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
57158
57159         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
57160         (lgamma_test): Likewise.
57161         (tgamma_test): Likewise.
57162
57163 2012-10-16  Florian Weimer  <fweimer@redhat.com>
57164
57165         [BZ #14700]
57166         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
57167         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
57168
57169 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
57170
57171         * NEWS: Mention BZ #14716.
57172         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
57173         when removing AVAILABLE1_USES_J macro.
57174
57175 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
57176
57177         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
57178         (__bswap_64): __uint64_t for unsigned 64-bit int.
57179
57180 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
57181
57182         * include/string.h (memmem): Declare libc hidden alias.
57183         * string/memmem.c (memmem): Define libc hidden alias.
57184         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
57185         __read, __close instead of open, read, close.
57186
57187 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
57188
57189         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
57190         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
57191         global and hidden.
57192         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
57193         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
57194         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
57195         Likewise.
57196         (__rawmemchr_sse2): Likewise.
57197         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
57198         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
57199         (__strchr_sse2): Likewise.
57200         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
57201         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
57202         (__strcasecmp_sse2): Likewise.
57203         (__strncasecmp_sse2): Likewise.
57204         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
57205         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
57206         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
57207         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
57208         (__strrchr_sse2): Likewise.
57209         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
57210         ifunc-impl-list.c.
57211         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
57212         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
57213         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
57214         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
57215         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
57216         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
57217         * sysdeps/x86_64/multiarch/memset.S: Likewise.
57218         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
57219         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
57220         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
57221         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
57222         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
57223         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
57224         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
57225         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
57226         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
57227         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
57228         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
57229         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
57230         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
57231         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
57232         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
57233         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
57234         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
57235         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
57236         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57237         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
57238         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
57239         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
57240         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
57241
57242         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
57243         global and hidden.
57244         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
57245         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
57246         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
57247         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
57248         Likewise.
57249         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
57250         Likewise.
57251         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
57252         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
57253         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
57254         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
57255         ifunc-impl-list.c.
57256         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
57257         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
57258         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
57259         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
57260         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
57261         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
57262         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
57263         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
57264         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
57265         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
57266         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
57267         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
57268         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
57269         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
57270         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
57271         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
57272         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
57273         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
57274         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
57275         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
57276         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
57277         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
57278         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
57279         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
57280         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
57281         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
57282         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
57283         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
57284         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
57285         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
57286         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
57287         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
57288         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
57289         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
57290         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
57291         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
57292         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
57293         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
57294         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
57295         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
57296         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
57297
57298         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
57299         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
57300         * include/ifunc-impl-list.h: New file.
57301         * misc/ifunc-impl-list.c: Likewise.
57302         * misc/Makefile (routines): Add ifunc-impl-list.
57303         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
57304         * string/test-string.h: Include <ifunc-impl-list.h>.
57305         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
57306         TEST_NAME]: New variables.
57307         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
57308         are defined.
57309         (test_init): Call __libc_ifunc_impl_list to initialize
57310         func_list if TEST_IFUNC and TEST_NAME are defined.
57311
57312         * string/Makefile (strop-tests): Add bcopy and bzero.
57313         * string/test-bcopy.c: New file.
57314         * string/test-bzero.c: Likewise.
57315         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
57316         defined.
57317         * string/test-memset.c: Support bzero test if TEST_BZERO is
57318         defined.
57319         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
57320         __libc_memmove.
57321         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
57322         __libc_memset.
57323         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
57324         of memset.
57325
57326 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
57327
57328         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
57329         * configure: Regenerated.
57330
57331         * Makeconfig (+link-static-before-libc): Don't include
57332         $(link-static-libc).
57333
57334         * libio/libio.h (_IO_pos_t): Remove.
57335
57336 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57337
57338         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
57339         McGrath.
57340
57341 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57342
57343         * crypt/crypt-entry.c: Include fips-private.h.
57344         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
57345         * crypt/md5c-test.c (main): Tolerate disabled MD5.
57346         * sysdeps/unix/sysv/linux/fips-private.h: New file.
57347         * sysdeps/generic/fips-private.h: New file, dummy fallback.
57348
57349 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57350
57351         * crypt/crypt-private.h: Include stdbool.h.
57352         (_ufc_setup_salt_r): Return bool.
57353         * crypt/crypt-entry.c: Include errno.h.
57354         (__crypt_r): Return NULL with EINVAL for bad salt.
57355         * crypt/crypt_util.c (bad_for_salt): New.
57356         (_ufc_setup_salt_r): Check that salt is long enough and within
57357         the specified alphabet.
57358         * crypt/badsalttest.c: New file.
57359         * crypt/Makefile (tests): Add it.
57360         ($(objpfx)badsalttest): New.
57361
57362 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
57363
57364         * NEWS: Add entry for BZ #14602.
57365
57366 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57367
57368         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
57369         type-generic.
57370         * math/libm-test.inc: Update comment listing what functions and
57371         macros are tested.
57372         (isgreater_test): New function.
57373         (isgreaterequal_test): Likewise.
57374         (isless_test): Likewise.
57375         (islessequal_test): Likewise.
57376         (islessgreater_test): Likewise.
57377         (isunordered_test): Likewise.
57378         (main): Call the new functions.
57379
57380 2012-10-09  Roland McGrath  <roland@hack.frob.com>
57381
57382         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
57383         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
57384         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
57385         * sysdeps/i386/configure: Regenerated.
57386         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
57387         * sysdeps/mach/configure: Regenerated.
57388         * sysdeps/mach/hurd/configure: Regenerated.
57389         * sysdeps/powerpc/configure: Regenerated.
57390         * sysdeps/powerpc/powerpc32/configure: Regenerated.
57391         * sysdeps/powerpc/powerpc64/configure: Regenerated.
57392         * sysdeps/s390/s390-32/configure: Regenerated.
57393         * sysdeps/s390/s390-64/configure: Regenerated.
57394         * sysdeps/sh/configure: Regenerated.
57395         * sysdeps/sparc/configure: Regenerated.
57396         * sysdeps/unix/sysv/linux/configure: Regenerated.
57397         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
57398         * sysdeps/x86_64/configure: Regenerated.
57399
57400         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
57401         defined.  Don't check if MAP is NULL.
57402
57403 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57404
57405         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
57406         (_G_stat64): Likewise.
57407         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
57408         (_G_stat64): Likewise.
57409         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
57410         instead of struct _G_stat64.
57411         * libio/fileops.c (mmap_remap_check): Likewise.
57412         (decide_maybe_mmap): Likewise.
57413         (_IO_new_file_seekoff): Likewise.
57414         (_IO_file_stat): Likewise.
57415         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
57416         _G_off64_t.
57417         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
57418         instead of struct _G_stat64.
57419         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57420
57421 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
57422
57423         [BZ #14602]
57424         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57425         Replace with ...
57426         (CHECK_EOL): New macro.
57427         (two_way_short_needle): Check beginning of haystack for EOL.  Use
57428         CHECK_EOL.
57429         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57430         Replace with CHECK_EOL.
57431         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57432         Replace with CHECK_EOL.
57433
57434 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
57435
57436         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
57437         type-generic.
57438         * math/libm-test.inc: Update comment listing what functions and
57439         macros are tested.
57440         (finite_test): New function.
57441         (isinf_test): Likewise.
57442         (isnan_test): Likewise.
57443         (fpclassify_test): Test subnormal input.
57444         (isfinite_test): Likewise.
57445         (isnormal_test): Likewise.
57446         (main): Call the new functions.
57447
57448 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
57449
57450         [BZ #14660]
57451         * Makerules (%.dynsym): Force C locale when running
57452         $(OBJDUMP) --dynamic-syms.
57453
57454 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
57455
57456         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
57457         <stdint.h>.
57458
57459 2012-10-06  David S. Miller  <davem@davemloft.net>
57460
57461         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
57462         upper 32-bits of the length value in %o2 since we use branch-on-register
57463         tests which consider the entire 64-bit register.
57464
57465 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
57466
57467         * string/test-strstr.c (check2): Add a test for page boundary.
57468
57469 2012-10-05  David S. Miller  <davem@davemloft.net>
57470
57471         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
57472         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
57473         file.
57474         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57475         sysdep_routines.
57476         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57477         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
57478         and bzero when HWCAP_SPARC_CRYPTO is present.
57479
57480 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
57481
57482         [BZ #14602]
57483         * string/test-strstr.c (check2): New function.
57484         (test_main): Call check2.
57485
57486         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
57487         and bug-strchr1.
57488         * string/bug-strcasestr1.c (do_test): Moved to ...
57489         * string/test-strcasestr.c (check1): Here.  New function.
57490         (do_one_test): Break out result checking code into ...
57491         (check_result): This.  New function.
57492         (do_one_test): Call check_result.
57493         (test_main): Call check1.
57494         * string/bug-strchr1.c (do_test): Moved to ...
57495         * string/test-strchr.c (check1): Here.  New function.
57496         (do_one_test): Break out result checking code into ...
57497         (check_result): This.  New function.
57498         (do_one_test): Call check_result.
57499         (test_main): Call check1.
57500         * string/bug-strstr1.c (main): Moved to ...
57501         * string/test-strstr.c (check1): Here.  New function.
57502         (do_one_test): Break out result checking code into ...
57503         (check_result): This.  New function.
57504         (do_one_test): Call check_result.
57505         (test_main): Call check1.
57506         * string/bug-strcasestr1.c: Removed.
57507         * string/bug-strchr1.c: Likewise.
57508         * string/bug-strstr1.c: Likewise.
57509
57510         * elf/Makefile (dl-routines): Add hwcaps.
57511         * elf/dl-support.c (_dl_important_hwcaps): Removed.
57512         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
57513         (_dl_important_hwcaps): Moved to ...
57514         * elf/dl-hwcaps.c: Here.  New file.
57515         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
57516
57517         [BZ #14557]
57518         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
57519         if IS_IN_rtld isn't defined.
57520
57521         * elf/dl-support.c (_dl_sysinfo_map): New.
57522         Include "get-dynamic-info.h" and "setup-vdso.h".
57523         (_dl_non_dynamic_init): Call setup_vdso.
57524         * elf/dynamic-link.h: Don't include <assert.h>.
57525         (elf_get_dynamic_info): Moved to ...
57526         * elf/get-dynamic-info.h: Here.  New file.
57527         * elf/dynamic-link.h: Include "get-dynamic-info.h".
57528         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
57529         * elf/setup-vdso.h: Here.  New file.
57530         * elf/rtld.c: Include "setup-vdso.h".
57531         (dl_main): Call setup_vdso.
57532
57533 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
57534
57535         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57536         creal in comment listing functions tested.  List finite, isinf,
57537         isnan, isless, islessequal, isgreater, isgreaterequal,
57538         islessgreater, isunordered, lgamma_r and pow10 as functions and
57539         macros not tested.  Mention which functions not tested are aliases
57540         for other functions.  Fix typo.  Note that signs of NaNs are not
57541         tested.
57542
57543         * scripts/config.guess: Update from config.git.
57544         * scripts/config.sub: Likewise.
57545
57546 2012-10-04  Roland McGrath  <roland@hack.frob.com>
57547
57548         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
57549         * misc/madvise.c (madvise): Renamed to __madvise.
57550         Make madvise a weak alias.
57551         * include/sys/mman.h: Declare __madvise.
57552         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
57553         * sysdeps/unix/syscalls.list
57554         (madvise): Make __madvise the strong name, and madvise a weak alias.
57555         * sysdeps/unix/sysv/linux/syscalls.list
57556         (madvise, mmap): Remove redundant entries.
57557         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
57558         * malloc/malloc.c (mtrim): Likewise.
57559         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
57560
57561 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57562
57563         * sysdeps/mach/hurd/dl-cache.c: File removed.
57564         * config.h.in (USE_LDCONFIG): New #undef.
57565         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
57566         * configure: Regenerated.
57567         * elf/Makefile (dl-routines): Add dl-cache only under
57568         [$(use-ldconfig) = yes].
57569         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
57570         cache on [USE_LDCONFIG].
57571         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
57572         [USE_LDCONFIG].
57573         * elf/rtld.c (dl_main): Likewise.
57574
57575 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
57576
57577         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
57578         _SC_LEVEL4_CACHE_LINESIZE.
57579
57580 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57581
57582         * sysdeps/unix/bsd/confstr.h: File removed.
57583
57584 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
57585
57586         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
57587         sys/sdt-config.h.
57588
57589 2012-10-02  Roland McGrath  <roland@hack.frob.com>
57590
57591         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
57592         Make 'mapoff' field ElfW(Off) rather than off_t.
57593
57594 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57595
57596         * nscd/Makefile: Remove nscd-cflags and all its users.
57597         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
57598         (CFLAGS-nonlib): Add compiler flags for nscd modules.
57599
57600         [BZ #10631]
57601         * malloc.c (malloc_printerr): Clarify error message.
57602
57603 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
57604
57605         [BZ #14648]
57606         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57607         Set bit_FMA_Usable if FMA is supported.
57608         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
57609         macro.
57610         (bit_FMA4_Usable): Updated.
57611         (index_FMA_Usable): New macro.
57612         (CPUID_FMA): Likewise.
57613         (HAS_FMA): Defined with bit_FMA_Usable.
57614
57615 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57616
57617         * bits/types.h (__swblk_t): Type removed.
57618         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
57619         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
57620         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
57621         (__SWBLK_T_TYPE): Likewise.
57622         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57623         (__SWBLK_T_TYPE): Likewise.
57624         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57625         (__SWBLK_T_TYPE): Likewise.
57626         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57627         (__SWBLK_T_TYPE): Likewise.
57628
57629 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57630             Honza Horak <hhorak@redhat.com>
57631
57632         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57633         (xdr_mapname): Use YPMAXMAP as maxsize.
57634         (xdr_peername): Use YPMAXPEER as maxsize.
57635         (xdr_keydat): Use YPAXRECORD as maxsize.
57636         (xdr_valdat): Use YPMAXRECORD as maxsize.
57637
57638 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57639
57640         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57641
57642         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57643         * csu/init-first.c: ... here.
57644         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57645         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57646         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57647         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57648         * sysdeps/i386/init-first.c: File removed.
57649         * sysdeps/sh/init-first.c: File removed.
57650
57651 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57652
57653         [BZ #14645]
57654         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57655         if x * y might underflow to zero and z is zero.
57656         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57657         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57658         * math/libm-test.inc (min_subnorm_value): New variable.
57659         (fma_test): Add more tests.
57660         (fma_test_towardzero): Likewise.
57661         (fma_test_downward): Likewise.
57662         (fma_test_upward): Likewise.
57663         (initialize): Set min_subnorm_value.
57664
57665 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57666
57667         [BZ #14638]
57668         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57669         0 + 0.
57670         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57671         mode for addition resulting in exact zero.
57672         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57673         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57674         exact 0 + 0.
57675         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57676         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57677         * math/libm-test.inc (fma_test): Add more tests.
57678         (fma_test_towardzero): New function.
57679         (fma_test_downward): Likewise.
57680         (fma_test_upward): Likewise.
57681         (main): Call the new functions.
57682
57683 2012-09-28  David S. Miller  <davem@davemloft.net>
57684
57685         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57686
57687 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57688
57689         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57690         instead of SIGALRM.
57691
57692         * sysdeps/gnu/_G_config.h: Moved to ...
57693         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57694         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57695         * sysdeps/generic/_G_config.h: ... here.
57696
57697         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57698
57699         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57700
57701         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57702         Conditionalize target on [libnss_test1.so-version].
57703
57704         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57705
57706         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57707         (elfobjdir): Move out of conditionals.
57708
57709         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57710         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57711         (__nss_lookup_function): Conditionalize label remove_from_tree on
57712         [!DO_STATIC_NSS || SHARED], matching its only use.
57713
57714 2012-09-28  David S. Miller  <davem@davemloft.net>
57715
57716         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57717         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57718         file.
57719         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57720         sysdep_routines.
57721         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57722         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57723         when HWCAP_SPARC_CRYPTO is present.
57724
57725 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57726
57727         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57728
57729 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57730
57731         [BZ #6530]
57732         * stdio-common/vfprintf.c (process_string_arg): Revert
57733         2000-07-22 change.
57734
57735 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57736
57737         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57738         for testcase.
57739         * stdio-common/tst-sprintf.c: Include <locale.h>
57740         (main): Test sprintf's handling of incomplete multibyte
57741         characters.
57742
57743 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57744
57745         * elf/dl-runtime.c (VERSYMIDX): Removed.
57746         * elf/dl-version.c (VERSYMIDX): Likewise.
57747         * elf/do-rel.h (VERSYMIDX): Likewise.
57748         (VALIDX): Likewise.
57749         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57750         * elf/rtld.c (VALIDX): Likewise.
57751         (ADDRIDX): Likewise.
57752         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57753         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57754         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57755         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57756         (VALIDX): Likewise.
57757         (ADDRIDX): Likewise.
57758
57759 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57760
57761         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57762
57763 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57764
57765         [BZ #11438]
57766         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57767         to global scope.
57768         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57769         addresses are in the same scope as 192.0.2/24.
57770         * posix/gai.conf: Document new scope table defaults.
57771
57772 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57773
57774         [BZ #5298]
57775         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57776         for ftell.  Compute offsets from write pointers instead.
57777         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57778
57779 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57780
57781         [BZ #14543]
57782         * libio/Makefile (tests): New test case tst-fseek.
57783         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57784         combination works in wide mode.
57785         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57786         state when the external buffer state changes.
57787
57788 2012-09-27  David S. Miller  <davem@davemloft.net>
57789
57790         [BZ #14376]
57791         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57792         pass reloc->r_addend in as the 'high' argument to
57793         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57794
57795         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57796
57797 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57798
57799         * rt/tst-aio2.c: Include <pthread.h>.
57800         * rt/tst-aio3.c: Likewise.
57801
57802 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57803
57804         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57805
57806 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57807
57808         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57809         contents on [SHARED].
57810
57811 2012-09-26  Marek Polacek  <polacek@redhat.com>
57812
57813         [BZ #14530]
57814         [BZ #13741]
57815         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57816         for C++ and GCC <4.3 as well as for non GCC compilers.
57817
57818 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57819
57820         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57821
57822 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57823
57824         * Makefile.in (all, install): Declare with .PHONY.
57825         Reported by Michael Hope <michael.hope@linaro.org>.
57826
57827 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57828
57829         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57830         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57831         system header.
57832         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57833         Likewise.
57834         (sydep_routines): Add the new and the internal functions.
57835         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57836         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57838         (GLIBC_2.17): Add the new function.
57839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57840         (GLIBC_2.17): Likewise.
57841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57842         (GLIBC_2.17): Likewise.
57843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57844         (GLIBC_2.17): Likewise.
57845         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57846
57847 2012-09-25  Alan Modra  <amodra@gmail.com>
57848
57849         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57850         Add release barrier before setting once_control to say
57851         initialisation is done.  Add hints on lwarx.  Use macro in
57852         place of isync.
57853         (clear_once_control): Add release barrier.
57854
57855 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57856
57857         [BZ #13629]
57858         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57859         specially.
57860         * math/s_clog10.c (__clog10): Likewise.
57861         * math/s_clog10f.c (__clog10f): Likewise.
57862         * math/s_clog10l.c (__clog10l): Likewise.
57863         * math/s_clogf.c (__clogf): Likewise.
57864         * math/s_clogl.c (__clogl): Likewise.
57865         * math/Makefile (libm-calls): Add x2y2m1.
57866         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57867         (__x2y2m1): Likewise.
57868         (__x2y2m1l): Likewise.
57869         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57870         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57871         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57872         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57873         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57874         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57875         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57876         * sysdeps/i386/fpu/libm-test-ulps: Update.
57877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57878
57879         [BZ #14621]
57880         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57881         int as type of variable DEPTH.
57882         (glob): Use size_t instead of int as type of variables NEWCOUNT
57883         and OLD_PATHC.
57884
57885 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57886
57887         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57888         Add s_sincosf-sse2.
57889         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57890         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57891         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57892         macros for using routine as __sincosf_ia32.
57893         Use macro for function declaration and weak_alias.
57894         * sysdeps/i386/fpu/libm-test-ulps: Update.
57895
57896         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57897         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57898
57899         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57900         subnormal argument.
57901         * math/s_cexpf.c (__cexpf): Likewise.
57902         * math/s_csinf.c (__csinf): Likewise.
57903         * math/s_csinhf.c (__csinhf): Likewise.
57904         * math/s_ctanf.c (__ctanf): Likewise.
57905         * math/s_ctanhf.c (__ctanhf): Likewise.
57906         * math/s_ccosh.c (__ccoshf): Likewise.
57907         * math/s_cexp.c (__cexpl): Likewise.
57908         * math/s_csin.c (__csin): Likewise.
57909         * math/s_csinh.c (__csinh): Likewise.
57910         * math/s_ctan.c (__ctan): Likewise.
57911         * math/s_ctanh.c (ctanh): Likewise.
57912         * math/s_ccoshl.c (__ccoshl): Likewise.
57913         * math/s_cexpl.c (__cexpl): Likewise.
57914         * math/s_csinl.c (__csinl): Likewise.
57915         * math/s_csinhl.c (__csinhl): Likewise.
57916         * math/s_ctanl.c (__ctanl): Likewise.
57917         * math/s_ctanhl.c (__ctanhl): Likewise.
57918
57919 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57920
57921         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57922         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57923         (_IO_off_t): Define to __off_t, not _G_off_t.
57924         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57925         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57926         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57927         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57928         type of __dummy and __dummy2 fields.
57929         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57930         (_G_ssize_t): Likewise.
57931         (_G_off_t): Likewise.
57932         (_G_pid_t): Likewise.
57933         (_G_uid_t): Likewise.
57934         (_G_wchar_t): Likewise.
57935         (_G_wint_t): Likewise.
57936         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57937         (_G_ssize_t): Likewise.
57938         (_G_off_t): Likewise.
57939         (_G_pid_t): Likewise.
57940         (_G_uid_t): Likewise.
57941         (_G_wchar_t): Likewise.
57942         (_G_wint_t): Likewise.
57943         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57944         (_G_ssize_t): Likewise.
57945         (_G_off_t): Likewise.
57946         (_G_pid_t): Likewise.
57947         (_G_uid_t): Likewise.
57948         (_G_wchar_t): Likewise.
57949         (_G_wint_t): Likewise.
57950
57951 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57952
57953         * malloc/arena.c: Include malloc-sysdep.h.
57954         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57955         is sufficient to shrink the heap or an unmap is needed.
57956         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57957         new function check_may_shrink_heap.
57958         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57959         new function check_may_shrink_heap.
57960
57961 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57962
57963         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57964         comments.
57965
57966 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57967
57968         * catgets/test-gencat.sh: Add "set -e".
57969         * elf/tst-pathopt.sh: Likewise.
57970         * grp/tst_fgetgrent.sh: Likewise.
57971         * iconvdata/run-iconv-test.sh: Likewise.
57972         * intl/tst-gettext.sh: Likewise.
57973         * intl/tst-gettext2.sh: Likewise.
57974         * intl/tst-gettext4.sh: Likewise.
57975         * intl/tst-gettext6.sh: Likewise.
57976         * intl/tst-translit.sh: Likewise.
57977         * io/ftwtest-sh: Likewise.
57978         * libio/test-freopen.sh: Likewise.
57979         * malloc/tst-mtrace.sh: Likewise.
57980         * posix/globtest.sh: Likewise.
57981         * posix/tst-getconf.sh: Likewise.
57982         * posix/wordexp-tst.sh: Likewise.
57983         * stdio-common/tst-printf.sh: Likewise.
57984         * stdio-common/tst-unbputc.sh: Likewise.
57985         * stdlib/tst-fmtmsg.sh: Likewise.
57986         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57987         * catgets/Makefile: Do not specify -e option when running
57988         testsuite shell scripts.
57989         * elf/Makefile: Likewise.
57990         * grp/Makefile: Likewise.
57991         * iconvdata/Makefile: Likewise.
57992         * intl/Makefile: Likewise.
57993         * io/Makefile: Likewise.
57994         * libio/Makefile: Likewise.
57995         * malloc/Makefile: Likewise.
57996         * posix/Makefile: Likewise.
57997         * stdio-common/Makefile: Likewise.
57998         * stdlib/Makefile: Likewise.
57999         * sysdeps/x86_64/Makefile: Likewise.
58000
58001         * io/ftwtest-sh: Add copyright header.
58002         * posix/globtest.sh: Likewise.
58003         * posix/tst-getconf.sh: Likewise.
58004         * posix/wordexp-tst.sh: Likewise.
58005         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
58006
58007 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
58008
58009         [BZ #13679]
58010         * Makeconfig (+link): Defined as $(+link-static) if
58011         $(build-shared) isn't yes.
58012         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
58013         isn't yes.
58014         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
58015
58016         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
58017
58018         [BZ #14562]
58019         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
58020         new chunk size with MALLOC_ALIGN_MASK.
58021
58022 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
58023
58024         [BZ #5044]
58025         * stdio-common/printf_fphex.c: Include <stdbool.h> and
58026         <rounding-mode.h>.
58027         (__printf_fphex): Determine rounding using get_rounding_mode and
58028         round_away.
58029         * stdio-common/tst-printf-round.c (struct hex_test): New
58030         structure.
58031         (hex_tests): New variable.
58032         (test_hex_in_one_mode): New function.
58033         (do_test): Also run tests for hex float output.
58034
58035 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
58036
58037         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
58038         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
58039         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
58040         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
58041         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
58042         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
58043         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
58044         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
58045
58046 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
58047
58048         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
58049         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
58050         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
58051         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
58052
58053 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
58054
58055         [BZ #14579]
58056         * elf/rtld.c (dl_main): Limit the check for self loading to normal
58057         mode only.
58058         * elf/tst-rtld-load-self.sh: New test.
58059         * elf/Makefile: Run it.
58060
58061 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
58062
58063         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
58064         (tst-writev-ENV): Remove.
58065         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
58066
58067 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
58068
58069         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
58070
58071 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
58072
58073         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
58074         unconditional.
58075         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
58076         Likewise.
58077         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
58078         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
58079         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
58080         Likewise.
58081
58082 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
58083
58084         [BZ #14587]
58085         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
58086         * config.make.in (have-cpp-asm-debuginfo): Removed.
58087         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
58088         * configure: Regenerated.
58089
58090 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
58091
58092         [BZ #5044]
58093         * stdio-common/printf_fp.c: Include <stdbool.h> and
58094         <rounding-mode.h>.
58095         (___printf_fp): Determine rounding using get_rounding_mode and
58096         round_away.
58097         * stdio-common/tst-printf-round.c: New file.
58098         * stdio-common/Makefile (tests): Add tst-printf-round.
58099         (link-libm): New variable.
58100         ($(objpfx)tst-printf-round): Depend in $(link-libm).
58101
58102 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
58103
58104         [BZ #14576]
58105         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
58106         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
58107         Likewise.
58108         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
58109         Likewise.
58110
58111 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
58112
58113         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
58114         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58115         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58116         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58117
58118 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
58119
58120         [BZ #14518]
58121         * include/rounding-mode.h: New file.
58122         * sysdeps/generic/get-rounding-mode.h: Likewise.
58123         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
58124         * stdlib/strtod_l.c: Include <rounding-mode.h>.
58125         (MAX_VALUE): New macro.
58126         (MIN_VALUE): Likewise.
58127         (overflow_value): New function.
58128         (underflow_value): Likewise.
58129         (round_and_return): Use overflow_value and underflow_value to
58130         determine return values in overflow and underflow cases.  Use
58131         round_away to determine rounding depending on rounding mode.
58132         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
58133         determine return values in overflow and underflow cases.
58134         * stdlib/tst-strtod-round.c: Include <fenv.h>.
58135         (struct test_results): New structure.
58136         (struct test): Use struct test_results to store expected results
58137         for all rounding modes.
58138         (TEST): Include expected results for all rounding modes.
58139         (test_in_one_mode): New function.
58140         (do_test): Use test_in_one_mode to compute and check results.
58141         Check results for all rounding modes.
58142         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
58143         $(link-libm).
58144
58145 2012-12-09  Allan McRae  <allan@archlinux.org>
58146
58147         * sysdeps/i386/fpu/libm-test-ulps: Update
58148
58149 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
58150
58151         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
58152         (_G_int32_t): Likewise.
58153         (_G_uint16_t): Likewise.
58154         (_G_uint32_t): Likewise.
58155         (_G_HAVE_BOOL): Likewise.
58156         (_G_HAVE_ATEXIT): Likewise.
58157         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58158         (_G_HAVE_IO_FILE_OPEN): Likewise.
58159         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
58160         (_G_int32_t): Likewise.
58161         (_G_uint16_t): Likewise.
58162         (_G_uint32_t): Likewise.
58163         (_G_HAVE_BOOL): Likewise.
58164         (_G_HAVE_ATEXIT): Likewise.
58165         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58166         (_G_HAVE_IO_FILE_OPEN): Likewise.
58167         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
58168         (_G_int32_t): Likewise.
58169         (_G_uint16_t): Likewise.
58170         (_G_uint32_t): Likewise.
58171         (_G_HAVE_BOOL): Likewise.
58172         (_G_HAVE_ATEXIT): Likewise.
58173         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58174         (_G_HAVE_IO_FILE_OPEN): Likewise.
58175
58176 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
58177
58178         * csu/libc-tls.c: Update copyright years.
58179
58180 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
58181
58182         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
58183         [!_G_USING_THUNKS]: Remove conditional code.
58184         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
58185         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
58186
58187         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
58188         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
58189         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58190         (_G_VTABLE_LABEL_PREFIX): Likewise.
58191         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58192         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58193         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58194         (_G_VTABLE_LABEL_PREFIX): Likewise.
58195         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58196         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58197         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58198         (_G_VTABLE_LABEL_PREFIX): Likewise.
58199         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58200
58201 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
58202
58203         * libio/Makefile: Include ../Makeconfig before tests.
58204         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
58205         only if $(build-shared) is yes.
58206
58207         * iconv/gconv_db.c: Update copyright years.
58208
58209 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58210
58211         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
58212         unwind info if defined PIC. Fix special cases description.
58213         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
58214
58215         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
58216         DP_HI_MASK entry.
58217         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
58218
58219 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
58220
58221         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
58222
58223         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
58224         is NULL.
58225
58226         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
58227         (LDLIBS-tst-chk4): This.
58228         (LDFLAGS-tst-chk5): Renamed to ...
58229         (LDLIBS-tst-chk5): This.
58230         (LDFLAGS-tst-chk6): Renamed to ...
58231         (LDLIBS-tst-chk6): This.
58232         (LDFLAGS-tst-lfschk4): Renamed to ...
58233         (LDLIBS-tst-lfschk4): This.
58234         (LDFLAGS-tst-lfschk5): Renamed to ...
58235         (LDLIBS-tst-lfschk5): This.
58236         (LDFLAGS-tst-lfschk6): Renamed to ...
58237         (LDLIBS-tst-lfschk6): This.
58238
58239         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
58240         on $(common-objpfx)soversions.mk.
58241
58242 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
58243
58244         [BZ #10014]
58245         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
58246         example host name.
58247
58248 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
58249
58250         * malloc/arena.c (arena_get_retry): New function that gets
58251         another arena for the caller to try its request on.
58252         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
58253         current arena cannot fulfill the request.
58254         (__libc_memalign): Likewise.
58255         (__libc_memalign): Likewise.
58256         (__libc_pvalloc): Likewise.
58257         (__libc_calloc): Likewise.
58258
58259 2012-09-05  John Tobey  <john.tobey@gmail.com>
58260
58261         [BZ #13542]
58262         * manual/arith.texi (Operations on Complex): Fix description
58263         of carg branch cut.
58264
58265 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58266
58267         [BZ #10014]
58268         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
58269         host name.
58270
58271         [BZ #10038]
58272         * manual/memory.texi (Memory): Make order of menu items match
58273         order of sections.
58274
58275 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58276
58277         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
58278         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
58279         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
58280
58281 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58282
58283         * csu/libc-tls.c (static_dtv): Renamed to ...
58284         (_dl_static_dtv): This.  Make it global.
58285         (_dl_initial_dtv): Removed.
58286         (__libc_setup_tls): Updated.
58287         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
58288         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
58289         DL_INITIAL_DTV.
58290
58291 2012-09-06  Petr Machata  <pmachata@redhat.com>
58292
58293         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
58294         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
58295         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
58296         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
58297
58298 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58299
58300         [BZ #14545]
58301         * csu/libc-tls.c (_dl_initial_dtv): New variable.
58302         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
58303         freeing dtv[-1].
58304
58305 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58306
58307         [BZ #14544]
58308         * Makeconfig (link-static-before-libc): Replace $(+prector)
58309         with $(+prectorT).
58310         (link-static-after-libc): Replace $(+postctor) with
58311         $(+postctorT).
58312         (link-bounded): Replace $(+prector)/$(+postctor) with
58313         $(+prectorT)/$(+postctorT).
58314         (+prectorT): New macro.
58315         (+postctorT): Likewise.
58316
58317 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58318
58319         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
58320         (round_str): Handle values above the maximum for IBM long double
58321         as inexact.
58322         * stdlib/tst-strtod-round.c (tests): Regenerated.
58323
58324 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58325
58326         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
58327         assembler flag.
58328         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
58329         zarch_nohighgprs around the zarch optimized routines.
58330         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
58331         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
58332         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
58333         for zarch.
58334
58335 2012-09-05  David S. Miller  <davem@davemloft.net>
58336
58337         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58338
58339         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
58340         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
58341         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
58342         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
58343         entries.
58344
58345 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58346
58347         * malloc/arena.c: Fold copyright years.
58348         * malloc/mcheck.c, malloc/memusage.c: Likewise.
58349
58350 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58351
58352         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
58353
58354 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58355
58356         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
58357
58358 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58359
58360         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
58361         change internal state upon failure.
58362
58363 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58364
58365         * malloc/mcheck.c (mcheck_check_all): Fix typo.
58366         * malloc/memusage.c (mmap): Likewise.
58367         (mmap64, mremap): Likewise.  Adjust name in comment.
58368
58369 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58370
58371         * libio/fileops.c: Fix typos in comments.
58372         * libio/oldfileops.c: Likewise.
58373         * libio/wfileops.c: Likewise.
58374
58375 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58376
58377         [BZ #1349]
58378         * malloc/Makefile (tests): Add tst-malloc-usable test case.
58379         (tst-malloc-usable-ENV): Set environment for test case.
58380         * malloc/hooks.c (malloc_check_get_size): New function to get
58381         requested size.
58382         * malloc/malloc.c (musable): Use malloc_check_get_size.
58383         * malloc/tst-malloc-usable.c: New test case.
58384
58385 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58386
58387         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
58388
58389 2012-09-05  Allan McRae  <allan@archlinux.org>
58390
58391         [BZ #13966]
58392         * configure.in (CXX_SYSINCLUDES): Use compiler output to
58393         determine header location.
58394         * configure: Regenerated.
58395
58396 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58397
58398         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
58399         float format.
58400         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
58401         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
58402         format.
58403         (test): Regenerate.
58404
58405 2012-09-04  David S. Miller  <davem@davemloft.net>
58406
58407         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
58408         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
58409         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
58410
58411 2012-09-04  Florian Weimer  <fweimer@redhat.com>
58412
58413         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
58414         failures.
58415
58416         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
58417
58418 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
58419
58420         [BZ #9914]
58421         * libio/iogetdelim.c: Include <limits.h>.
58422         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
58423         + len + 1 would overflow.
58424
58425 2012-09-03  Andreas Jaeger  <aj@suse.de>
58426
58427         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58428         * sysdeps/i386/fpu/libm-test-ulps: Update.
58429
58430 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58431
58432         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
58433         Add s_sinf-sse2, s_conf-sse2.
58434
58435         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
58436         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
58437         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
58438         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
58439
58440         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
58441         for using routine as __sinf_ia32.
58442         Use macro for function declaration and weak_alias.
58443         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
58444         for using routine as __cosf_ia32.
58445         Use macro for function declaration and weak_alias.
58446
58447         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
58448         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
58449
58450         * sysdeps/x86_64/fpu/s_sinf.S: New file.
58451         * sysdeps/x86_64/fpu/s_cosf.S: New file.
58452         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58453
58454         * math/libm-test.inc (cos_test): Add more test cases.
58455         (sin_test): Likewise.
58456         (sincos_test): Likewise.
58457
58458 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58459
58460         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
58461         (IFUNC_RESOLVE): Make pointers to the specialized implementations
58462         hidden.
58463         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
58464
58465 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
58466
58467         [BZ #14538]
58468         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
58469         first element of the GOT.
58470         (elf_machine_load_address): Return the difference between
58471         the runtime address of _DYNAMIC and elf_machine_dynamic ().
58472
58473 2012-09-01  Allan McRae  <allan@archlinux.org>
58474
58475         [BZ #13412]
58476         * configure.in (AWK): Require gawk version 3.0 or later.
58477         * configure: Regenerated.
58478
58479 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
58480
58481         * sysdeps/unix/sysv/linux/kernel-features.h
58482         (__ASSUME_POSIX_CPU_TIMERS): Remove.
58483         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58484         [__NR_clock_getres]: Make code unconditional.
58485         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
58486         (clock_getcpuclockid): Remove code left unreachable by removal of
58487         conditionals.
58488         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
58489         code unconditional.
58490         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58491         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58492         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
58493         Make code unconditional.
58494         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58495         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58496         * sysdeps/unix/sysv/linux/clock_settime.c
58497         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
58498         conditional code.
58499         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
58500         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58501
58502 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
58503
58504         [BZ #14476]
58505         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
58506         scripts/test-installation.pl.
58507
58508         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
58509         and $ld_so_version if it is set.
58510
58511 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58512
58513         [BZ #14516]
58514         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
58515         failure if reading from procfs failed.
58516         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
58517
58518 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58519
58520         * sysdeps/unix/sysv/linux/kernel-features.h
58521         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
58522         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58523         Remove conditional code.
58524         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58525         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
58526         Remove conditional code.
58527         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58528         * sysdeps/unix/sysv/linux/i386/fxstat.c
58529         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58530         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58531         * sysdeps/unix/sysv/linux/i386/fxstatat.c
58532         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58533         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58534         * sysdeps/unix/sysv/linux/i386/lxstat.c
58535         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58536         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58537         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
58538         Remove conditional code.
58539         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58540         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58541         Remove conditional code.
58542         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58543         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
58544         <kernel-features.h>.
58545         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
58546         Remove.
58547         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
58548         Remove conditional code.
58549         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58550         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
58551         Remove conditional.
58552
58553 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
58554
58555         [BZ #5400]
58556         * NEWS: Add fixed bug number.
58557
58558 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58559
58560         [BZ #14519]
58561         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
58562         underflowing exponent in case of negative sign.
58563         * stdlib/tst-strtod-round-data: Add more tests.
58564         * stdlib/tst-strtod-round.c (tests): Regenerated.
58565
58566         [BZ #3479]
58567         * stdlib/strtod_l.c (NDIG): Remove.
58568         (HEXNDIG): Likewise.
58569         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
58570         smallest representable value.
58571         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
58572         lie within an exact representation of 1/2 ulp of the result.
58573         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
58574         unconditionally.
58575         (TENS_P9_IDX): Define unconditionally.
58576         (TENS_P9_SIZE): Likewise.
58577         (TENS_P10_IDX): Likewise.
58578         (TENS_P10_SIZE): Likewise.
58579         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
58580         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
58581         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
58582         entries for 10^2^13 and 10^2^14.
58583         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
58584         (TENS_P13_IDX): Define.
58585         (TENS_P13_SIZE): Likewise.
58586         (TENS_P14_IDX): Likewise.
58587         (TENS_P14_SIZE): Likewise.
58588         (_fpioconst_pow10): Change array size to
58589         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
58590         unconditional.
58591         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
58592         1024]: Add entries for 10^2^13 and 10^2^14.
58593         [LAST_POW10 > _LAST_POW10]: Remove #error.
58594         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
58595         (_fpioconst_pow10): Change array size to
58596         FPIOCONST_POW10_ARRAY_SIZE.
58597         * stdlib/gen-fpioconst.c: New file.
58598         * stdlib/gen-tst-strtod-round.c: Likewise.
58599         * stdlib/tst-strtod-round-data: Likewise.
58600         * stdlib/tst-strtod-round.c: Likewise.
58601         * stdlib/Makefile (tests): Add tst-strtod-round.
58602
58603         [BZ #14459]
58604         * stdlib/strtod_l.c: Include <stdint.h>.
58605         (NDEBUG): Do not define.
58606         (round_and_return): Change EXPONENT parameter to type intmax_t.
58607         Rearrange calculations to avoid internal overflow possibilities.
58608         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
58609         Rearrange calculations to avoid internal overflow possibilities.
58610         Assert that number fits inside MPNSIZE limbs.
58611         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
58612         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
58613         calculations and add assertions to avoid internal overflow
58614         possibilities.  Add casts to avoid signed/unsigned operations.
58615         * stdlib/tst-strtod-overflow.c: New file.
58616         * stdlib/Makefile (tests): Add tst-strtod-overflow.
58617
58618 2012-08-25  Marek Polacek  <polacek@redhat.com>
58619
58620         * time/time.h: Fix some typos in comments.
58621
58622 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58623
58624         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58625         * posix/tst-rfc3484-2.c: Likewise.
58626         * posix/tst-rfc3484-3.c: Likewise.
58627
58628 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58629
58630         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58631         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58632
58633 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58634
58635         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58636         #include of fxstatat64.c.
58637
58638 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58639
58640         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58641         * shadow/getspent_r.c: Likewise.
58642         * shadow/getspnam.c: Likewise.
58643         * shadow/getspnam_r.c: Likewise.
58644         * gshadow/getsgent.c: Likewise.
58645         * gshadow/getsgent_r.c: Likewise.
58646         * gshadow/getsgnam.c: Likewise.
58647         * gshadow/getsgnam_r.c: Likewise.
58648         * inet/getnetbyad.c: Likewise.
58649         * inet/getnetbyad_r.c: Likewise.
58650         * inet/getnetbynm.c: Likewise.
58651         * inet/getnetbynm_r.c: Likewise.
58652         * inet/getnetent.c: Likewise.
58653         * inet/getnetent_r.c: Likewise.
58654         * inet/getproto.c: Likewise.
58655         * inet/getproto_r.c: Likewise.
58656         * inet/getprtent.c: Likewise.
58657         * inet/getprtent_r.c: Likewise.
58658         * inet/getprtname.c: Likewise.
58659         * inet/getprtname_r.c: Likewise.
58660         * inet/getrpcbyname.c: Likewise.
58661         * inet/getrpcbyname_r.c: Likewise.
58662         * inet/getrpcbynumber.c: Likewise.
58663         * inet/getrpcbynumber_r.c: Likewise.
58664         * inet/getrpcent.c: Likewise.
58665         * inet/getrpcent_r.c: Likewise.
58666         * inet/getaliasent.c: Likewise.
58667         * inet/getaliasent_r.c: Likewise.
58668         * inet/getaliasname.c: Likewise.
58669         * inet/getaliasname_r.c: Likewise.
58670         * nscd/getgrgid_r.c: Likewise.
58671         * nscd/getgrnam_r.c: Likewise.
58672         * nscd/gethstbyad_r.c: Likewise.
58673         * nscd/gethstbynm3_r.c: Likewise.
58674         * nscd/getpwnam_r.c: Likewise.
58675         * nscd/getpwuid_r.c: Likewise.
58676         * nscd/getsrvbynm_r.c: Likewise.
58677         * nscd/getsrvbypt_r.c: Likewise.
58678         * nscd/gai.c: Likewise.
58679
58680         * configure.in (build_nscd): New substituted variable, set
58681         by --disable-build-nscd and defaults to $use_nscd.
58682         * configure: Regenerated.
58683         * config.make.in (build-nscd): New substituted variable.
58684         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58685         Change conditional to require [$(build-nscd) = yes] as well.
58686         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58687
58688         [BZ# 13696]
58689         * configure.in (use_nscd): New substituted variable, set by
58690         --disable-nscd.  If enabled, define USE_NSCD.
58691         * configure: Regenerated.
58692         * config.h.in: Add USE_NSCD.
58693         * config.make.in (use-nscd): New substituted variable.
58694         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58695         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58696         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58697         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58698         (CFLAGS-getgrnam_r.c): Likewise.
58699         (CFLAGS-initgroups.c): Likewise.
58700         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58701         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58702         Variables removed.
58703         * inet/getnetgrent_r.c
58704         (nscd_setnetgrent): New function, broken out of ...
58705         (setnetgrent): ... here.  Call it.
58706         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58707         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58708         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58709         * nscd/Makefile (routines, aux): Move definitions after include of
58710         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58711         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58712         Conditionalize on [USE_NSCD].
58713         (is_nscd, nscd_init_cb): Likewise.
58714         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58715         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58716         * nss/nss_db/db-init.c: Likewise.
58717         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58718         [USE_NSCD].
58719         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58720         (make_request): Use it.
58721         (cache_valid_p): New function.
58722         (__check_pf): Use it.
58723         * NEWS: Add item for --disable-nscd.
58724
58725 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58726
58727         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58728         to support sed >= 4.2.1-20-ga9bf076.
58729         * configure: Regenerated.
58730
58731 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58732
58733         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58734         Conditionalize whole body on [IREL].
58735
58736 2012-08-22  Jeff Law <law@redhat.com>
58737
58738         [BZ #14505]
58739         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58740         if the family is PF_UNSPEC.
58741
58742 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58743
58744         * Makerules (lib-version): Rename from V.
58745         (install-lib-nosubdir): Change V to lib-version.
58746
58747 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58748
58749         [BZ #14252]
58750         * powerpc32/power6/wcschr.c: New file.
58751         * powerpc32/power6/wcscpy.c: New file.
58752         * powerpc32/power6/wcsrchr.c: New file.
58753         * powerpc64/power6/wcschr.c: New file.
58754         * powerpc64/power6/wcscpy.c: New file.
58755         * powerpc64/power6/wcsrchr.c: New file.
58756
58757 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58758
58759         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58760         (two_way_short_needle): Use it.
58761         * string/strstr.c (AVAILABLE1_USES_J): Define.
58762         * string/strcasestr.c: Likewise.
58763
58764         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58765         array references.
58766         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58767
58768         [BZ #11607]
58769         * NEWS: Add an entry.
58770         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58771         define their defaults.
58772         (two_way_short_needle): Detect end-of-string on-the-fly.
58773         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58774         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58775         * string/bug-strcasestr1.c: New test.
58776         * string/Makefile: Run it.
58777
58778 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58779
58780         [BZ #11607]
58781         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58782         the first character.
58783
58784 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58785
58786         * csu/elf-init.c (__libc_csu_irel): Function removed.
58787         * csu/libc-start.c (apply_irel): New function.
58788         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58789
58790 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58791
58792         * sysdeps/unix/sysv/linux/kernel-features.h
58793         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58794         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58795         <kernel-features.h>.
58796         [__NR_fadvise64_64]: Make code unconditional.
58797         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58798         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58799         !__NR_fadvise64_64)]: Likewise.
58800         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58801         !__NR_fadvise64_64))]: Likewise.
58802         [__NR_fadvise64]: Make code unconditional.
58803         [!__NR_fadvise64]: Remove conditional code.
58804         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58805         <kernel-features.h>.
58806         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58807         unconditional.
58808         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58809         conditional code.
58810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58811         not include <kernel-features.h>.
58812         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58813         unconditional.
58814         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58815         conditional code.
58816         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58817         include <kernel-features.h>.
58818         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58819         unconditional.
58820         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58821         conditional code.
58822
58823 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58824
58825         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58826         slight instruction rearrangements per scrollpipe analysis.
58827         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58828
58829 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58830
58831         * manual/syslog.texi (syslog; vsyslog, closelog):
58832         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58833         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58834
58835         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58836         DSOCAPS to match condition on defining it.
58837
58838 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58839
58840         * sysdeps/unix/sysv/linux/kernel-features.h
58841         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58843         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58844         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58846         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58847         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58849         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58850         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58851
58852         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58853         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58854
58855         * sysdeps/unix/sysv/linux/kernel-features.h
58856         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58857         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58858         unconditional.
58859         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58860         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58861         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58862         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58863         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58864         Make code unconditional.
58865         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58866         (__mmap64) [!__NR_mmap2]: Likewise.
58867         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58868         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58869         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58870         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58871         [__NR_mmap2]: Make code unconditional.
58872         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58873         (__mmap64) [!__NR_mmap2]: Likewise.
58874
58875 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58876
58877         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58878
58879 2012-08-18  Andreas Jaeger  <aj@suse.de>
58880
58881         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58882
58883 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58884
58885         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58886         * include/unistd.h (__have_sock_cloexec): Likewise.
58887         (__have_pipe2): Likewise.
58888         (__have_dup3): Likewise.
58889
58890 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58891
58892         [BZ #9685]
58893         * include/unistd.h (__have_pipe2): Change define into an extern int.
58894         (__have_dup3): Likewise.
58895         * socket/have_sock_cloexec.c: Include fcntl.h.
58896         (__have_pipe2): New variable.
58897         (__have_dup3): Likewise.
58898
58899 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58900
58901         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58902
58903 2012-08-17  Marek Polacek  <polacek@redhat.com>
58904
58905         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58906         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58907
58908 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58909
58910         * configure.in: Add AC_SUBST for sysheaders.
58911         * configure: Regenerated.
58912         * config.make.in (sysheaders): New substituted variable.
58913
58914         * sysdeps/unix/mkfifo.c: Moved ...
58915         * sysdeps/posix/mkfifo.c: ... here.
58916         * sysdeps/unix/mkfifoat.c: Moved ...
58917         * sysdeps/posix/mkfifoat.c: ... here.
58918
58919         * sysdeps/unix/utime.c: Moved ...
58920         * sysdeps/posix/utime.c: ... here.
58921
58922         * sysdeps/unix/time.c: Moved ...
58923         * sysdeps/posix/time.c: ... here.
58924         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58925         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58926
58927         * sysdeps/unix/nice.c: Moved ...
58928         * sysdeps/posix/nice.c: ... here.
58929
58930         * sysdeps/unix/alarm.c: Moved ...
58931         * sysdeps/posix/alarm.c: ... here.
58932
58933         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58934
58935 2012-08-17  Jeff Law <law@redhat.com>
58936
58937         * intl/Makefile (codeset_mo): New variable.
58938         ($(codeset_mo)): New target.
58939         (tst-codeset.out): Depend on that.  Remove explicit rule.
58940         (tst-gettext3.out, tst-gettext5.out): Likewise.
58941         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58942         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58943         * intl/tst-codeset.sh: Remove.
58944         * intl/tst-gettext3.sh: Likewise.
58945         * intl/tst-gettext5.sh: Likewise.
58946
58947 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58948
58949         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58950         * sysdeps/unix/syscalls.list: ... here.
58951
58952         * sysdeps/posix/getaddrinfo.c
58953         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58954         (gaiconf_init, gaiconf_reload): Use them.
58955         [!_STATBUF_ST_NSEC]
58956         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58957         Define using time_t rather than struct timespec.
58958
58959         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58960         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58961         Macros removed.
58962         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58963         [!NO_THREADS].
58964         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58965         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58966         Likewise.
58967
58968         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58969         __libc_cleanup_push argument.
58970
58971         * bits/param.h: New file.
58972         * misc/sys/param.h: New file.
58973         * include/sys/param.h: New file.
58974         * misc/Makefile (headers): Add bits/param.h.
58975         * sysdeps/generic/sys/param.h: File removed.
58976         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58977         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58978         * sysdeps/mach/hurd/bits/param.h: New file.
58979         * sysdeps/mach/hurd/sys/param.h: File removed.
58980
58981         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58982         last change.
58983
58984         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58985         [_IO_MTSAFE_IO].
58986         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58987         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58988         New macros.
58989
58990         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58991         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58992         rather than -D_IO_MTSAFE_IO conditionally.
58993         * stdio-common/Makefile (CPPFLAGS): Likewise.
58994         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58995         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58996         Use $(libio-mtsafe).
58997         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58998         of -D_IO_MTSAFE_IO.
58999         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
59000         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
59001         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
59002         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
59003         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
59004         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
59005         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
59006         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
59007         (CFLAGS-fread_u_chk.c): Likewise.
59008         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
59009         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
59010         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
59011         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
59012         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
59013         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
59014         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
59015         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
59016         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
59017
59018         * libio/Makefile: Test [$(libc-reentrant) = yes]
59019         instead of [$(filter %REENTRANT, $(defines)) nonempty].
59020
59021         * Makeconfig
59022         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
59023         * sysdeps/pthread/configure: File removed.
59024         * sysdeps/pthread/Makeconfig: New file.
59025         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
59026         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
59027
59028 2012-08-16  Gary Benson  <gbenson@redhat.com>
59029
59030         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
59031         unmapping the first object in a namespace.
59032
59033 2012-08-16  Roland McGrath  <roland@hack.frob.com>
59034
59035         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
59036         (__internal_setnetgrent): ... this.  Add internal_function to
59037         definition.  Add libc_hidden_def.
59038         (setnetgrent): Update caller.
59039         (internal_endnetgrent): Renamed to ...
59040         (__internal_endnetgrent): ... this.  Add internal_function to
59041         definition.  Add libc_hidden_def.
59042         (endnetgrent): Update caller.
59043         (internal_getnetgrent_r): Renamed to ...
59044         (__internal_getnetgrent_r): ... this.  Add internal_function to
59045         definition.  Add libc_hidden_def.
59046         (__getnetgrent_r): Update caller.
59047         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
59048
59049 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
59050
59051         * stdlib/longlong.h: Update from GCC.
59052
59053 2012-08-16  Roland McGrath  <roland@hack.frob.com>
59054
59055         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
59056         on _QL, which is set by umul_ppmm but never used.
59057         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
59058         variables, which are set by GMP macros but never used.
59059         * stdio-common/_itowa.c (_itowa): Likewise.
59060         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
59061         * stdlib/mod_1.c (mpn_mod_1): Likewise.
59062
59063 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
59064
59065         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
59066         struct La_sh_regs is not constant.
59067         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
59068         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
59069         and struct La_sparc64_regs are not constant.
59070
59071 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
59072
59073         * sysdeps/unix/sysv/linux/kernel-features.h
59074         (__ASSUME_POSIX_TIMERS): Remove.
59075         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
59076         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59077         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
59078         Make code unconditional.
59079         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59080         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
59081         Make code unconditional.
59082         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59083         * sysdeps/unix/sysv/linux/clock_nanosleep.c
59084         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
59085         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59086         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
59087         Make code unconditional.
59088         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59089         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
59090         (__libc_missing_posix_timers): Remove.
59091
59092 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59093
59094         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
59095         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
59096
59097         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
59098
59099         * elf/dl-sym.c: Include <stdlib.h>.
59100
59101         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
59102         constants, which avoids warnings in 32-bit builds.
59103
59104         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
59105         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
59106
59107         * misc/lseek.c: File moved to ...
59108         * io/lseek.c: ... here.
59109
59110         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
59111
59112         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
59113         shifting LEN more than 31 bits at once.
59114
59115 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
59116
59117         [BZ #14195]
59118         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
59119         segmentation fault for a case of two empty input strings.
59120         * string/test-strncasecmp.c (check1): Renamed to...
59121         (bz12205): ...this.
59122         (bz14195): Add new testcase for two empty input strings and N > 0.
59123         (test_main): Call new testcase, adapt for renamed function.
59124
59125 2012-08-15  Andreas Jaeger  <aj@suse.de>
59126
59127         [BZ #14090]
59128         * crypt/md5test2.c: New test, based on test supplied by Serge
59129         Belyshev <belyshev@depni.sinp.msu.ru>.
59130         * crypt/Makefile (xtests): Add md5test-giant..
59131         * crypt/Makefile ($(objpfx)md5test-giant): Add.
59132
59133 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59134
59135         [BZ #14090]
59136         * crypt/md5.c (md5_process_block): Don't assume the buffer
59137         length is less than 2**32.
59138         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
59139         length is less than 2**64.
59140
59141 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59142
59143         * string/str-two-way.h: Include <sys/param.h>.
59144         (MAX): Macro removed.
59145
59146         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
59147         Move #define and #undef of memmove to just before and after
59148         including <string.h>.
59149
59150         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
59151         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
59152         and after including <string.h>.  Move declarations of
59153         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
59154         to before #include "string/memmove.c".
59155
59156         * include/dirent.h: Declare __getdirentries.
59157
59158         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
59159         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
59160
59161 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
59162
59163         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
59164         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
59165         * sysdeps/i386/configure: Regenerated.
59166         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
59167         STABS_CURRENT_FILE, and STABS_FUN.
59168         (END): Remove call to STABS_FUN_END.
59169         (STABS_CURRENT_FILE1): Delete.
59170         (STABS_CURRENT_FILE): Likewise.
59171         (STABS_FUN): Likewise.
59172         (STABS_FUN_END): Likewise.
59173         (STABS_FUN2): Likewise.
59174         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
59175         * sysdeps/x86_64/configure: Regenerated.
59176
59177 2012-08-14  Roland McGrath  <roland@hack.frob.com>
59178
59179         * elf/dl-open.c: Include <atomic.h>.
59180         * elf/dl-lookup.c: Likewise.
59181
59182 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
59183
59184         * sysdeps/unix/sysv/linux/kernel-features.h
59185         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
59186         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
59187         unconditionally.
59188         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
59189         unconditionally.
59190         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
59191         condition on __ASSUME_CLONE_THREAD_FLAGS.
59192
59193 2012-08-14  Andreas Jaeger  <aj@suse.de>
59194
59195         * sysdeps/i386/fpu/libm-test-ulps: Update.
59196
59197 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
59198
59199         * include/atomic.h (atomic_exchange_and_add): Split into ...
59200         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
59201         New atomic macros.
59202
59203 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
59204
59205         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
59206
59207 2012-08-13  Jeff Law <law@redhat.com>
59208
59209         * manual/stdio.texi (snprintf): Clarify handling of the trailing
59210         null byte in the output string.
59211
59212 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
59213
59214         * sysdeps/unix/sysv/linux/kernel-features.h
59215         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
59216         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
59217         (__ASSUME_ARG_MAX_STACK_BASED): Define.
59218         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
59219         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
59220         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
59221         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
59222
59223 2012-08-09  Jeff Law <law@redhat.com>
59224
59225         [BZ #13939]
59226         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
59227         When avoid_arena is set, don't retry in the that arena.  Pick the
59228         next one, whatever it might be.
59229         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
59230         (arena_lock): Pass in new parameter to arena_get2.
59231         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
59232         arena_get2.
59233         (__libc_malloc): Unify retrying after main arena failure with
59234         __libc_memalign version.
59235         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
59236
59237 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
59238
59239         [BZ #14166]
59240         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
59241         to __redirect_strstr.
59242         (__strstr_sse42): Use typeof __redirect_strstr.
59243         (__strstr_ia32): Likewise.
59244         (__libc_strstr): New prototype.
59245         (strstr): Renamed to ...
59246         (__libc_strstr): This.
59247         (strstr): New strong alias of __libc_strstr.
59248         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
59249         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
59250         __redirect_time.
59251         Include <time.h>.
59252         (__libc_time): New prototype.
59253         (time_ifunc): Replace time with __libc_time.
59254         (time): New strong alias and hidden definition of __libc_time.
59255         (__GI_time): Remove strong alias.
59256         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
59257         Include <stddef.h>.
59258         (memmove): Redefined to __redirect_memmove.
59259         (__memmove_sse2): Use typeof __redirect_memmove.
59260         (__memmove_ssse3): Likewise.
59261         (__memmove_ssse3_back): Likewise.
59262         (__libc_memmove): New prototype.
59263         (memmove): Renamed to ...
59264         (__libc_memmove): This.
59265         (memmove): New strong alias of __libc_memmove.
59266
59267 2012-08-08  Mark Salter  <msalter@redhat.com>
59268
59269         * elf/elf.h
59270         (R_MN10300_TLS_GD): Define.
59271         (R_MN10300_TLS_LD): Likewise.
59272         (R_MN10300_TLS_LDO): Likewise.
59273         (R_MN10300_TLS_GOTIE): Likewise.
59274         (R_MN10300_TLS_IE): Likewise.
59275         (R_MN10300_TLS_LE): Likewise.
59276         (R_MN10300_TLS_DTPMOD): Likewise.
59277         (R_MN10300_TLS_DTPOFF): Likewise.
59278         (R_MN10300_TLS_TPOFF): Likewise.
59279         (R_MN10300_SYM_DIFF): Likewise.
59280         (R_MN10300_ALIGN): Likewise.
59281         (R_MN10300_NUM): Update.
59282
59283 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
59284
59285         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
59286         Remove.
59287
59288 2012-08-08  Roland McGrath  <roland@hack.frob.com>
59289
59290         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
59291
59292         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
59293         sysdeps/unix -> sysdeps/posix move.
59294         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
59295
59296 2012-08-07      Allan McRae     <allan@archlinux.org>
59297
59298         [BZ #14303]
59299         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
59300         (SUNOS_CPP): Likewise.
59301         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
59302         not found.
59303         (open_input): Call CPP using execvp.
59304
59305 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59306
59307         * sysdeps/unix/sysv/linux/kernel-features.h
59308         (__ASSUME_PROT_GROWSUPDOWN): Remove.
59309         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59310         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59311         (__ASSUME_WAITID_SYSCALL): Likewise.
59312         * sysdeps/unix/sysv/linux/dl-execstack.c
59313         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
59314         code unconditional.
59315         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
59316         conditional code.
59317         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
59318         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
59319         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
59320         code.
59321         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
59322         unconditional.
59323         [__ASSUME_WAITID_SYSCALL]: Likewise.
59324         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
59325
59326 2012-08-07  Roland McGrath  <roland@hack.frob.com>
59327
59328         * sysdeps/unix/closedir.c: Renamed to ...
59329         * sysdeps/posix/closedir.c: ... here.
59330         * sysdeps/unix/dirfd.c: Renamed to ...
59331         * sysdeps/posix/dirfd.c: ... here.
59332         * sysdeps/unix/dirstream.h: Renamed to ...
59333         * sysdeps/posix/dirstream.h: ... here.
59334         * sysdeps/unix/fdopendir.c: Renamed to ...
59335         * sysdeps/posix/fdopendir.c: ... here.
59336         * sysdeps/unix/opendir.c: Renamed to ...
59337         * sysdeps/posix/opendir.c: ... here.
59338         * sysdeps/unix/readdir.c: Renamed to ...
59339         * sysdeps/posix/readdir.c: ... here.
59340         * sysdeps/unix/readdir_r.c: Renamed to ...
59341         * sysdeps/posix/readdir_r.c: ... here.
59342         * sysdeps/unix/rewinddir.c: Renamed to ...
59343         * sysdeps/posix/rewinddir.c: ... here.
59344         * sysdeps/unix/seekdir.c: Renamed to ...
59345         * sysdeps/posix/seekdir.c: ... here.
59346         * sysdeps/unix/telldir.c: Renamed to ...
59347         * sysdeps/posix/telldir.c: ... here.
59348         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
59349         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
59350         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
59351         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
59352
59353         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
59354         * bits/fcntl.h: ... here.
59355
59356         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
59357         not 0.
59358         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
59359         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
59360         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
59361         (struct flock): Move l_start, l_len to the beginning.
59362         Use __pid_t for l_pid.
59363         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
59364         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
59365         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
59366         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
59367         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
59368         [__USE_LARGEFILE64] (struct flock64): New type.
59369         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
59370
59371         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
59372         * bits/dirent.h: ... here.
59373
59374         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
59375         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
59376
59377 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59378
59379         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59380         Change from 2.6.0 to 2.6.16.
59381         * sysdeps/unix/sysv/linux/configure: Regenerated.
59382         * sysdeps/unix/sysv/linux/kernel-features.h
59383         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
59384         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
59385         version.
59386         (__ASSUME_UTIMES): Likewise.
59387         (__ASSUME_CLONE_STOPPED): Remove.
59388         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
59389         architectures, not kernel version.
59390         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
59391         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59392         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59393         (__ASSUME_WAITID_SYSCALL): Likewise.
59394         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
59395         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
59396         * README: State 2.6.16 as minimum Linux kernel version.  Do not
59397         refer to older versions.
59398
59399 2012-08-06  Roland McGrath  <roland@hack.frob.com>
59400
59401         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
59402         Define alphasort64 as an alias.
59403         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
59404         Define versionsort64 as an alias.
59405         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
59406         Define scandir64 as an alias.
59407         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
59408         Define scandirat64 as an alias.
59409         * dirent/alphasort64.c (alphasort64):
59410         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
59411         * dirent/versionsort64.c: Likewise.
59412         * dirent/scandir64.c: Likewise.
59413         * dirent/scandirat64.c: Likewise.
59414         * sysdeps/wordsize-64/alphasort.c: File removed.
59415         * sysdeps/wordsize-64/alphasort64.c: File removed.
59416         * sysdeps/wordsize-64/scandir.c: File removed.
59417         * sysdeps/wordsize-64/scandir64.c: File removed.
59418         * sysdeps/wordsize-64/scandirat.c: File removed.
59419         * sysdeps/wordsize-64/scandirat64.c: File removed.
59420         * sysdeps/wordsize-64/versionsort.c: File removed.
59421         * sysdeps/wordsize-64/versionsort64.c: File removed.
59422         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
59423         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
59424         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
59425         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
59426         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
59427         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
59428         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
59429         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
59430
59431         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
59432         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59433         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
59434         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59435         [defined __arch64__ || defined __sparcv9]
59436         (__INO_T_MATCHES_INO64_T): New macro.
59437         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59438         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
59439         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
59440         * sysdeps/unix/sysv/linux/bits/dirent.h
59441         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
59442         (_DIRENT_MATCHES_DIRENT64): New macro.
59443
59444         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
59445         Define lockf64 as an alias.
59446         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
59447         Define fseeko64 as an alias.
59448         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
59449         Define ftello64 as an alias.
59450         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
59451         Define _IO_fgetpos64 and fgetpos64 as aliases.
59452         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
59453         Define _IO_fsetpos64 and fsetpos64 as aliases.
59454         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
59455         Conditionalize body on this.
59456         * libio/fseeko64.c: Likewise.
59457         * libio/ftello64.c: Likewise.
59458         * libio/iofgetpos64.c: Likewise.
59459         * libio/iofsetpos64.c: Likewise.
59460         * sysdeps/wordsize-64/lockf.c: File removed.
59461         * sysdeps/wordsize-64/lockf64.c: File removed.
59462         * sysdeps/wordsize-64/fseeko.c: File removed.
59463         * sysdeps/wordsize-64/fseeko64.c: File removed.
59464         * sysdeps/wordsize-64/ftello.c: File removed.
59465         * sysdeps/wordsize-64/ftello64.c: File removed.
59466         * sysdeps/wordsize-64/iofgetpos.c: File removed.
59467         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
59468         * sysdeps/wordsize-64/iofsetpos.c: File removed.
59469         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
59470         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
59471         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
59472         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
59473         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
59474         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
59475         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
59476         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
59477         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
59478         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
59479         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
59480
59481         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59482         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59483         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
59484         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59485         [defined __arch64__ || defined __sparcv9]
59486         (__OFF_T_MATCHES_OFF64_T): New macro.
59487         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59488         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59489         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
59490         (__OFF_T_MATCHES_OFF64_T): New macro.
59491
59492 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59493
59494         * stdlib/secure-getenv.c (__secure_getenv): Replace
59495         GLIBC_2_16 with GLIBC_2_17.
59496
59497 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59498
59499         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
59500         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
59501
59502 2012-08-03  David S. Miller  <davem@davemloft.net>
59503
59504         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59505
59506 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59507
59508         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
59509         Remove.
59510         (__ASSUME_CORRECT_SI_PID): Likewise.
59511         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
59512         (__ASSUME_TMPFS_NAME): Likewise.
59513         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
59514         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
59515         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
59516         (HAVE_AUX_SECURE): Make definition unconditional.
59517         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
59518         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
59519
59520 2012-08-03  Roland McGrath  <roland@hack.frob.com>
59521
59522         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
59523         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
59524         * sysdeps/mach/hurd/eloop-threshold.h: New file.
59525         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
59526         __eloop_threshold instead of SYMLOOP_MAX.
59527
59528         * sysdeps/generic/eloop-threshold.h: New file.
59529         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
59530         of MAXSYMLINKS.
59531         * elf/chroot_canon.c (chroot_canon): Likewise.
59532
59533 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59534
59535         [BZ #13717]
59536         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59537         Change to 2.6.0 everywhere.
59538         * sysdeps/unix/sysv/linux/configure: Regenerated.
59539         * sysdeps/unix/sysv/linux/kernel-features.h
59540         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
59541         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
59542         kernel versions.
59543         (__ASSUME_POSIX_TIMERS): Define unconditionally.
59544         (__ASSUME_FUTEX_REQUEUE): Remove.
59545         (__ASSUME_STATFS64): Define unconditionally.
59546         (__ASSUME_AT_SECURE): Likewise.
59547         (__ASSUME_CORRECT_SI_PID): Likewise.
59548         (__ASSUME_TGKILL): Define without depending on kernel version for
59549         i386.
59550         (__ASSUME_UTIMES): Likewise.
59551         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
59552         kernel version.
59553         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
59554         (__ASSUME_TMPFS_NAME): Likewise.
59555         * README: Update reference to Linux kernel versions.
59556
59557 2012-08-02  Marek Polacek  <polacek@redhat.com>
59558
59559         [BZ# 14150]
59560         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
59561         libc_cv_asm_type_prefix with %.
59562         * configure: Regenerated.
59563         * include/libc-symbols.h: Remove comment about
59564         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59565         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
59566         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
59567         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
59568         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
59569         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59570         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
59571         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
59572         * elf/tst-unique2mod1.c: Likewise.
59573         * elf/tst-unique1mod2.c: Likewise.
59574         * elf/tst-unique1mod1.c: Likewise.
59575         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
59576         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
59577         Replace ASM_TYPE_DIRECTIVE with .type.
59578         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59579         * sysdeps/i386/sysdep.h: Likewise.
59580         * sysdeps/x86_64/sysdep.h: Likewise.
59581         * sysdeps/sh/sysdep.h: Likewise.
59582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
59583         Do not define ASM_TYPE_DIRECTIVE.
59584         * sysdeps/powerpc/sysdep.h: Likewise.
59585         * sysdeps/powerpc/powerpc32/sysdep.h:
59586         Replace ASM_TYPE_DIRECTIVE with .type.
59587         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59588         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59589         * sysdeps/i386/fpu/e_powf.S: Likewise.
59590         * sysdeps/i386/fpu/e_expl.S: Likewise.
59591         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
59592         * sysdeps/i386/fpu/e_acosh.S: Likewise.
59593         * sysdeps/i386/fpu/e_pow.S: Likewise.
59594         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
59595         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
59596         * sysdeps/i386/fpu/s_expm1.S: Likewise.
59597         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
59598         * sysdeps/i386/fpu/e_log2.S: Likewise.
59599         * sysdeps/i386/fpu/e_log2l.S: Likewise.
59600         * sysdeps/i386/fpu/e_scalb.S: Likewise.
59601         * sysdeps/i386/fpu/e_powl.S: Likewise.
59602         * sysdeps/i386/fpu/e_log10f.S: Likewise.
59603         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
59604         * sysdeps/i386/fpu/e_logl.S: Likewise.
59605         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
59606         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
59607         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
59608         * sysdeps/i386/fpu/e_log2f.S: Likewise.
59609         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
59610         * sysdeps/i386/fpu/e_log.S: Likewise.
59611         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
59612         * sysdeps/i386/fpu/e_logf.S: Likewise.
59613         * sysdeps/i386/fpu/e_log10l.S: Likewise.
59614         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59615         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
59616         * sysdeps/i386/fpu/e_log10.S: Likewise.
59617         * sysdeps/i386/fpu/s_frexp.S: Likewise.
59618         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
59619         * sysdeps/i386/fpu/s_asinh.S: Likewise.
59620         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
59621         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59622         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59623         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59624         * sysdeps/i386/i686/strtok.S: Likewise.
59625         * sysdeps/i386/i386-mcount.S: Likewise.
59626         * sysdeps/i386/strtok.S: Likewise.
59627         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59628         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59629         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59630         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59631         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59632         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59633         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59634         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59635         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59636         * sysdeps/x86_64/_mcount.S: Likewise.
59637         * sysdeps/x86_64/strtok.S: Likewise.
59638         * sysdeps/sh/_mcount.S: Likewise.
59639
59640 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59641
59642         * libio/iofopen.c: Include <fcntl.h>.
59643         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59644         (_IO_fopen64, fopen64): Define as aliases.
59645         * libio/iofopen64.c: Include <fcntl.h>.
59646         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59647         Conditionalize body on this.
59648         * sysdeps/wordsize-64/iofopen.c: File removed.
59649         * sysdeps/wordsize-64/iofopen64.c: File removed.
59650
59651 2012-08-01  Marek Polacek  <polacek@redhat.com>
59652
59653         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59654         Use dlfcn directly instead of a variable.
59655         (binfmt-subdir): Do not define.
59656         (dlfcn): Likewise.
59657
59658 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59659
59660         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59661         Remove all definitions.
59662         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59663         <kernel-features.h>.
59664         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59665         (miss_F_GETOWN_EX): Remove all definitions.
59666         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59667         macro definition.
59668         [!__ASSUME_FCNTL64]: Remove conditional code.
59669         [__ASSUME_FCNTL64]: Make code unconditional.
59670         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59671         <kernel-features.h>.
59672         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59673         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59674         (lockf64) [__NR_fcntl64]: Make code unconditional.
59675         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59676
59677         * sysdeps/unix/sysv/linux/kernel-features.h
59678         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59679         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59680         Make code unconditional.
59681         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59682         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59684         [__NR_vfork]: Make code unconditional.
59685         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59686         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59688         [__NR_vfork]: Make code unconditional.
59689         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59690         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59691
59692 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59693
59694         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59695         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59696
59697         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59698         Define mkstemp64 as an alias.
59699         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59700         Define mkstemps64 as an alias.
59701         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59702         Define mkostemp64 as an alias.
59703         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59704         Define mkostemps64 as an alias.
59705         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59706         Conditionalize body on this.
59707         * misc/mkostemp64.c: Likewise.
59708         * misc/mkostemps64.c: Likewise.
59709         * misc/mkstemps64.c: Likewise.
59710         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59711         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59712         * sysdeps/wordsize-64/mkostemp.c: File removed.
59713         * sysdeps/wordsize-64/mkstemp.c: File removed.
59714         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59715         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59716         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59717         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59718
59719         [BZ #14138]
59720         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59721         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59722         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59723         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59724
59725         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59726         compat_symbol macros from <shlib-compat.h> rather than the underlying
59727         default_symbol_version and symbol_version macros, so that DEFAULT
59728         lines in shlib-versions are respected.
59729         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59730
59731 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59732
59733         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59734         Declare with warn_unused_result.
59735         (setgid, setregid, setegid, setresgid): Likewise.
59736         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59737         Likewise.
59738         * WUR-REPORT: Remove set*id functions.
59739
59740 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59741
59742         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59743
59744 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59745
59746         [BZ #10191]
59747         * include/sys/socket.h (__libc_accept, __libc_accept4):
59748         Add attribute_hidden.
59749         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59750
59751         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59752         use of PTR_MANGLE.
59753         * inet/getnetgrent_r.c (setup): Likewise.
59754
59755         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59756
59757 2012-07-31  David S. Miller  <davem@davemloft.net>
59758
59759         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59760
59761 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59762
59763         [BZ #13629]
59764         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59765         value between 1.0 and 2.0 and smaller part has absolute value less
59766         than 1.0.
59767         * math/s_clog10.c (__clog10): Likewise.
59768         * math/s_clog10f.c (__clog10f): Likewise.
59769         * math/s_clog10l.c (__clog10l): Likewise.
59770         * math/s_clogf.c (__clogf): Likewise.
59771         * math/s_clogl.c (__clogl): Likewise.
59772         * math/libm-test.inc (clog_test): Add more tests.
59773         (clog10_test): Likewise.
59774         * sysdeps/i386/fpu/libm-test-ulps: Update.
59775         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59776
59777 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59778
59779         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59780         Exit with zero in case no suitable GID is found, and write a
59781         message to standard error.
59782
59783 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59784
59785         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59786         rather than to 1.
59787         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59788         (MAXPATHLEN): Removed.
59789         (NOGROUP, NODEV): New macros.
59790         (setbit, clrbit, isset, isclr): New macros.
59791         (howmany, roundup, powerof2): New macros.
59792         (DEV_BSIZE): New macro.
59793
59794         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59795         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59796
59797         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59798         definition on [!__NO_LONG_DOUBLE_MATH].
59799
59800         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59801         PTR_MANGLE and PTR_DEMANGLE.
59802
59803         * socket/accept4.c (accept4): Rename to __libc_accept4.
59804         Define accept4 as a weak alias.
59805
59806         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59807         on [_DIRENT_HAVE_D_TYPE].
59808         * io/ftw.c (ftw_dir): Likewise.
59809
59810         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59811
59812         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59813
59814         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59815         Use the BSD numbers rather than the arbitrary ones we had.
59816         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59817         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59818         (SIGXCPU, SIGXFSZ): New macros.
59819         (_NSIG): Now 32.
59820
59821         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59822         initializer on [_LIBC_REENTRANT].
59823
59824         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59825         definitions inside [_POSIX_MAPPED_FILES].
59826
59827         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59828
59829         * dirent/opendir.c: Include <fcntl.h>.
59830
59831         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59832         (__libc_getspecific): Likewise.
59833         (__libc_key_create): Likewise.
59834
59835         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59836         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59837         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59838         (tmpfile64): Define as alias.
59839         * sysdeps/wordsize-64/tmpfile.c: File removed.
59840         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59841         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59842         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59843
59844         * stdio-common/vfscanf.c: Include <stdbool.h>.
59845         * nss/makedb.c: Likewise.
59846         * stdio-common/_i18n_number.h: Likewise.
59847         * argp/argp-help.c: Likewise.
59848         * posix/wordexp.c: Likewise.
59849         * sysdeps/posix/spawni.c: Likewise.
59850         * nss/nss_files/files-initgroups.c: Likewise.
59851         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59852         * nss/nss_files/files-initgroups.c: Likewise.
59853         * nss/nss_db/db-netgrp.c: Likewise.
59854         * nss/nss_db/db-initgroups.c: Likewise.
59855         * io/fchmodat.c: Include <sys/stat.h>.
59856
59857         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59858         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59859
59860         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59861         [HAVE_MMAP].
59862
59863         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59864         Add multiple inclusion protection.
59865
59866 2012-07-27  David S. Miller  <davem@davemloft.net>
59867
59868         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59869
59870 2012-07-27  Gary Benson  <gbenson@redhat.com>
59871
59872         [BZ #14298]
59873         * elf/rtld.c: Include <stap-probe.h>.
59874         (dl_main): Added static probes "init_start" and "init_complete".
59875         * elf/dl-load.c: Include <stap-probe.h>.
59876         (lose): Take new parameter "nsid".
59877         Added static probe "map_failed".
59878         (_dl_map_object_from_fd): Pass namespace id to lose.
59879         Added static probe "map_start".
59880         (open_verify): Pass namespace id to lose.
59881         * elf/dl-open.c: Include <stap-probe.h>.
59882         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59883         and "reloc_complete".
59884         * elf/dl-close.c: Include <stap-probe.h>.
59885         (_dl_close_worker): Added static probes "unmap_start" and
59886         "unmap_complete".
59887         * elf/rtld-debugger-interface.txt: New file documenting the above.
59888
59889 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59890
59891         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59892         rather than a string variable.
59893         * sunrpc/rpc_main.c (h_output): Likewise.
59894         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59895
59896 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59897
59898         * inet/check_native.c: New file.
59899
59900 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59901
59902         [BZ #13629]
59903         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59904         if larger part has absolute value 1.0.
59905         * math/s_clog10.c (__clog10): Likewise.
59906         * math/s_clog10f.c (__clog10f): Likewise.
59907         * math/s_clog10l.c (__clog10l): Likewise.
59908         * math/s_clogf.c (__clogf): Likewise.
59909         * math/s_clogl.c (__clogl): Likewise.
59910         * math/libm-test.inc (clog_test): Add more tests.
59911         (clog10_test): Likewise.
59912         * sysdeps/i386/fpu/libm-test-ulps: Update.
59913         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59914
59915         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59916         (pltexit): Likewise.
59917         (La_regs): Likewise.
59918         (La_retval): Likewise.
59919         (int_retval): Likewise.
59920         Update #error for removed macros to refer only to definitions in
59921         tst-audit.h.
59922         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59923         macro.
59924         (pltexit): Likewise.
59925         (La_regs): Likewise.
59926         (La_retval): Likewise.
59927         (int_retval): Likewise.
59928         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59929         macro.
59930         (pltexit): Likewise.
59931         (La_regs): Likewise.
59932         (La_retval): Likewise.
59933         (int_retval): Likewise.
59934         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59935         macro.
59936         (pltexit): Likewise.
59937         (La_regs): Likewise.
59938         (La_retval): Likewise.
59939         (int_retval): Likewise.
59940         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59941         macro.
59942         (pltexit): Likewise.
59943         (La_regs): Likewise.
59944         (La_retval): Likewise.
59945         (int_retval): Likewise.
59946         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59947         macro.
59948         (pltexit): Likewise.
59949         (La_regs): Likewise.
59950         (La_retval): Likewise.
59951         (int_retval): Likewise.
59952         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59953         macro.
59954         (pltexit): Likewise.
59955         (La_regs): Likewise.
59956         (La_retval): Likewise.
59957         (int_retval): Likewise.
59958         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59959         macro definitions in tst-audit.h.
59960         * sysdeps/i386/tst-audit.h: New file.
59961         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59962         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59963         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59964         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59965         * sysdeps/sh/tst-audit.h: Likewise.
59966         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59967         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59968         * sysdeps/x86_64/tst-audit.h: Likewise.
59969
59970 2012-07-26  Andreas Jaeger  <aj@suse.de>
59971
59972         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59973         ptrace.
59974
59975         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59976         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59977         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59978         PTRACE_O_MASK.
59979         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59980         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59981         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59982
59983         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59984         value.
59985
59986         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59987         _sigsys.
59988         (si_call_addr, si_syscall, si_arch): Define new macro.
59989         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59990         _sigsys.
59991         (si_call_addr, si_syscall, si_arch): Define new marcro.
59992         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59993         _sigsys.
59994         (si_call_addr, si_syscall, si_arch): Define new macro.
59995         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59996         _sigsys.
59997         (si_call_addr, si_syscall, si_arch): Define new macro.
59998
59999 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
60000
60001         [BZ #13717]
60002         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60003         Change to 2.4.21 where previously 2.4.1.
60004         * sysdeps/unix/sysv/linux/configure: Regenerated.
60005         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
60006         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
60007         Linux kernel version.
60008         (__ASSUME_STD_AUXV): Remove.
60009         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
60010         kernel version.
60011         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
60012         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
60013         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
60014         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
60015         (__ASSUME_NETLINK_SUPPORT): Likewise.
60016         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
60017         (__no_netlink_support): Remove conditional definition.
60018         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
60019         Remove.
60020         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
60021         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
60022         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
60023         (if_nameindex_ioctl): Remove.
60024         (if_nameindex_netlink): Do not handle __no_netlink_support.
60025         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
60026         code.
60027         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
60028         Remove conditional code.
60029         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
60030         code.
60031         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
60032         unconditional.
60033         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
60034         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
60035         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
60036         Remove.
60037         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
60038         [!__ASSUME_STD_AUXV]: Remove conditional code.
60039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
60040         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
60041         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
60042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
60043         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
60044         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
60045         code.
60046         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
60047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
60048         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
60049         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
60050         conditional code.
60051         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
60052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
60053         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
60054         code.
60055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
60056         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
60057         conditional code.
60058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
60059         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60060         code unconditional.
60061         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60062         conditional code.
60063         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60064         unconditional.
60065         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60066         conditional code.
60067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
60068         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60069         unconditional.
60070         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60071         conditional code.
60072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
60073         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60074         code unconditional.
60075         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60076         conditional code.
60077         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60078         unconditional.
60079         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60080         conditional code.
60081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
60082         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60083         code unconditional.
60084         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60085         conditional code.
60086         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60087         unconditional.
60088         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60089         conditional code.
60090
60091 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
60092
60093         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
60094         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
60095         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
60096         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
60097         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
60098         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
60099         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
60100         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
60101         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
60102         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
60103         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
60104         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
60105         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
60106         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
60107         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
60108         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
60109         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
60110         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
60111         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
60112         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
60113         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
60114         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
60115         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
60116
60117 2012-07-25  Florian Weimer  <fweimer@redhat.com>
60118
60119         * Versions.def: Add GLIBC_2.17.
60120         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
60121         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
60122         Introduce __libc_secure_getenv.
60123         * stdlib/Versions (2.17): Add secure_getenv
60124         (GLIBC_PRIVATE): Add __libc_secure_getenv.
60125         * stdlib/secure-getenv.c: Rename __secure_getenv to
60126         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
60127         symbol __secure_getenv for GLIBC_2.0.
60128         * stdlib/tst-secure-getenv.c: New.
60129         * stdlib/Makefile (tests): Add testcase.
60130         * manual/startup.texi (Environment Access): Document
60131         secure_getenv.
60132         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
60133         __libc_secure_getenv.
60134         * inet/ruserpass.c (ruserpass): Likewise.
60135         * malloc/mtrace.c (mtrace): Likewise.
60136         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
60137         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
60138         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
60139         * sysdeps/posix/tempname.c: Likewise.  Evaluate
60140         HAVE_SECURE_GETENV.
60141         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
60142         __secure_getenv to __libc_secure_getenv.
60143         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
60144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
60145         Likewise.
60146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
60147         Likewise.
60148         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
60149         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
60150         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
60151         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
60152         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
60153         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
60154         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
60155
60156 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
60157
60158         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
60159         (struct La_i86_retval): Likewise.
60160         (struct La_x86_64_regs): Likewise.
60161         (struct La_x86_64_retval): Likewise.
60162         (struct La_x32_regs): Likewise.
60163         (struct La_x32_retval): Likewise.
60164         (struct La_ppc32_regs): Likewise.
60165         (struct La_ppc32_retval): Likewise.
60166         (struct La_ppc64_regs): Likewise.
60167         (struct La_ppc64_retval): Likewise.
60168         (struct La_sh_regs): Likewise.
60169         (struct La_sh_retval): Likewise.
60170         (struct La_s390_32_regs): Likewise.
60171         (struct La_s390_32_retval): Likewise.
60172         (struct La_s390_64_regs): Likewise.
60173         (struct La_s390_64_retval): Likewise.
60174         (struct La_sparc32_regs): Likewise.
60175         (struct La_sparc32_retval): Likewise.
60176         (struct La_sparc64_regs): Likewise.
60177         (struct La_sparc64_retval): Likewise.
60178         (struct audit_ifaces): Remove architecture-specific pltenter and
60179         pltexit members.
60180         * sysdeps/i386/ldsodefs.h: New file.
60181         * sysdeps/powerpc/ldsodefs.h: Likewise.
60182         * sysdeps/s390/ldsodefs.h: Likewise.
60183         * sysdeps/sh/ldsodefs.h: Likewise.
60184         * sysdeps/sparc/ldsodefs.h: Likewise.
60185         * sysdeps/x86_64/ldsodefs.h: Likewise.
60186
60187 2012-07-25  Marek Polacek  <polacek@redhat.com>
60188
60189         [BZ #6808]
60190         * math/libm-test.inc (yn_test): Add another test.
60191         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
60192         to ERANGE when the result is +-Inf.
60193         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
60194         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
60195         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
60196         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
60197
60198 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
60199
60200         * conform/data/time.h-data (NULL): Use macro-constant.  Require
60201         equal to 0.
60202         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
60203         clock_t.
60204         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
60205
60206 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
60207
60208         * configure.in <sysdeps resolving>: Correct printing
60209         Implies_before.
60210         * configure: Regenerate.
60211
60212 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
60213
60214         * math/w_ilogb.c: Include <limits.h>.
60215         * math/w_ilogbl.c: Likewise.
60216
60217 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60218
60219         * manual/lang.texi (__va_copy): Document primarily as ISO C99
60220         va_copy.  Document allowing for unavailable va_copy only as
60221         pre-C99 compatibility.
60222         * manual/string.texi (Copying and Concatenation): Use va_copy
60223         instead of __va_copy in concat example.
60224
60225 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
60226
60227         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
60228         (__sendto): Use create_address_port.  Initialize APORT and deallocate
60229         it if not null.
60230
60231         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
60232         with O_NOLINK passed to __file_name_lookup.
60233
60234         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
60235         with O_NOLINK passed to __file_name_lookup.
60236
60237         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
60238         negative N or less than NGIDS.
60239
60240         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
60241         type to string_t.  Set ERANGE as errno and return it if NAME is not big
60242         enough.  Use memcpy instead of strncpy.
60243
60244 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60245
60246         * elf/Makefile (check-data): Remove.
60247         (localplt.data): New vpath directive.
60248         ($(objpfx)check-localplt.out): Use localplt.data from vpath
60249         instead of $(check-data).
60250         * scripts/data/localplt-generic.data: Move to ...
60251         * sysdeps/generic/localplt.data: ... here.
60252         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
60253         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
60254         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
60255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
60256         ... here.
60257         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
60258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
60259         ... here.
60260         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
60261         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
60262         ... here.
60263         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
60264         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
60265         ... here.
60266         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
60267         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
60268         ... here.
60269         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
60270         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
60271         ... here.
60272
60273 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60274
60275         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
60276         PPC32 and PPC64 files.
60277         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
60278         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
60279
60280 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60281
60282         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
60283         __makecontext_ret to ...
60284         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
60285         ... here and call exit if uc_link is NULL.  New file.
60286         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
60287         __makecontext_ret.S.
60288         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
60289         __makecontext_ret to ...
60290         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
60291         ... here and call exit if uc_link is NULL.  New file.
60292         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
60293         __makecontext_ret.S.
60294
60295 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60296
60297         * elf/elf.h (R_390_IRELATIVE): New definition.
60298         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
60299         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
60300         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
60301         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60302         (elf_machine_lazy_rel): Likewise.
60303         * sysdeps/s390/dl-irel.h: New file.
60304         * sysdeps/s390/s390-64/memcpy.S: New asm code.
60305         * sysdeps/s390/s390-64/memset.S: New asm code.
60306         * sysdeps/s390/s390-64/memcmp.S: New asm code.
60307         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
60308         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
60309         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
60310         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
60311         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
60312         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
60313         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
60314         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
60315         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
60316         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
60317         * sysdeps/s390/s390-32/memcpy.S: New asm code.
60318         * sysdeps/s390/s390-32/memset.S: New asm code.
60319         * sysdeps/s390/s390-32/memcmp.S: New asm code.
60320
60321 2012-07-17  Marek Polacek  <polacek@redhat.com>
60322
60323         [BZ #14349]
60324         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
60325         * sysdeps/s390/s390-64/configure.in: Likewise.
60326         * sysdeps/sparc/configure.in: Likewise.
60327         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
60328         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
60329         * sysdeps/i386/configure.in: Likewise.
60330         * sysdeps/x86_64/configure.in: Likewise.
60331         * sysdeps/sh/configure.in: Likewise.
60332         * sysdeps/s390/s390-32/configure: Regenerated.
60333         * sysdeps/s390/s390-64/configure: Likewise.
60334         * sysdeps/x86_64/configure: Likewise.
60335         * sysdeps/sh/configure: Likewise.
60336         * sysdeps/powerpc/powerpc64/configure: Likewise.
60337         * sysdeps/powerpc/powerpc32/configure: Likewise.
60338         * sysdeps/sparc/configure: Likwise.
60339         * sysdeps/i386/configure: Likewise.
60340
60341         * elf/dl-open.c: Comment fixes.
60342
60343 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
60344
60345         * Makefile [CXX] (check-data): Remove.
60346         [CXX] (c++-types.data): New vpath directive.
60347         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
60348         vpath.  Do not allow for C++ type data being missing.
60349         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
60350         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
60351         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
60352         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
60353         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
60354         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
60355         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
60356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
60357         ... here.
60358         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
60359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
60360         ... here.
60361         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
60362         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
60363         ... here.
60364         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
60365         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
60366         ... here.
60367         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
60368         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
60369         ... here.
60370         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
60371         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
60372         ... here.
60373         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
60374         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
60375         ... here.
60376         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
60377         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
60378
60379         * elf/tls-macros.h (TLS_LE): Move architecture-specific
60380         definitions to architecture-specific files.
60381         (TLS_IE): Likewise.
60382         (TLS_LD): Likewise.
60383         (TLS_GD): Likewise.
60384         * sysdeps/i386/tls-macros.h: New file.
60385         * sysdeps/powerpc/tls-macros.h: Likewise.
60386         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
60387         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
60388         * sysdeps/sh/tls-macros.h: Likewise.
60389         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
60390         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
60391         * sysdeps/x86_64/tls-macros.h: Likewise.
60392
60393 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60394
60395         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
60396         zero value for regular exit case.
60397
60398         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
60399         (__start_context): Preserve zero value for regular exit case.
60400
60401 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60402             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60403
60404         * manual/setjmp.texi (setcontext): Clarify normal process
60405         termination when uc_link is the null pointer.
60406         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
60407         exit call.
60408
60409 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
60410
60411         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
60412         preprocessor.  Test for each exception mask separately.
60413
60414 2012-07-16  Andreas Jaeger  <aj@suse.de>
60415
60416         * po/ru.po: Update from translation team.
60417
60418 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
60419
60420         * conform/data/string.h-data (NULL): Use macro-constant.  Require
60421         equal to 0.
60422         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
60423         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
60424         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
60425         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
60426         [ISO || ISO99 || ISO11] (*_t): Do not allow.
60427
60428 2012-07-13  Andreas Jaeger  <aj@suse.de>
60429
60430         * po/fr.po: Update from translation team.
60431
60432 2012-07-12  Marek Polacek  <polacek@redhat.com>
60433
60434         [BZ #14173]
60435         * math/libm-test.inc (yn_test): Add test for BZ #14173.
60436         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
60437         loop condition.
60438
60439 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
60440
60441         [BZ #13717]
60442         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60443         Change to 2.4.1 where previously 2.4.0.
60444         * sysdeps/unix/sysv/linux/configure: Regenerated.
60445         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
60446         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
60447         version.
60448         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
60449         (__ASSUME_AT_CLKTCK): Remove.
60450         (__ASSUME_AT_PAGESIZE): Likewise.
60451         (__ASSUME_AT_XID): Likewise.
60452         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
60453         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
60454         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
60455         unconditionally.
60456         (HAVE_AUX_PAGESIZE): Likewise.
60457         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
60458         [__ASSUME_AT_CLKTCK]: Make code unconditional.
60459         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
60460
60461 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
60462
60463         [BZ #14307]
60464         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
60465         the temporary buffer used to invoke __gethostbyname2_r,
60466         __gethostbyaddr_r and gethostbyname4_r to make room for struct
60467         host_data / struct gaih_addrtuple.
60468         * resolv/nss_dns/dns-host.c (global scope): Move definition of
60469         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
60470         header file nss/nsswitch.h.
60471         * nss/nsswitch.h (global scope): Add definition of implementation
60472         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
60473         resolv/nss_dns/dns-host.c).
60474
60475 2012-07-11  Andreas Jaeger  <aj@suse.de>
60476
60477         * po/fr.po: Update from translation team.
60478
60479         * po/sv.po: Update from translation team
60480         * po/fr.po: Another update from translation team.
60481
60482 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60483
60484         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
60485         for subnormals or multiply small sinh result by itself.
60486         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
60487         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60488
60489 2012-07-11  David S. Miller  <davem@davemloft.net>
60490
60491         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60492
60493 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
60494
60495         [BZ #14347]
60496         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
60497         (INTERNAL_MARK): Shift it here.
60498
60499 2012-07-10  Marek Polacek  <polacek@redhat.com>
60500
60501         [BZ #14151]
60502         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
60503         libc_cv_asm_global_directive with .globl.
60504         * configure: Regenerated.
60505         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
60506         with .globl.
60507         * sysdeps/i386/configure: Regenerated.
60508         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
60509         with .globl.
60510         * sysdeps/x86_64/configure: Regenerated.
60511         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
60512         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
60513         * elf/tst-unique2mod2.c: Likewise.
60514         * elf/tst-unique2mod1.c: Likewise.
60515         * elf/tst-unique1mod2.c: Likewise.
60516         * elf/tst-unique1mod1.c: Likewise.
60517         * sysdeps/s390/s390-32/sysdep.h: Likewise.
60518         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
60519         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60520         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60521         * sysdeps/mach/sysdep.h: Likewise.
60522         * sysdeps/i386/sysdep.h: Likewise.
60523         * sysdeps/i386/i386-mcount.S: Likewise.
60524         * sysdeps/x86_64/_mcount.S: Likewise.
60525         * sysdeps/x86_64/sysdep.h: Likewise.
60526         * sysdeps/sh/_mcount.S: Likewise.
60527         * sysdeps/sh/sysdep.h: Likewise.
60528         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
60529         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
60530         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
60531         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60532         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
60533         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
60534         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
60535         * locale/localeinfo.h: Likewise.
60536         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
60537         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
60538
60539 2012-07-09  Roland McGrath  <roland@hack.frob.com>
60540
60541         [BZ #14336]
60542         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
60543         system".
60544         * manual/message.texi (The Uniforum approach): Likewise.
60545         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
60546         (glibc iconv Implementation): Likewise.
60547
60548 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
60549
60550         [BZ #14337]
60551         * math/s_clog.c (__clog): Avoid scaling a value down where that
60552         could result in underflow.
60553         * math/s_clog10.c (__clog10): Likewise.
60554         * math/s_clog10f.c (__clog10f): Likewise.
60555         * math/s_clog10l.c (__clog10l): Likewise.
60556         * math/s_clogf.c (__clogf): Likewise.
60557         * math/s_clogl.c (__clogl): Likewise.
60558         * math/libm-test.inc (clog_test): Add more tests.
60559         (clog10_test): Likewise.
60560         * sysdeps/i386/fpu/libm-test-ulps: Update.
60561         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60562
60563 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
60564
60565         [BZ #14283]
60566         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
60567         by 7 not 8 to examine high bit of fractional part.
60568
60569         [BZ #14042]
60570         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
60571         for call to __mcount_internal.
60572         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
60573         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
60574         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
60575
60576 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
60577
60578         [BZ #14154]
60579         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
60580         approximation for values within 0x1p-13f of an odd multiple of
60581         pi/4.
60582         * math/libm-test.inc (tan_test): Do not allow spurious underflow
60583         exception.  Add more tests.
60584         * sysdeps/i386/fpu/libm-test-ulps: Update.
60585
60586         [BZ #6778]
60587         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
60588         inputs and return -1 for them.  Do not check for +Inf in case not
60589         reachable for +Inf.
60590         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
60591         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
60592         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60593         and return -1 for them.  Do not check for +Inf in case not
60594         reachable for +Inf.
60595         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
60596         define.
60597         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60598         and return -1 for them.  Do not check for +Inf in case not
60599         reachable for +Inf.
60600         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
60601         spurious underflow.
60602         * sysdeps/i386/fpu/libm-test-ulps: Update.
60603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60604
60605 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
60606
60607         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
60608
60609 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
60610
60611         [BZ #14157]
60612         [BZ #14331]
60613         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
60614         could result in spurious underflow.  Scale down values above
60615         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
60616         * math/s_csqrtf.c (__csqrtf): Likewise.
60617         * math/s_csqrtl.c (__csqrtl): Likewise.
60618         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
60619         spurious underflow.
60620         * sysdeps/i386/fpu/libm-test-ulps: Update.
60621         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60622
60623 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60624
60625         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60626         xopen-msg.sed.
60627         * catgets/xopen-msg.awk: New file.
60628         * catgets/xopen-msg.sed: Removed.
60629
60630         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60631         po2text.sed.
60632         * intl/po2test.awk: New file.
60633         * intl/po2test.sed: Removed.
60634
60635 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60636
60637         [BZ #14328]
60638         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60639         or multiply small sinh result by itself.
60640         * math/s_ctanf.c (__ctanf): Likewise.
60641         * math/s_ctanh.c (__ctanh): Likewise.
60642         * math/s_ctanhf.c (__ctanhf): Likewise.
60643         * math/s_ctanhl.c (__ctanhl): Likewise.
60644         * math/s_ctanl.c (__ctanl): Likewise.
60645         * math/libm-test.inc (ctan_test_tonearest): New function.
60646         (ctan_test_towardzero): Likewise.
60647         (ctan_test_downward): Likewise.
60648         (ctan_test_upward): Likewise.
60649         (ctanh_test_tonearest): Likewise.
60650         (ctanh_test_towardzero): Likewise.
60651         (ctanh_test_downward): Likewise.
60652         (ctanh_test_upward): Likewise.
60653         (main): Call these new functions.
60654         * sysdeps/i386/fpu/libm-test-ulps: Update.
60655         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60656
60657 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60658
60659         * .gitignore: Delete /ports entry.
60660
60661 2012-07-03  Andreas Jaeger  <aj@suse.de>
60662
60663         * po/bg.po: Update from translation team.
60664         * po/cs.po: Likewise.
60665         * po/de.po: Likewise.
60666         * po/hr.po: Likewise.
60667         * po/nl.pl: Likewise.
60668         * po/pl.po: Likewise.
60669         * po/vi.po: Likewise.
60670
60671 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60672
60673         * Makeconfig [!+link] (+link-before-libc): New variable.
60674         [!+link] (+link-after-libc): Likewise.
60675         [!+link] (+link-tests): Likewise.
60676         [!+link] (+link): Define in terms of $(+link-before-libc) and
60677         $(+link-after-libc).
60678         [!+link-static] (+link-static-before-libc): New variable.
60679         [!+link-static] (+link-static-after-libc): Likewise.
60680         [!+link-static] (+link-static-tests): Likewise.
60681         [!+link-static] (+link-static): Define in terms of
60682         $(+link-static-before-libc) and $(+link-static-after-libc).
60683         [build-shared] (link-libc-before-gnulib): New variable.
60684         [build-shared] (link-libc-tests): Likewise.
60685         [build-shared] (link-libc): Define in terms of
60686         $(link-libc-before-gnulib).
60687         [!build-shared] (link-libc-tests): New variable.
60688         (link-libc-static-tests): New variable.
60689         [!gnulib] (gnulib-arch): New variable.
60690         [!gnulib] (gnulib-tests): Likewise.
60691         [!gnulib] (static-gnulib-arch): Likewise.
60692         [!gnulib] (static-gnulib-tests): Likewise.
60693         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60694         Define with "=" instead of ":=".
60695         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60696         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60697         * Rules (binaries-all-notests): New variable.
60698         (binaries-all-tests): Likewise.
60699         (binaries-static-notests): Likewise.
60700         (binaries-static-tests): Likewise.
60701         (binaries-all): Define using $(binaries-all-notests) and
60702         $(binaries-all-tests).
60703         (binaries-static): Define using $(binaries-static-notests) and
60704         $(binaries-static-tests).
60705         (binaries-shared-tests): New variable.
60706         (binaries-shared-notests): Likewise.
60707         (binaries-shared): Remove variable.
60708         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60709         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60710         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60711         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60712         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60713         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60714         * elf/Makefile (sln-modules): New variable.
60715         (extra-objs): Add $(sln-modules:=.o).
60716         (ldconfig-modules): Add static-stubs.
60717         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60718         * elf/static-stubs.c: New file.
60719
60720         [BZ #14283]
60721         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60722         by 7 not 8 to examine high bit of fractional part.  Use volatile
60723         variables when splitting into final array of floats if
60724         __FLT_EVAL_METHOD__ != 0.
60725         * math/libm-test.inc (cos_test): Add another test.
60726         (sin_test): Likewise.
60727         * sysdeps/i386/fpu/libm-test-ulps: Update.
60728
60729         [BZ #14273]
60730         * math/libm-test.inc (cosh_test): Add more tests.
60731
60732         * version.h (RELEASE): Set to "development".
60733         (VERSION): Set to "2.16.90".
60734
60735 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60736
60737         * NEWS: Update copyright. Remove last-updated date.
60738         Mention math library bug fixes and timezone data changes.
60739         * README: Mention GNU/Hurd, x32, and HPPA support status.
60740
60741 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60742
60743         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60744
60745 2012-06-27  Andreas Jaeger  <aj@suse.de>
60746
60747         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60748
60749 2012-06-25  Andreas Jaeger  <aj@suse.de>
60750
60751         * sysdeps/s390/fpu/libm-test-ulps: Update.
60752
60753 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60754             Thomas Schwinge  <thomas@codesourcery.com>
60755
60756         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60757         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60758         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60759         fanotify_mark.
60760
60761 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60762
60763         * sysdeps/mach/start.c: Remove file.
60764         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60765         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60766         * sysdeps/sh/init-first.c: Likewise.
60767
60768         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60769         registers for frame unwinding purposes, add CFI directives.
60770         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60771         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60772         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60773         Likewise.
60774
60775         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60776         __fortify_fail returning.
60777         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60778
60779         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60780         sysdeps/sh/____longjmp_chk.S.
60781         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60782         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60783         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60784         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60785
60786         * sysdeps/sh/abort-instr.h: New file.
60787         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60788         process in case exit returns.
60789
60790         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60791         initialize the GOT register before use.
60792
60793         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60794         calculation of ARGC > 4.
60795
60796         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60797         meaningful names to some local labels.
60798
60799 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60800             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60801
60802         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60803         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60804         (__arch_compare_and_exchange_val_16_acq): Likewise.
60805         (__arch_compare_and_exchange_val_32_acq): Likewise.
60806         (atomic_exchange_and_add): Fix gUSA sequence.
60807         (atomic_add): Likewise.
60808         (atomic_add_negative): Likewise.
60809         (atomic_add_zero): Likewise.
60810         (atomic_bit_test_set): Likewise.
60811
60812 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60813
60814         [BZ #13579]
60815         * include/link.h (struct link_map): Add l_free_initfini.
60816         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60817         l_initfini.
60818         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60819         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60820         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60821         set.
60822
60823 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60824
60825         * configure.in: Use AC_LANG_SOURCE.
60826         * configure: Regenerate.
60827
60828 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60829
60830         * configure.in (libc_cv_localstatedir): New substituted variable.
60831         * configure: Regenerated.
60832         * config.make.in (localstatedir): New variable, substituted from
60833         libc_cv_localstatedir.
60834         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60835         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60836         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60837         * sysdeps/gnu/configure: Regenerated.
60838
60839 2012-06-21  Jeff Law  <law@redhat.com>
60840
60841         [BZ #14277]
60842         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60843         free.  Simplify list management for _LIBC case.
60844
60845 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60846
60847         [BZ #14273]
60848         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60849         Clear sign bit of 64-bit integer value before comparing against
60850         overflow value.
60851
60852         * sysdeps/mach/configure: Regenerated.
60853
60854 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60855
60856         [BZ #14278]
60857         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60858
60859 2012-06-21  Jeff Law  <law@redhat.com>
60860
60861         [BZ #13882]
60862         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60863         uint16_t for elements in the "seen" array to avoid char overflows.
60864         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60865         * elf/dl-open.c (dl_open_worker): Likewise.
60866
60867 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60868
60869         * scripts/list-sources.sh: Scan PORTS for translations.
60870         * po/libc.pot: Regenerated.
60871
60872 2012-06-21  Andreas Jaeger  <aj@suse.de>
60873
60874         [BZ #12194]
60875         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60876         warning.
60877         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60878         * bits/byteswap-16.h (__bswap_16): Likewise.
60879         * bits/byteswap.h (__bswap_constant_16): Likewise.
60880
60881 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60882
60883         [BZ #14117]
60884         * sysdeps/i386/fpu_control.h: Removed.
60885         * sysdeps/x86_64/fpu_control.h: Moved to ...
60886         * sysdeps/x86/fpu_control.h: Here.
60887
60888         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60889         (_FPU_SETCW): Likewise.
60890
60891 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60892
60893         [BZ #14117]
60894         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60895         * sysdeps/x86/fpu/bits/mathinline.h: This.
60896         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60897
60898         [BZ #14050]
60899         [BZ #14117]
60900         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60901         functions if __x86_64__ is defined.
60902
60903 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60904
60905         * string/endian.h: Add !__ASSEMBLER__ condition for including
60906         conversion interfaces.
60907
60908 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60909
60910         [BZ #14241]
60911         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60912         of ABS(x) in calculating zero to negative powers other than odd
60913         integers.
60914         * math/libm-test.inc (pow_test): Add more tests.
60915
60916 2012-06-15  Andreas Jaeger  <aj@suse.de>
60917
60918         * manual/contrib.texi (Contributors): Update entry of Liubov
60919         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60920         Machado Filho.
60921
60922 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60923
60924         * string/string.h: Add __wur to GNU version of strerror_r.
60925
60926 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60927
60928         [BZ #14229]
60929         * string/Makefile (tests): Add tst-strtok_r.
60930         * string/tst-strtok_r.c: New file.
60931         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60932         RAX_LP/RDX_LP on SAVE_PTR.
60933
60934 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60935
60936         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60937
60938 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60939
60940         * libm_test.inc (csqrt_test): Allow more spurious underflow
60941         exceptions.
60942         (j0_test): Likewise.
60943         (j1_test): Likewise.
60944         (y0_test): Likewise.
60945         (y1_test): Likewise.
60946
60947 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60948
60949         * po/Makefile (libc.pot): Use UTF-8 charset.
60950
60951 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60952
60953         [BZ #14210]
60954         Suppress sign-conversion warning from FD_SET.
60955         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60956         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60957         not unsigned long int.
60958         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60959
60960 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60961
60962         [BZ #14050]
60963         [BZ #14117]
60964         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60965         __extern_always_inline instead of __extern_inline.
60966         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60967         (__signbit): Likewise.
60968         (__signbitl): Support C++ namespace.
60969         (lrintf): New inline function.
60970         (lrint): Likewise.
60971         (llrintf): Likewise.
60972         (llrint): Likewise.
60973         (fmaxf): Likewise.
60974         (fmax): Likewise.
60975         (fminf): Likewise.
60976         (fmin): Likewise.
60977         (rint): Likewise.
60978         (rintf): Likewise.
60979         (ceil): Likewise.
60980         (ceilf): Likewise.
60981         (floor): Likewise.
60982         (floorf): Likewise.
60983         (nearbyint): Likewise.
60984         (nearbyintf): Likewise.
60985
60986 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60987
60988         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60989         non-default versions.
60990
60991 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60992
60993         [BZ #14218]
60994         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60995
60996 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60997
60998         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60999         (FE_UPWARD, FE_DOWNWARD): Don't define.
61000         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
61001         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61002
61003         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
61004         reading it.
61005         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61006         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61007
61008 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61009
61010         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
61011         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
61012         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
61013         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
61014
61015 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
61016
61017         [BZ #14117]
61018         * sysdeps/i386/fpu/bits/fenv.h: Removed.
61019         * sysdeps/i386/fpu/Implies: New file.
61020         * sysdeps/x86_64/fpu/Implies: Likewise.
61021         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
61022         * sysdeps/x86/fpu/bits/fenv.h: This.
61023
61024         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
61025         __SSE_MATH__.
61026
61027 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
61028
61029         [BZ #14134]
61030         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
61031         character 0xffff that matches the last element of the
61032         conversion table.
61033
61034 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61035
61036         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
61037         fmodl commit.
61038
61039 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61040
61041         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
61042         values higher than 25.6283.
61043
61044 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61045
61046         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
61047         subnormal exponent extraction and add some __builtin_expect.
61048         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
61049         Fix for subnormal mantissa calculation.
61050
61051 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
61052
61053         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
61054         cpu2 is -1 and errno is not ENOSYS.
61055
61056 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
61057
61058         [BZ #14117]
61059         * sysdeps/i386/i486/bits/string.h: Renamed to ...
61060         * sysdeps/x86/bits/string.h: This.
61061         * sysdeps/x86_64/bits/string.h: Removed.
61062
61063         * sysdeps/i386/i486/bits/string.h: Define inline functions only
61064         if not compiling for x86-64, but compiling for >= i486.
61065
61066         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
61067         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
61068
61069         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
61070         New macro from Linux kernel 3.4.0.
61071         (FP_XSTATE_MAGIC2): Likewise.
61072         (FP_XSTATE_MAGIC2_SIZE): Likewise.
61073         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
61074         (struct _fpx_sw_bytes): New struct.
61075         (struct _xsave_hdr): Likewise.
61076         (struct _ymmh_state): Likewise.
61077         (struct _xstate): Likewise.
61078
61079         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
61080         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
61081         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
61082         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
61083         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
61084         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
61085
61086         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
61087         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
61088         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
61089         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
61090         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
61091         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
61092
61093 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
61094
61095         [BZ #13743]
61096         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
61097         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
61098         (sysdep_headers): Include sys/platform/ppc.h.
61099         * sysdeps/powerpc/test-gettimebase.c: Test for
61100         __ppc_get_timebase() to catch future ISA opcode/insn changes.
61101         * manual/Makefile (appendices): Include platform.texi.
61102         * manual/contrib.texi (Contributors): Update @node pointers.
61103         * manual/maint.texi (Maintenance): Likewise.
61104         (Platform): New node.
61105         * manual/platform.texi: New file.  Document the new features.
61106
61107 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
61108             Jakub Jelinek  <jakub@redhat.com>
61109
61110         [BZ #14188]
61111         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
61112         where __builtin_expect is unavailable.
61113
61114 2012-06-03  David S. Miller  <davem@davemloft.net>
61115
61116         * stdlib/longlong.h: Updated from GCC.
61117
61118 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
61119
61120         [BZ #14042]
61121         * sysdeps/powerpc/powerpc32/mcount.c: New file.
61122         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
61123         __mcount_internal.
61124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
61125         (GLIBC_2.16): Likewise.
61126
61127 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61128
61129         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
61130
61131 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61132
61133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
61134         (default-abi): New variable.
61135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
61136         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
61137         variable.
61138         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
61139         Likewise.
61140         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
61141         Likewise.
61142         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
61143         Likewise.
61144
61145         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
61146         definition.  Document in comment.
61147
61148 2012-06-01  David S. Miller  <davem@davemloft.net>
61149
61150         * stdlib/longlong.h: Updated from GCC.
61151
61152 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61153
61154         [BZ #14117]
61155         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
61156         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
61157         sys/debugreg.h sys/io.h here.
61158         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
61159         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
61160         sys/io.h.
61161         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
61162         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
61163         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
61164         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
61165         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
61166         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
61167
61168         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
61169         Define only if __x86_64__ is defined.
61170
61171 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61172
61173         [BZ #14048]
61174         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
61175         Use int64_t for variable i.
61176         * math/libm-test.inc (fmod_test): Add more tests.
61177
61178         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
61179         z computation is not scheduled after fetestexcept.
61180         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
61181         Use math_force_eval instead of asm to ensure calculation scheduled
61182         before exception test.
61183         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
61184         Ensure a1 + u.d computation is not scheduled after fetestexcept.
61185
61186 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
61187
61188         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
61189         computation is not scheduled after fetestexcept.
61190
61191 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61192
61193         [BZ #14117]
61194         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
61195         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
61196
61197 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61198
61199         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
61200         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
61201
61202 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61203
61204         [BZ #14117]
61205         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
61206         <bits/wordsize.h>.
61207         (__WCHAR_MIN): Support __WORDSIZE == 64.
61208         (__WCHAR_MAX): Likewise.
61209
61210         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
61211         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
61212
61213         [BZ #14183]
61214         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
61215         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
61216
61217         [BZ #14117]
61218         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
61219         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
61220
61221         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
61222         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
61223
61224         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
61225         Defined to 1 if __x86_64__ isn't defined.
61226         (_STAT_VER_LINUX_OLD): New.
61227         (st_atime): Remove duplicate.
61228         (st_mtime): Likewise.
61229         (st_ctime): Likewise.
61230
61231 2012-05-31  David S. Miller  <davem@davemloft.net>
61232
61233         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
61234         entries.
61235
61236 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
61237
61238         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
61239         gen-libm-test.pl.
61240
61241         [BZ #14132]
61242         * elf/dl-reloc.c: Include <_itoa.h>.
61243         (_dl_reloc_bad_type): Remove use of INTUSE.
61244         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
61245         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
61246         * stdio-common/psiginfo.c (psiginfo): Likewise.
61247         * stdio-common/psignal.c (psignal): Likewise.
61248         * string/strsignal.c (strsignal): Likewise.
61249         * include/signal.h (_sys_siglist): Declare hidden proto.
61250         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
61251         INTVARDEF with libc_hidden_data_def.
61252         * stdio-common/itoa-udigits.c: Likewise.
61253         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
61254         (_itoa_lower_digits_internal): Remove declaration.
61255         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
61256         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
61257         (_sys_sigabbrev_internal): Remove aliases.
61258         (_sys_siglist): Define hidden alias.
61259
61260 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
61261
61262         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
61263         bits/sysctl.h.
61264
61265 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61266
61267         [BZ #14117]
61268         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
61269         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
61270
61271         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
61272         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
61273         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
61274         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
61275         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
61276         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
61277
61278         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
61279         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
61280         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
61281
61282         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
61283         with __addr.
61284         (insw): Likewise.
61285         (insl): Likewise.
61286         (outsb): Likewise.
61287         (outsw): Likewise.
61288         (outsl): Likewise.
61289
61290         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
61291         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
61292         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
61293
61294         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
61295         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
61296         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
61297         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
61298         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
61299         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
61300
61301         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
61302         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
61303
61304         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
61305         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
61306
61307         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
61308         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
61309         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
61310
61311         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
61312         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
61313         to ...
61314         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
61315
61316         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
61317         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
61318         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
61319
61320         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
61321         for x86-64.
61322         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
61323
61324 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
61325
61326         * math/math.h (M_El): Use two more decimal places.
61327         (M_LOG2El): Likewise.
61328         (M_LOG10El): Likewise.
61329         (M_LN2l): Likewise.
61330         (M_LN10l): Likewise.
61331         (M_PIl): Likewise.
61332         (M_PI_2l): Likewise.
61333         (M_PI_4l): Likewise.
61334         (M_1_PIl): Likewise.
61335         (M_2_PIl): Likewise.
61336         (M_2_SQRTPIl): Likewise.
61337         (M_SQRT2l): Likewise.
61338         (M_SQRT1_2l): Likewise.
61339
61340 2012-05-31  David S. Miller  <davem@davemloft.net>
61341
61342         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
61343         values between float registers.
61344         * sysdeps/sparc/sparc64/memset.S: Likewise.
61345         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
61346
61347 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
61348
61349         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
61350         -D_FORTIFY_SOURCE=1.
61351         (CPPFLAGS-tst-longjmp_chk.c): Define.
61352         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
61353         (CPPFLAGS-tst-longjmp_chk2.c): Define.
61354         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
61355         CFLAGS-tst-wchar-h.c.
61356
61357 2012-05-31  Marek Polacek  <polacek@redhat.com>
61358
61359         [BZ #14132]
61360         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
61361         __endmntent_internal): Remove declaration.
61362         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
61363         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
61364         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
61365
61366 2012-05-30  David S. Miller  <davem@davemloft.net>
61367
61368         * sysdeps/sparc/sparc32/soft-fp/q_util.c
61369         (___Q_simulate_exceptions): Use real FP ops rather than writing
61370         into the %fsr.
61371         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
61372         Likewise.
61373
61374 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61375
61376         [BZ #14117]
61377         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
61378         * sysdeps/x86/bits/xtitypes.h: This.
61379
61380         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
61381         * sysdeps/x86/bits/wordsize.h: This.
61382
61383         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
61384         * sysdeps/x86/bits/huge_vall.h: This.
61385
61386         * sysdeps/i386/bits/select.h: Removed.
61387         * sysdeps/x86_64/bits/select.h: Renamed to ...
61388         * sysdeps/x86/bits/select.h: This.
61389
61390         * sysdeps/i386/bits/setjmp.h: Removed.
61391         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
61392         * sysdeps/x86/bits/setjmp.h: This.
61393
61394         * sysdeps/i386/bits/mathdef.h: Removed.
61395         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
61396         * sysdeps/x86/bits/mathdef.h: This.
61397
61398 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
61399
61400         [BZ #14132]
61401         * include/sys/socket.h (__connect_internal)
61402         (__libc_sa_len_internal): Remove declaration.
61403         (__connect, __libc_sa_len): Declare hidden_proto.
61404         (SA_LEN): Remove use of INTUSE.
61405         * socket/connect.c: Add libc_hidden_def.
61406         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
61407         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
61408         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
61409         alias.
61410         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
61411         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
61412         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
61413         of adding _internal alias.
61414
61415 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61416
61417         [BZ #14117]
61418         * sysdeps/i386/bits/link.h: Removed.
61419         * sysdeps/i386/bits/linkmap.h: Likewise.
61420         * sysdeps/x86_64/bits/link.h: Renamed to ...
61421         * sysdeps/x86/bits/link.h: This.
61422         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
61423         * sysdeps/x86/bits/linkmap.h: This.
61424
61425         * sysdeps/i386/bits/endian.h: Removed.
61426         * sysdeps/x86_64/bits/endian.h: Renamed to ...
61427         * sysdeps/x86/bits/endian.h: This.
61428
61429         * sysdeps/i386/bits/byteswap.h: Removed.
61430         * sysdeps/i386/bits/byteswap-16.h: Likewise.
61431         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
61432         * sysdeps/x86/bits/byteswap.h: This.
61433         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
61434         * sysdeps/x86/bits/byteswap-16.h: This.
61435         * sysdeps/i386/Implies: Add x86.
61436         * sysdeps/x86_64/Implies: Likewise.
61437
61438 2012-05-30  David S. Miller  <davem@davemloft.net>
61439
61440         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
61441         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
61442         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
61443         (FP_TRAPPING_EXCEPTIONS): Define.
61444         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
61445         (FP_TRAPPING_EXCEPTIONS): Define.
61446         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
61447         subnormals only when inexact has been signalled or underflow
61448         exceptions are enabled.
61449         (_FP_PACK_CANONICAL): Likewise.
61450
61451 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61452
61453         [BZ #14183]
61454         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
61455         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
61456
61457 2012-05-30  Richard Henderson  <rth@twiddle.net>
61458
61459         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
61460         with #ifndef NOT_IN_libc.
61461
61462         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
61463         marked to avoid plt entry.
61464
61465 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61466
61467         [BZ #14112]
61468         * Makeconfig (default-abi): New macro.
61469         (abi-includes): Likewise.
61470         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
61471         $(abi-$(default-abi)-lib-soname) for soname if defined.
61472         ($(common-objpfx)gnu/lib-names.stmp): Generate from
61473         abi-variants.
61474         * Makefile (installed-stubs): Likewise.
61475         * include/stubs-biarch.h: Removed.
61476         * scripts/lib-names.awk: Only handle one library at a time.
61477         * scripts/soversions.awk: Remove WORDSIZE support.
61478         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
61479         entries.
61480         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
61481         Removed.
61482         (syscall-list-default-condition): Likewise.
61483         (syscall-list-default-condition): Likewise.
61484         (syscall-list-includes): Likewise.
61485         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
61486         syscall-list-* with abi-*.  Handle undefined abi-variants.
61487         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
61488         * sysdeps/unix/sysv/linux/i386/Implies: New file.
61489         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
61490         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
61491         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
61492         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
61493         Removed.
61494         (syscall-list-32-options): Likewise.
61495         (syscall-list-32-condition): Likewise.
61496         (syscall-list-64-options): Likewise.
61497         (syscall-list-64-condition): Likewise.
61498         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
61499         macro.
61500         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
61501         Renamed to ...
61502         (abi-*): This.
61503         (abi-64-ld-soname): New macro.
61504         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
61505         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
61506         Renamed to ...
61507         (abi-*): This.
61508         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
61509         * sysdeps/x86_64/x32/shlib-versions: Likewise.
61510
61511 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
61512
61513         * sysdeps/unix/sysv/linux/kernel-features.h
61514         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
61515         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
61516         include <kernel-features.h>.
61517         [!__NR_ftruncate64]: Remove conditional code.
61518         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61519         [__NR_ftruncate64]: Make code unconditional.
61520         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61521         * sysdeps/unix/sysv/linux/truncate64.c: Do not
61522         include <kernel-features.h>.
61523         [!__NR_ftruncate64]: Remove conditional code.
61524         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61525         [__NR_ftruncate64]: Make code unconditional.
61526         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
61528         include <kernel-features.h>.
61529         [!__NR_ftruncate64]: Remove conditional code.
61530         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61531         [__NR_ftruncate64]: Make code unconditional.
61532         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
61534         include <kernel-features.h>.
61535         [!__NR_ftruncate64]: Remove conditional code.
61536         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61537         [__NR_ftruncate64]: Make code unconditional.
61538         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61539
61540         * configure.in (libc_cv_fpie): Weaken to a compile test using
61541         LIBC_TRY_CC_OPTION.
61542         * configure: Regenerated.
61543
61544 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61545
61546         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
61547         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
61548         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
61549         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
61550         Refreshed.
61551         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
61552         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
61553         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
61554         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
61555         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
61556         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
61557         Refreshed.
61558
61559 2012-05-27  David S. Miller  <davem@davemloft.net>
61560
61561         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
61562         (___Q_zero): New.
61563         (__Q_simulate_exceptions): Return void.  Change to simulate
61564         exceptions by writing into the %fsr.
61565         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
61566         (__Qp_handle_exceptions): Likewise.
61567         (numbers): Delete.
61568         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
61569         __Qp_handle_exceptions.
61570         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
61571         __Qp_handle_exceptions.
61572         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61573         as unused and give dummy FP_RND_NEAREST initializer.
61574         (FP_INHIBIT_RESULTS): Define.
61575         (___Q_simulate_exceptions): Update declaration.
61576         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
61577         formatting.
61578         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61579         as unused and give dummy FP_RND_NEAREST initializer.
61580         (__Qp_handle_exceptions): Update declaration.
61581         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
61582         formatting.
61583
61584 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
61585
61586         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
61587         the temporary FPU control word.
61588         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
61589         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
61590         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
61591         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61592         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
61593         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
61594         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
61595         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61596         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
61597         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
61598         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61599
61600 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61601
61602         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
61603         fields.
61604
61605 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
61606
61607         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
61608         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
61609         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
61610         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
61611         Likewise.
61612         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
61613         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
61614         Likewise.
61615
61616 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
61617
61618         * po/h.po: Update from translation team.
61619
61620 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
61621
61622         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61623
61624         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61625         handling of denormals.
61626         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61627         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61628         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61629         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61630         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61631         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61632         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61633         Likewise.
61634
61635 2012-05-26  Marek Polacek  <polacek@redhat.com>
61636
61637         [BZ #14152]
61638         * math/libm-test.inc (fma_test): Don't always expect underflow
61639         exception.
61640
61641 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61642
61643         [BZ #12416]
61644         * elf/tst-execstack.c: Include stackinfo.h.
61645         (do_test): Adjust test case to ensure that pthread_getattr_np
61646         behaviour remains the same after marking stack executable.
61647
61648 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61649
61650         * sysdeps/unix/sysv/linux/kernel-features.h
61651         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61652         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61653         kernel-features.h.
61654         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61655         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61656         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61657         kernel-features.h.
61658         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61659         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61660
61661 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61662
61663         * configure.in: Define the default includes to being none.
61664         * configure: Regenerated.
61665
61666 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61667
61668         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61669         * sysdeps/x86_64/setjmp.S: Likewise.
61670         * sysdeps/i386/bsd-setjmp.S: Likewise.
61671         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61672         * sysdeps/i386/setjmp.S: Likewise.
61673         * sysdeps/i386/__longjmp.S: Likewise.
61674         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61675         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61676
61677         * include/stap-probe.h: New file.
61678         * configure.in: Handle --enable-systemtap.
61679         * configure: Regenerated.
61680         * config.h.in (USE_STAP_PROBE): New #undef.
61681         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61682         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61683         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61684
61685 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61686
61687         [BZ #13717]
61688         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61689         to 2.4.0 where earlier.
61690         * sysdeps/unix/sysv/linux/configure: Regenerated.
61691         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
61692         <kernel-features.h>.
61693         [__ASSUME_32BITUIDS]: Make code unconditional.
61694         [!__ASSUME_32BITUIDS]: Remove conditional code.
61695         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
61696         <kernel-features.h>.
61697         [__ASSUME_32BITUIDS]: Make code unconditional.
61698         [!__ASSUME_32BITUIDS]: Remove conditional code.
61699         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
61700         [__ASSUME_32BITUIDS]: Make code unconditional.
61701         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61702         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61703         <kernel-features.h>.
61704         [__ASSUME_32BITUIDS]: Make code unconditional.
61705         [!__ASSUME_32BITUIDS]: Remove conditional code.
61706         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61707         <kernel-features.h>.
61708         [__ASSUME_32BITUIDS]: Make code unconditional.
61709         [!__ASSUME_32BITUIDS]: Remove conditional code.
61710         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61711         <kernel-features.h>.
61712         [__ASSUME_32BITUIDS]: Make code unconditional.
61713         [!__ASSUME_32BITUIDS]: Remove conditional code.
61714         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61715         <kernel-features.h>.
61716         [__ASSUME_32BITUIDS]: Make code unconditional.
61717         [!__ASSUME_32BITUIDS]: Remove conditional code.
61718         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61719         <kernel-features.h>.
61720         [__ASSUME_32BITUIDS]: Make code unconditional.
61721         [!__ASSUME_32BITUIDS]: Remove conditional code.
61722         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61723         <kernel-features.h>.
61724         [__ASSUME_32BITUIDS]: Make code unconditional.
61725         [!__ASSUME_32BITUIDS]: Remove conditional code.
61726         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
61727         <kernel-features.h>.
61728         [__ASSUME_32BITUIDS]: Make code unconditional.
61729         [!__ASSUME_32BITUIDS]: Remove conditional code.
61730         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
61731         <kernel-features.h>.
61732         [__ASSUME_32BITUIDS]: Make code unconditional.
61733         [!__ASSUME_32BITUIDS]: Remove conditional code.
61734         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
61735         <kernel-features.h>.
61736         [__ASSUME_32BITUIDS]: Make code unconditional.
61737         [!__ASSUME_32BITUIDS]: Remove conditional code.
61738         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61739         <kernel-features.h>.
61740         [__ASSUME_32BITUIDS]: Make code unconditional.
61741         [!__ASSUME_32BITUIDS]: Remove conditional code.
61742         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61743         <kernel-features.h>.
61744         [__NR_setresgid] (__setresgid): Do not declare.
61745         [__ASSUME_32BITUIDS]: Make code unconditional.
61746         [!__ASSUME_32BITUIDS]: Remove conditional code.
61747         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61748         <kernel-features.h>.
61749         [__NR_setresuid] (__setresuid): Do not declare.
61750         [__ASSUME_32BITUIDS]: Make code unconditional.
61751         [!__ASSUME_32BITUIDS]: Remove conditional code.
61752         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61753         <kernel-features.h>.
61754         [__ASSUME_32BITUIDS]: Make code unconditional.
61755         [!__ASSUME_32BITUIDS]: Remove conditional code.
61756         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61757         <kernel-features.h>.
61758         [__ASSUME_32BITUIDS]: Make code unconditional.
61759         [!__ASSUME_32BITUIDS]: Remove conditional code.
61760         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61761         <kernel-features.h>.
61762         [__ASSUME_32BITUIDS]: Make code unconditional.
61763         [!__ASSUME_32BITUIDS]: Remove conditional code.
61764         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61765         <kernel-features.h>.
61766         [__ASSUME_32BITUIDS]: Make code unconditional.
61767         [!__ASSUME_32BITUIDS]: Remove conditional code.
61768         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61769         <kernel-features.h>.
61770         [__ASSUME_32BITUIDS]: Make code unconditional.
61771         [!__ASSUME_32BITUIDS]: Remove conditional code.
61772         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61773         <kernel-features.h>.
61774         [__ASSUME_32BITUIDS]: Make code unconditional.
61775         [!__ASSUME_32BITUIDS]: Remove conditional code.
61776         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61777         <kernel-features.h>.
61778         [__ASSUME_32BITUIDS]: Make code unconditional.
61779         [!__ASSUME_32BITUIDS]: Remove conditional code.
61780         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61781         <kernel-features.h>.
61782         [__ASSUME_32BITUIDS]: Make code unconditional.
61783         [!__ASSUME_32BITUIDS]: Remove conditional code.
61784         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61785         <kernel-features.h>.
61786         [__ASSUME_32BITUIDS]: Make code unconditional.
61787         [!__ASSUME_32BITUIDS]: Remove conditional code.
61788         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61789         <kernel-features.h>.
61790         [__ASSUME_32BITUIDS]: Make code unconditional.
61791         [!__ASSUME_32BITUIDS]: Remove conditional code.
61792         * sysdeps/unix/sysv/linux/kernel-features.h
61793         (__ASSUME_SETRESUID_SYSCALL): Remove.
61794         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61795         (__ASSUME_32BITUIDS): Likewise.
61796         (__ASSUME_LDT_WORKS): Likewise.
61797         (__ASSUME_O_DIRECTORY): Likewise.
61798         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61799         architecture but not kernel version.
61800         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61801         (__ASSUME_MMAP2_SYSCALL): Likewise.
61802         (__ASSUME_STAT64_SYSCALL): Likewise.
61803         (__ASSUME_IPC64): Likewise.
61804         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61805         <kernel-features.h>.
61806         [__ASSUME_32BITUIDS]: Make code unconditional.
61807         [!__ASSUME_32BITUIDS]: Remove conditional code.
61808         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61809         <kernel-features.h>.
61810         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61811         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61812         132096]: Remove conditional code.
61813         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61814         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61815         <kernel-features.h>.
61816         [__ASSUME_32BITUIDS]: Make code unconditional.
61817         [!__ASSUME_32BITUIDS]: Remove conditional code.
61818         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61819         <kernel-features.h>.
61820         [__ASSUME_32BITUIDS]: Make code unconditional.
61821         [!__ASSUME_32BITUIDS]: Remove conditional code.
61822         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61823         <kernel-features.h>.
61824         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61825         unconditional.
61826         (__setresgid): Do not declare.
61827         [__ASSUME_32BITUIDS]: Make code unconditional.
61828         [!__ASSUME_32BITUIDS]: Remove conditional code.
61829         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61830         <kernel-features.h>.
61831         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61832         unconditional.
61833         (__setresuid): Do not declare.
61834         [__ASSUME_32BITUIDS]: Make code unconditional.
61835         [!__ASSUME_32BITUIDS]: Remove conditional code.
61836         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61837         <kernel-features.h>.
61838         [__ASSUME_32BITUIDS]: Make code unconditional.
61839         [!__ASSUME_32BITUIDS]: Remove conditional code.
61840         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61841         <kernel-features.h>.
61842         [__ASSUME_32BITUIDS]: Make code unconditional.
61843         [!__ASSUME_32BITUIDS]: Remove conditional code.
61844
61845 2012-05-25  Richard Henderson  <rth@twiddle.net>
61846
61847         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61848         dl_hwcap to ifunc resolver.
61849         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61850         elf_ifunc_invoke.
61851         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61852         dl_hwcap to ifunc resolver.
61853         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61854
61855 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61856
61857         [BZ #14153]
61858         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61859         for |x| <= 2**-26, not 2**-57.
61860         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61861         exception.
61862
61863 2012-05-24  Jeff Law  <law@redhat.com>
61864
61865         * stdio-common/Makefile (tests): Add bug25.
61866         * stdio-common/bug25.c: New test.
61867
61868 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61869
61870         [BZ #13576]
61871         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61872         multiple of MALLOC_ALIGNMENT in size.
61873         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61874
61875 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61876
61877         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61878         Require >= 256.
61879         (FILENAME_MAX): Use macro-int-constant.
61880         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61881         (_IOFBF): Use macro-int-constant.
61882         (_IOLBF): Likewise.
61883         (_IONBF): Likewise.
61884         (SEEK_CUR): Likewise.
61885         (SEEK_END): Likewise.
61886         (SEEK_SET): Likewise.
61887         (TMP_MAX): Likewise.
61888         (EOF): Use macro-int-constant.  Require < 0.
61889         (NULL): Use macro-constant.  Require == 0.
61890         (stdin): Require type to be FILE *.
61891         (stdout): Likewise.
61892         (stderr): Likewise.
61893         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61894         macro-int-constant.
61895         (EXIT_SUCCESS): Likewise.
61896         (NULL): Use macro-constant.  Require == 0.
61897         (RAND_MAX): Use macro-int-constant.
61898         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61899         [C99-based standards] (strtof): Require function.
61900         [C99-based standards] (strtold): Likewise.
61901         [C99-based standards] (strtoll): Likewise.
61902         [C99-based standards] (strtoull): Likewise.
61903         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61904         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61905         [ISO || ISO99 || ISO11] (math.h): Likewise.
61906         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61907         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61908         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61909
61910 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61911
61912         [BZ #14132]
61913         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61914         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61915         * intl/dgettext.c (DCGETTEXT): Likewise.
61916         * intl/gettext.c (DCGETTEXT): Likewise.
61917         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61918         * posix/regex_internal.h (gettext): Likewise.
61919         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61920         Remove declaration.
61921         * include/argz.h (__argz_count_internal)
61922         (__argz_stringify_internal): Remove declaration.
61923         (__argz_count, __argz_stringify): Declare hidden proto.
61924         * intl/dcgettext.c: Remove use of INTDEF.
61925         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61926         * string/argz-stringify.c: Likewise.
61927         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61928         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61929         Declare hidden proto.
61930         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61931         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61932         Declare hidden proto.
61933         * include/stdio.h (__asprintf_internal): Don't declare.
61934         (__asprintf): Don't define as macro.  Declare hidden proto.
61935         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61936         (__fsetlocking): Declare hidden proto.
61937         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61938         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61939         hidden proto.
61940         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61941         (_IO_setlinebuf): Remove use of INTUSE.
61942         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61943         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61944         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61945         Remove declaration.
61946         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61947         (_IO_do_flush): Remove use of INTUSE.
61948         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61949         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61950         (_IO_adjust_column, _IO_least_wmarker)
61951         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61952         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61953         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61954         (_IO_default_doallocate, _IO_wdefault_doallocate)
61955         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61956         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61957         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61958         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61959         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61960         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61961         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61962         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61963         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61964         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61965         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61966         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61967         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61968         proto.
61969         (_IO_flush_all_internal, _IO_adjust_column_internal)
61970         (_IO_default_uflow_internal, _IO_default_finish_internal)
61971         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61972         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61973         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61974         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61975         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61976         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61977         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61978         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61979         (_IO_file_close_internal, _IO_file_close_it_internal)
61980         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61981         (_IO_file_init_internal, _IO_file_attach_internal)
61982         (_IO_file_fopen_internal, _IO_file_read_internal)
61983         (_IO_file_sync_internal, _IO_file_seek_internal)
61984         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61985         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61986         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61987         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61988         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61989         (_IO_list_all_internal, _IO_link_in_internal)
61990         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61991         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61992         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61993         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61994         (_IO_do_write_internal, _IO_padn_internal)
61995         (_IO_getline_info_internal, _IO_getline_internal)
61996         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61997         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61998         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61999         (_IO_vfscanf_internal, _IO_vfprintf_internal)
62000         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
62001         (_IO_init_internal, _IO_un_link_internal): Don't declare.
62002         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
62003         with libc_hidden_ver, remove use of INTUSE.
62004         * libio/genops.c: Likewise.
62005         * libio/freopen.c: Likewise.
62006         * libio/freopen64.c: Likewise.
62007         * libio/iofclose.c: Likewise.
62008         * libio/iofdopen.c: Likewise.
62009         * libio/iofflush.c: Likewise.
62010         * libio/iofflush_u.c: Likewise.
62011         * libio/iofgets.c: Likewise.
62012         * libio/iofgets_u.c: Likewise.
62013         * libio/iofopen.c: Likewise.
62014         * libio/iofopncook.c: Likewise.
62015         * libio/iofread.c: Likewise.
62016         * libio/iofread_u.c: Likewise.
62017         * libio/ioftell.c: Likewise.
62018         * libio/iofwrite.c: Likewise.
62019         * libio/iogetline.c: Likewise.
62020         * libio/iogets.c: Likewise.
62021         * libio/iogetwline.c: Likewise.
62022         * libio/iopadn.c: Likewise.
62023         * libio/iopopen.c: Likewise.
62024         * libio/ioseekoff.c: Likewise.
62025         * libio/ioseekpos.c: Likewise.
62026         * libio/iosetbuffer.c: Likewise.
62027         * libio/iosetvbuf.c: Likewise.
62028         * libio/ioungetc.c: Likewise.
62029         * libio/ioungetwc.c: Likewise.
62030         * libio/iovdprintf.c: Likewise.
62031         * libio/iovsprintf.c: Likewise.
62032         * libio/iovsscanf.c: Likewise.
62033         * libio/memstream.c: Likewise.
62034         * libio/obprintf.c: Likewise.
62035         * libio/oldfileops.c: Likewise.
62036         * libio/oldiofclose.c: Likewise.
62037         * libio/oldiofdopen.c: Likewise.
62038         * libio/oldiofopen.c: Likewise.
62039         * libio/oldiopopen.c: Likewise.
62040         * libio/oldstdfiles.c: Likewise.
62041         * libio/putc.c: Likewise.
62042         * libio/setbuf.c: Likewise.
62043         * libio/setlinebuf.c: Likewise.
62044         * libio/stdfiles.c: Likewise.
62045         * libio/strops.c: Likewise.
62046         * libio/vasprintf.c: Likewise.
62047         * libio/vscanf.c: Likewise.
62048         * libio/vsnprintf.c: Likewise.
62049         * libio/vswprintf.c: Likewise.
62050         * libio/wfiledoalloc.c: Likewise.
62051         * libio/wfileops.c: Likewise.
62052         * libio/wgenops.c: Likewise.
62053         * libio/wmemstream.c: Likewise.
62054         * libio/wstrops.c: Likewise.
62055         * libio/__fpurge.c: Likewise.
62056         * libio/__fsetlocking.c: Likewise.
62057         * assert/assert.c: Likewise.
62058         * debug/fgets_chk.c: Likewise.
62059         * debug/fgets_u_chk.c: Likewise.
62060         * debug/fread_chk.c: Likewise.
62061         * debug/fread_u_chk.c: Likewise.
62062         * debug/gets_chk.c: Likewise.
62063         * debug/obprintf_chk.c: Likewise.
62064         * debug/vasprintf_chk.c: Likewise.
62065         * debug/vdprintf_chk.c: Likewise.
62066         * debug/vsnprintf_chk.c: Likewise.
62067         * debug/vsprintf_chk.c: Likewise.
62068         * malloc/mtrace.c: Likewise.
62069         * misc/error.c: Likewise.
62070         * misc/syslog.c: Likewise.
62071         * stdio-common/asprintf.c: Likewise.
62072         * stdio-common/fxprintf.c: Likewise.
62073         * stdio-common/getw.c: Likewise.
62074         * stdio-common/isoc99_fscanf.c: Likewise.
62075         * stdio-common/isoc99_scanf.c: Likewise.
62076         * stdio-common/isoc99_vfscanf.c: Likewise.
62077         * stdio-common/isoc99_vscanf.c: Likewise.
62078         * stdio-common/isoc99_vsscanf.c: Likewise.
62079         * stdio-common/printf-prs.c: Likewise.
62080         * stdio-common/printf_fp.c: Likewise.
62081         * stdio-common/printf_fphex.c: Likewise.
62082         * stdio-common/printf_size.c: Likewise.
62083         * stdio-common/putw.c: Likewise.
62084         * stdio-common/scanf.c: Likewise.
62085         * stdio-common/sprintf.c: Likewise.
62086         * stdio-common/tmpfile.c: Likewise.
62087         * stdio-common/vfprintf.c: Likewise.
62088         * stdio-common/vfscanf.c: Likewise.
62089         * stdlib/strfmon_l.c: Likewise.
62090         * sunrpc/openchild.c: Likewise.
62091         * sunrpc/xdr_stdio.c: Likewise.
62092         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
62093         * sysdeps/mach/hurd/tmpfile.c: Likewise.
62094
62095 2012-05-24  Roland McGrath  <roland@hack.frob.com>
62096
62097         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62098
62099         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
62100         in the third column, to generate for the shared library an IFUNC
62101         that uses _dl_vdso_vsym.
62102         * Makerules (COMPILE.c, compile-stdin.c): New variables.
62103         * Makeconfig (object-suffixes-noshared): New variable.
62104
62105         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
62106         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
62107         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
62108         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
62109
62110         [BZ #14132]
62111         * include/sys/time.h (__gettimeofday): Remove macro.
62112         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
62113         * time/gettimeofday.c (__gettimeofday): Remove #undef.
62114         Remove INTDEF.
62115         (__gettimeofday): Add libc_hidden_def.
62116         (gettimeofday): Add libc_hidden_weak.
62117         * sysdeps/mach/gettimeofday.c: Likewise.
62118         * sysdeps/posix/gettimeofday.c: Likewise.
62119         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
62120         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
62121         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
62122         (__gettimeofday_internal): Remove strong_alias.
62123         (__gettimeofday): Add libc_hidden_def.
62124         (gettimeofday): Add libc_hidden_weak.
62125         * sysdeps/unix/syscalls.list (gettimeofday):
62126         Remove __gettimeofday_internal alias.
62127
62128 2012-05-24  Daniel Jacobowitz  <drow@false.org>
62129             H.J. Lu  <hongjiu.lu@intel.com>
62130
62131         [BZ #12495]
62132         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
62133         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
62134         (largebin_index_32_big): New.
62135         (largebin_index): Use it for 16-byte alignment.
62136         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
62137         correction with front_misalign.
62138
62139 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
62140
62141         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
62142         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
62143         Likewise.
62144         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
62145         Likewise.
62146         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
62147         Likewise.
62148         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
62149         Likewise.
62150         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
62151         Likewise.
62152         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
62153         Likewise.
62154         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
62155         Likewise.
62156         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
62157         Likewise.
62158         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
62159         Likewise.
62160         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
62161         Likewise.
62162         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
62163         Likewise.
62164         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
62165         Likewise.
62166
62167         * scripts/data/c++-types-x32-linux-gnu.data: New file.
62168         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
62169
62170 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
62171
62172         [BZ #10846]
62173         [BZ #14036]
62174         * math/libm-test.inc (exp_test): Add test from bug 14036.
62175         (pow_test): Add test from bug 10846.
62176
62177         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
62178         and other flags.
62179         (special_function): Do not include flags in test name.
62180         (parse_args): Likewise.
62181         * sysdeps/i386/fpu/libm-test-ulps: Update.
62182         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
62183         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
62184         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
62185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62186
62187         * math/gen-libm-test.pl (%beautify): Add entries for underflow
62188         exceptions.
62189         * math/libm-test.inc ("Philosophy"): Update comment about
62190         exception testing.
62191         (UNDERFLOW_EXCEPTION): New macro.
62192         (UNDERFLOW_EXCEPTION_OK): Likewise.
62193         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
62194         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
62195         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
62196         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
62197         (INVALID_EXCEPTION_OK): Update value.
62198         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
62199         (OVERFLOW_EXCEPTION_OK): Likewise.
62200         (IGNORE_ZERO_INF_SIGN): Likewise.
62201         (test_exceptions): Handle underflow exceptions.
62202         (acos_test): Update for underflow exception expectations.
62203         (cexp_test): Likewise.
62204         (clog_test): Likewise.
62205         (clog10_test): Likewise.
62206         (csqrt_test): Likewise.
62207         (ctan_test): Likewise.
62208         (ctanh_test): Likewise.
62209         (exp_test): Likewise.
62210         (exp10_test): Likewise.
62211         (exp2_test): Likewise.
62212         (expm1_test): Likewise.
62213         (fma_test): Likewise.
62214         (j0_test): Likewise.
62215         (jn_test): Likewise.
62216         (nexttoward_test): Likewise.
62217         (pow_test): Likewise.
62218         (scalbn_test): Likewise.
62219         (scalbln_test): Likewise.
62220         (tan_test): Likewise.
62221         (y1_test): Likewise.
62222         * sysdeps/i386/fpu/libm-test-ulps: Update.
62223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62224
62225 2012-05-23  David S. Miller  <davem@davemloft.net>
62226
62227         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62228         (__libc_sigaction): Remove unused local variables.
62229
62230 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62231
62232         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
62233
62234 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
62235
62236         mktime: avoid signed integer overflow
62237         * time/mktime.c (__mktime_internal): Do not mishandle the case
62238         where diff == INT_MIN.
62239
62240         mktime: simplify computation of average
62241         * time/mktime.c (ranged_convert): Use new time_t_avg function
62242         instead of rolling our own (probably-slower) code.
62243
62244         mktime: do not assume signed right shift propagates sign bit
62245         * time/mktime.c (isdst_differ): New static function.
62246         (__mktime_internal): No need to normalize tm_isdst now.
62247         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
62248         tm_isdst values.
62249
62250         mktime: merge another wrapv change from gnulib
62251         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
62252         from some compilers.
62253
62254         mktime: remove incorrect attempt at unusual arithmetics
62255         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
62256         The code didn't really work on such machines anyway.
62257         (TYPE_MINIMUM): Assume two's complement.
62258         (twos_complement_arithmetic): Verify that long_int and time_t
62259         are two's complement (or unsigned, in the latter case).
62260
62261         mktime: check signed shifts on long_int and time_t, too
62262         * time/mktime.c (SHR): Check that shifts work as desired
62263         on the types long_int and time_t too, as SHR is used on
62264         such types.
62265
62266         mktime: do not assume 'long' is wide enough
62267         * time/mktime.c (verify): Move decl up.
62268         (long_int): New type.
62269         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
62270         to remove assumption in the code that 'long' is wide enough to
62271         store year values.  This assumption is not true on x32 and on
62272         some non-glibc platforms.
62273
62274         mktime: merge wrapv change from gnulib
62275         * time/mktime.c (WRAPV): New macro.
62276         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
62277         (guess_time_tm, __mktime_internal): Do not assume that signed
62278         integer overflow wraps around; modern compilers generate code
62279         where this assumption is no longer valid.
62280
62281 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62282
62283         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62284         Replace "jmp L(pseudo_end)" with "ret".
62285         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
62286         Likewise.
62287
62288 2012-05-23  Andreas Jaeger  <aj@suse.de>
62289
62290         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
62291         * sysdeps/unix/sysv/linux/poll.c: Remove file.
62292
62293 2012-05-23  Andreas Jaeger  <aj@suse.de>
62294             Maximilian Attems  <max@stro.at>
62295
62296         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
62297         New macros.
62298
62299 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62300
62301         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
62302         code so that pseudo_end is just ret and the stack pointer is
62303         correct also for static library in error case.
62304
62305 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
62306
62307         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
62308         move to syscalls.list.
62309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
62310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
62311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
62312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
62313
62314         * manual/install.texi (Running make install): Do not mention Linux
62315         kernel version for which pt_chown is not needed.
62316         (Linux): Do not mention problems with nscd with 2.0 kernels.
62317         * INSTALL: Regenerated.
62318
62319 2012-05-23  Andreas Jaeger  <aj@suse.de>
62320
62321         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
62322         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
62323         macro.
62324         * sysdeps/unix/sysv/linux/s390/bits/mman.h
62325         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62326         * sysdeps/unix/sysv/linux/sh/bits/mman.h
62327         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62328         * sysdeps/unix/sysv/linux/i386/bits/mman.h
62329         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62330         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
62331         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62332         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
62333         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62334         * sysdeps/unix/sysv/linux/bits/in.h
62335         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
62336
62337 2012-05-22  Roland McGrath  <roland@hack.frob.com>
62338
62339         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
62340         (PREPARE_VERSION): Just use assert instead, it will be elided
62341         under [NDEBUG] anyway.
62342
62343 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62344
62345         * sysdeps/unix/sysv/linux/Makefile: Include
62346         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
62347         (sysdep_routines): Remove sysctl.
62348         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
62349         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
62350         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
62351         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
62352         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
62353
62354 2012-05-22  Andreas Jaeger  <aj@suse.de>
62355
62356         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
62357         that pseudo_end is just ret and the stack pointer is correct also
62358         for static library in error case.
62359
62360 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
62361
62362         [BZ #14122]
62363         * nss/nsswitch.c (defconfig_entries): New variable.
62364         (__nss_database_lookup): Don't leak defconfig entries.
62365         (nss_parse_service_list): Don't leak on error paths.
62366         (free_database_entries): New function.
62367         (free_defconfig): New function.
62368         (free_mem): Move common code to free_database_entries.
62369
62370 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62371
62372         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
62373         Add arch_prctl.
62374         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
62375
62376         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
62377         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
62378         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
62379         New macro.
62380         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
62381         (INTERNAL_SYSCALL_TYPES): Likewise.
62382         (LOAD_ARGS_TYPES_[1-6]): Likewise.
62383         (LOAD_REGS_TYPES_[1-6]): Likewise.
62384         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
62385         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
62386
62387 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62388
62389         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
62390         copysignl for GLIBC_2_0.
62391         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
62392         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
62393         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
62394         logbl for GLIBC_2_0.
62395         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
62396         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
62397
62398 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62399
62400         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
62401         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62402
62403         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62404         Use "neg %eax".
62405
62406         * time/mktime.c: Update copyright years.
62407
62408 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62409
62410         mktime: merge comment-quoting-style change from gnulib
62411         * time/mktime.c: Quote 'like this' in comments.
62412         The GNU coding standards suggest that we no longer quote `like this',
62413         as "`" and "'" are typically rendered asymmetrically nowadays.
62414         The typical gnulib style is to quote 'like this' when quoting
62415         code, and "like this" when quoting English.
62416
62417         * time/mktime.c (compile-command): Add "-I.".
62418
62419         mktime: merge mktime-internal.h change from gnulib
62420         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
62421
62422         mktime: merge time_r change from gnulib
62423         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
62424
62425         mktime: merge DEBUG change from gnulib
62426         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
62427         case system <time.h> has a #define.
62428
62429         mktime: merge <sys/types.h> change from gnulib
62430         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
62431         since <time.t> is now guaranteed to define time_t.
62432
62433         mktime: merge HAVE_CONFIG_H change from gnulib
62434         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
62435
62436 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62437
62438         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62439         Use "neg %eax".
62440
62441         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
62442         __rlim_t cast.
62443         (struct rusage): Use anonymous union to pad each field to
62444         __syscall_slong_t.
62445
62446 2012-05-21  David S. Miller  <davem@davemloft.net>
62447
62448         * Makefules (o-iterator): Remove .s cases.
62449         (compile-command.s): Delete.
62450         (COMPILE.s): Delete.
62451         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
62452
62453 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
62454
62455         * configure.in (libc_cv_predef_stack_protector): Only consider
62456         "foobar" and "__stack_chk_fail" lines in libc_undefs.
62457         * configure: Regenerated.
62458
62459 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62460
62461         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62462         New macro.  Use R*LP on int and pointer.
62463         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
62464         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
62465         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
62466         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
62467
62468         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
62469         [__WORDSIZE_TIME64_COMPAT32] instead of
62470         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
62471         (struct utmp): Likewise.
62472         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
62473         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
62474         Renamed to ...
62475         (__WORDSIZE_TIME64_COMPAT32): This.
62476         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
62477         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
62478         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
62479         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
62480         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62481         (__WORDSIZE_TIME64_COMPAT32): New macro.
62482
62483 2012-05-21  Andreas Jaeger  <aj@suse.de>
62484
62485         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
62486         only if [SHARED]. Add prototype for __wcschr_ia32.
62487
62488 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62489
62490         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
62491         of %rbp unmolested in the jmp_buf while mangling the low bits.
62492         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
62493         unmolested high bits of %rbp while demangling the low bits.
62494         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
62495
62496 2012-05-21  Andreas Jaeger  <aj@suse.de>
62497
62498         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
62499         * sunrpc/svc_simple.c: Use it for registerrpc.
62500         * sunrpc/xcrypt.c: Use it for passwd2des.
62501
62502         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
62503
62504 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62505
62506         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
62507         Don't define if [__SYSCALL_WORDSIZE != 32].
62508         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
62509         New macro.
62510
62511 2012-05-21  Bruno Haible  <bruno@clisp.org>
62512             Andreas Jaeger  <aj@suse.de>
62513
62514         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
62515         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
62516         inptr and inend for must_buffer_ch.
62517         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
62518         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
62519         * stdio-common/Makefile (tests): Remove bug15.
62520         (bug15-ENV): Remove macro.
62521         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
62522         anymore.
62523
62524 2012-05-19  Andreas Jaeger  <aj@suse.de>
62525             Roland McGrath  <roland@hack.frob.com>
62526
62527         * manual/contrib.texi: Completely rewritten. It contains now an
62528         alphabetical list of contributors and their contributions.
62529
62530 2012-05-21  Richard Henderson  <rth@twiddle.net>
62531
62532         * misc/getauxval.c (__getauxval): Use unsigned long int.
62533         * misc/sys/auxv.h: Include <sys/cdefs.h>.
62534         (getauxval): Use unsigned long int.
62535
62536 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62537
62538         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62539
62540 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62541
62542         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
62543         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
62544         __alignof__ (long double).
62545
62546 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62547
62548         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62549
62550 2012-05-20  Richard Henderson  <rth@twiddle.net>
62551
62552         * misc/getauxval.c: New file.
62553         * misc/sys/auxv.h: New file.
62554         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
62555         (routines): Add getauxval.
62556         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
62557         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
62558         * elf/dl-sysdep.c (_dl_auxv): Remove.
62559         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
62560         * elf/dl-support.c (_dl_auxv): New variable.
62561         (_dl_aux_init): Initialize it.
62562         * manual/startup.texi (Auxiliary Vector): New node.
62563         * sysdeps/generic/bits/hwcap.h: New file.
62564         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
62565         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
62566         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
62567         * sysdeps/sparc/sysdep.h: ... here.  Include it.
62568         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
62569         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
62570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62571         Update.
62572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
62573         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
62574         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
62575         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
62576         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62577         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62578         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
62579         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
62580
62581 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62582
62583         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62584
62585 2012-05-19  David S. Miller  <davem@davemloft.net>
62586
62587         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62588
62589 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62590
62591         [BZ #14123]
62592         * math/s_ccosh.c: Include <float.h>
62593         (__ccosh): Avoid internal overflow calculating sinh and cosh
62594         values before multiplying by sin and cos values.
62595         * math/s_ccoshf.c: Likewise.
62596         * math/s_ccoshl.c: Likewise.
62597         * math/s_csin.c: Likewise.
62598         * math/s_csinf.c: Likewise.
62599         * math/s_csinl.c: Likewise.
62600         * math/s_csinh.c: Likewise.
62601         * math/s_csinhf.c: Likewise.
62602         * math/s_csinhl.c: Likewise.
62603         * math/libm-test.inc (ccos_test): Add more tests.
62604         (ccosh_test): Likewise.
62605         (csin_test): Likewise.
62606         (csinh_test): Likewise.
62607         * sysdeps/i386/fpu/libm-test-ulps: Update.
62608         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62609
62610 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
62611
62612         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
62613         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
62614
62615         * sysdeps/x86_64/x32/_itoa.h: Add comment.
62616
62617 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62618
62619         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
62620         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
62621         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62622         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62623         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62624         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62625         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62626         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62627         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62628         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62629         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62630         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62631         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62632         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62633         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62634         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62635         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62636         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62637         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62638         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62639         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62640         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62641         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62642         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62643         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62644         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62645         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62646         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62647         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62648         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62649         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62650
62651 2012-05-18  Andreas Jaeger  <aj@suse.de>
62652
62653         * csu/.gitignore: Delete.
62654
62655 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62656
62657         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62658         (timex): Use __syscall_slong_t.
62659
62660 2012-05-18  Andreas Jaeger  <aj@suse.de>
62661             Carlos O'Donell  <carlos_odonell@mentor.com>
62662
62663         * manual/install.texi (Configuring and compiling): Update
62664         description about files modified in the source directory.
62665         * INSTALL: Regenerated.
62666
62667 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62668
62669         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62670         value.  Use "or" to set return value to -1.
62671         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62672         negate return value.
62673
62674 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62675
62676         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62677         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62678         failure if the compiler has Graphite support disabled.
62679         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62680         Likewise.
62681         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62682         (CFLAGS-memmove.c): Likewise.
62683         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62684         Likewise.
62685
62686 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62687
62688         * sysdeps/x86_64/x32/_itoa.h: New file.
62689
62690         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62691         getdents system call only if kernel and user dirents have the
62692         same d_ino and d_off.
62693
62694         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62695         LLONG_MAX != LONG_MAX.
62696         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62697         (_fitoa_word): Likewise.
62698
62699         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62700         years.
62701         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62702         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62703         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62704
62705         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62706         include <bits/wordsize.h>.  Check __x86_64__ instead of
62707         __WORDSIZE.
62708         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62709         if __x86_64__ is defined.  Use anonymous union on fpstate.
62710
62711         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62712         anonymous union.
62713
62714 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62715
62716         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62717         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62718         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62719         Refer to _rtld_local_ro instead of _rtld_global_ro.
62720         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62721         Likewise.
62722         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62723         Likewise.
62724         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62725         Likewise.
62726         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62727         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62728         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62729
62730         [BZ #10882]
62731         * sysdeps/powerpc/powerpc32/dl-machine.c
62732         (__elf_machine_runtime_setup) [PROF]: Don't reference
62733         _dl_prof_resolve.
62734
62735 2012-05-18  Andreas Jaeger  <aj@suse.de>
62736
62737         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62738         function only available for GCCs before 3.4 since GCC 3.4
62739         introduced a builtin.
62740         (lrint): Likewise.
62741         (llrintf): Likewise.
62742         (llrint): Likewise.
62743         (fmaxf): Likewise.
62744         (fmax): Likewise.
62745         (fminf): Likewise.
62746         (fmin): Likewise.
62747         (rint): Likewise.
62748         (rintf): Likewise.
62749         (nearbyint): Likewise.
62750         (nearbyintf): Likewise.
62751         (ceil): Likewise.
62752         (ceilf): Likewise.
62753         (floor): Likewise.
62754         (floorf): Likewise.
62755
62756 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62757
62758         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62759         on both fields and cast pointer to __syscall_ulong_t.
62760
62761         * bits/types.h (__fsword_t): New type.
62762         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62763         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62764         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62765         (__FSWORD_T_TYPE): Likewise.
62766         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62767         (__FSWORD_T_TYPE): Likewise.
62768         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62769         (__FSWORD_T_TYPE): Likewise.
62770         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62771         (__FSWORD_T_TYPE): Likewise.
62772         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62773         __SWORD_TYPE with __fsword_t.
62774         (statfs64): Likewise.
62775
62776 2012-05-17  David S. Miller  <davem@davemloft.net>
62777
62778         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62779
62780 2012-05-17  Andreas Jaeger  <aj@suse.de>
62781
62782         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62783         warning.
62784
62785 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62786
62787         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62788
62789 2012-05-17  Andreas Jaeger  <aj@suse.de>
62790
62791         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62792         when it is used.
62793
62794 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62795
62796         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62797
62798 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62799
62800         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62801         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62802
62803 2012-05-17  Andreas Jaeger  <aj@suse.de>
62804             Carlos O'Donell  <carlos_odonell@mentor.com>
62805
62806         [BZ #14059]
62807         * sysdeps/x86_64/multiarch/init-arch.h
62808         (bit_YMM_Usable): Rename to...
62809         (bit_AVX_Usable): ... this.
62810         (bit_FMA4_Usable): New macro.
62811         (bit_XMM_state): New macro.
62812         (bit_YMM_state): New macro.
62813         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62814         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62815         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62816         (CPUID_OSXSAVE): New macro.
62817         (CPUID_AVX): New macro.
62818         (CPUID_FMA4): New macro.
62819         (index_YMM_Usable): Rename to...
62820         (index_AVX_Usable): ... this.
62821         (HAS_AVX): Use HAS_ARCH_FEATURE.
62822         (HAS_FMA4): Likewise.
62823         (HAS_YMM_USABLE): Remove.
62824         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62825         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62826         are present.
62827         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62828         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62829         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62830         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62831         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62832
62833 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62834
62835         * math/libm-test.c: Support platforms without multiple rounding modes.
62836         * math/bug-nextafter.c: Support platforms without FP exceptions.
62837         * math/bug-nexttoward.c: Likewise.
62838         * math/test-fenv.c: Likewise.
62839         * math/test-misc.c: Likewise.
62840         * stdlib/bug-getcontext.c: Likewise.
62841
62842 2012-05-17  Andreas Jaeger  <aj@suse.de>
62843
62844         * manual/examples/search.c (critter_cmp): Change signature to
62845         avoid warnings.
62846         * manual/string.texi (Collation Functions): Likewise.
62847
62848 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62849
62850         * bits/types.h: Fold copyright years.
62851         * bits/typesizes.h: Likewise.
62852         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62853         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62854         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62855         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62856         * time/time.h: Likewise.
62857
62858 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62859
62860         [BZ #208]
62861         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62862         in instead of returning them.  Return void.
62863         (__libc_mallinfo): Accumulate over all arenas.
62864         (__malloc_stats): Adjust for change in int_mallinfo interface.
62865
62866 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62867
62868         [BZ #10375]
62869         * configure.in (NM): Add AC_CHECK_TOOL for it.
62870         (libc_extra_cflags): New substituted variable.
62871         Check for -fstack-protector being used implicitly.
62872         * configure: Regenerated.
62873         * config.make.in (config-extra-cflags): New variable,
62874         gets @libc_extra_cflags@.
62875         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62876
62877         [BZ #10375]
62878         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62879         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62880         * configure: Regenerated.
62881         * config.make.in (CPPUNDEFS): New substituted variable.
62882         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62883         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62884         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62885
62886 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62887
62888         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62889         (mq_attr): Use __syscall_slong_t.
62890
62891 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62892
62893         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62894         Check __x86_64__ instead of __WORDSIZE.
62895         (_STAT_VER_LINUX): Likewise.
62896         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62897         __syscall_ulong_t and __syscall_slong_t.
62898         (stat64): Likewise.
62899
62900 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62901
62902         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62903
62904 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62905
62906         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62907
62908 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62909
62910         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62911         __syscall_ulong_t.
62912
62913         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62914         include <bits/wordsize.h>.  Check __x86_64__ instead of
62915         __WORDSIZE.
62916         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62917         defined.
62918         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62919
62920         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62921         include <bits/wordsize.h>.  Check __x86_64__ instead of
62922         __WORDSIZE.
62923         (user_regs_struct): Use "__extension__ unsigned long long"
62924         instead of "unsigned long" if __x86_64__ is defined.
62925         (user): Likewise.  Pad after pointer field if __ILP32__ is
62926         defined.
62927
62928 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62929
62930         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62931         versions 5 to 9.
62932         * configure: Regenerated.
62933         * manual/install.texi (texinfo): Increase version requirement to
62934         4.5 or later.
62935         * INSTALL: Regenerated.
62936
62937         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62938
62939 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62940
62941         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62942
62943         * sysdeps/x86_64/x32/ffs.c: New file.
62944
62945         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62946         __syscall_ulong_t.
62947         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62948         defined.  Use __syscall_ulong_t.
62949         (shminfo): Use __syscall_ulong_t.
62950         (shm_info): Likewise.
62951
62952         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62953         __syscall_ulong_t.
62954
62955         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62956         <bits/wordsize.h>.
62957         (msgqnum_t): Use __syscall_ulong_t.
62958         (msglen_t): Likewise.
62959         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62960         __syscall_ulong_t.
62961
62962         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62963         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62964
62965         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62966
62967         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62968         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62969
62970         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62971         __syscall_slong_t.
62972
62973         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62974         include <bits/wordsize.h>.  Check __x86_64__ instead of
62975         __WORDSIZE.
62976
62977         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62978         "unsigned long long int" if __x86_64__ is defined.
62979         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62980
62981         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62982         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62983         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62984
62985         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62986         <stdint.h>.
62987         (GET_PC): Cast to uintptr_t first.
62988         (GET_FRAME): Likewise.
62989         (GET_STACK): Likewise.
62990
62991         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62992         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62993         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62994         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62995         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62996         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62997         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62998         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62999         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
63000         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
63001         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
63002         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
63003         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
63004         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
63005         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
63006         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
63007         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
63008         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
63009         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
63010         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
63011         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
63012         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
63013         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
63014         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
63015         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
63016         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
63017         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
63018         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
63019         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
63020
63021 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
63022
63023         * Makerules (+depfiles): Also collect depfiles from .oS in
63024         $(extra-objs).
63025         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
63026         .oS, $(libnldbl-routines)).
63027
63028         * Makerules (native-compile-mkdep-flags): Define.
63029         * sunrpc/Makefile (extra-objs): Add $(addprefix
63030         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
63031         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
63032         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
63033         calling $(make-target-directory).
63034
63035 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63036
63037         * bits/types.h (__snseconds_t): Removed.
63038         * time/time.h (struct timespec): Replace __snseconds_t with
63039         __syscall_slong_t.
63040         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
63041         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
63042         Likewise.
63043         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63044         (__SNSECONDS_T_TYPE): Likewise.
63045         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63046         (__SNSECONDS_T_TYPE): Likewise.
63047         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63048         (__SNSECONDS_T_TYPE): Likewise.
63049
63050 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63051
63052         * sysdeps/mach/hurd/bits/typesizes.h
63053         (__SYSCALL_SLONG_TYPE): New macro.
63054         (__SYSCALL_ULONG_TYPE): Likewise.
63055
63056 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63057
63058         * bits/types.h (__syscall_slong_t): New type.
63059         (__syscall_ulong_t): Likewise.
63060
63061         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
63062         (__SYSCALL_ULONG_TYPE): Likewise.
63063         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63064         (__SYSCALL_SLONG_TYPE): Likewise.
63065         (__SYSCALL_ULONG_TYPE): Likewise.
63066         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63067         (__SYSCALL_SLONG_TYPE): Likewise.
63068         (__SYSCALL_ULONG_TYPE): Likewise.
63069         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63070         (__SYSCALL_SLONG_TYPE): Likewise.
63071         (__SYSCALL_ULONG_TYPE): Likewise.
63072
63073 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63074
63075         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
63076         Add sigaltstack-offsets.sym.
63077         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
63078         <sigaltstack-offsets.h>.
63079         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
63080         longjmp_msg pointer.
63081         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
63082         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
63083         signal stack.
63084         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
63085
63086 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63087
63088         * elf/stackguard-macros.h: Remove file.
63089         * sysdeps/generic/stackguard-macros.h: New file.
63090         * sysdeps/i386/stackguard-macros.h: Likewise.
63091         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
63092         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
63093         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
63094         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
63095         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
63096         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
63097         * sysdeps/x86_64/stackguard-macros.h: Likewise.
63098         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
63099         <elf/stackguard-macros.h>.
63100
63101         [BZ #14109]
63102         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
63103         __aligned__ in attribute.
63104         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
63105         (gregset_t): Likewise.
63106
63107 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63108
63109         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
63110         * sysdeps/x86_64/64/Implies-after: Here.  New file.
63111         * sysdeps/x86_64/x32/Implies-after: New file.
63112
63113 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63114
63115         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
63116         and access return value for _dl_profile_fixup.  Use R10_LP to
63117         load frame size.
63118
63119 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63120
63121         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
63122
63123 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63124
63125         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
63126         * sysdeps/x86_64/x32/sysdep.h: New file.
63127
63128 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63129
63130         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
63131         * sysdeps/x86_64/setjmp.S: Likewise.
63132
63133 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63134
63135         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
63136         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
63137         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
63138         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
63139         remove unused global constant.
63140
63141 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
63142
63143         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
63144         include of <not-cancel.h>.
63145
63146 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63147
63148         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
63149
63150 2012-05-15  Jeff Law  <law@redhat.com>
63151             Andreas Jaeger  <aj@suse.de>
63152
63153         [BZ #13594]
63154         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
63155         out from...
63156         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
63157         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
63158         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
63159         code changing __hst_map_handle.map.
63160
63161 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63162
63163         * configure.in (sysnames): Look for Implies-before and Implies-after
63164         files.
63165         * configure: Regenerated.
63166
63167 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63168
63169         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
63170         8-byte data alignment with LP_SIZE alignment.
63171
63172 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63173
63174         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
63175         into R10_LP.
63176
63177 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63178
63179         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
63180
63181 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63182
63183         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
63184         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
63185         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
63186         Likewise.
63187         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
63188
63189 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63190
63191         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
63192         (stackinfo_sub_sp): Likewise.
63193
63194 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63195
63196         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
63197         RAX_LP.
63198
63199 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63200
63201         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
63202         into R*_LP.
63203
63204 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63205
63206         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
63207         sizes into R*_LP.
63208
63209 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63210
63211         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
63212
63213 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63214
63215         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
63216         into R11_LP and load __x86_64_shared_cache_size_half into
63217         R8_LP.
63218
63219 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63220
63221         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
63222         R8_LP.
63223
63224 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63225
63226         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
63227         logb for POWER7.
63228         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
63229         logbf for POWER7.
63230         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
63231         logbl for POWER7.
63232         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
63233         powerpc32/power7/fpu/s_logb.c via #include.
63234         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
63235         powerpc32/power7/fpu/s_logbf.c via #include.
63236         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
63237         powerpc32/power7/fpu/s_logbl.c via #include.
63238
63239 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63240
63241         * README.libm: Remove file.
63242
63243 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63244
63245         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
63246         count for x32.  Use R*_LP and omit operand-size suffix.
63247
63248 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63249
63250         * shlib-versions: Move x86_64-.*-linux.* entries to ...
63251         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
63252         * sysdeps/x86_64/x32/shlib-versions: New file.
63253
63254 2012-05-14  Roland McGrath  <roland@hack.frob.com>
63255
63256         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
63257         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
63258         Use _dl_fatal_printf instead.
63259
63260 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63261
63262         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
63263         set if not set by the user.  Do not allow for being unset.
63264         * sysdeps/unix/sysv/linux/configure: Regenerated.
63265
63266 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63267
63268         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
63269         the `q' suffix from lea and replace .quad with ASM_ADDR.
63270
63271 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63272
63273         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
63274         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
63275         instead of $17.
63276         (PTR_DEMANGLE): Likewise.
63277
63278 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63279
63280         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
63281         (LP_OP): Likewise.
63282         (ASM_ADDR): Likewise.
63283         (RAX_LP): Likewise.
63284         (RBP_LP): Likewise.
63285         (RBX_LP): Likewise.
63286         (RCX_LP): Likewise.
63287         (RDI_LP): Likewise.
63288         (RSI_LP): Likewise.
63289         (RSP_LP): Likewise.
63290         (R8_LP): Likewise.
63291         (R9_LP): Likewise.
63292         (R10_LP): Likewise.
63293         (R10_LP): Likewise.
63294         (R11_LP): Likewise.
63295         (R12_LP): Likewise.
63296         (R13_LP): Likewise.
63297         (R14_LP): Likewise.
63298         (R15_LP): Likewise.
63299
63300 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63301
63302         * sysdeps/x86_64/x32/dl-machine.h: New file.
63303
63304 2012-05-14  Andreas Jaeger  <aj@suse.de>
63305
63306         * manual/Makefile (subdir): Remove export of subdir.
63307         (all): Remove target.
63308         (.PHONY): Remove all from list.
63309         (mkinstalldirs): Remove.
63310         (.PHONY): Remove installdirs from list.
63311         ($(inst_infodir)/libc.info): Use make-target-directory.
63312         (installdirs): Remove.
63313         (subdir_%): Remove.
63314         (glibc-targets): Remove.
63315         (lib): Remove.
63316         (stubs): Remove.
63317         ($(objpfx)stubs ../po/manual.pot): Remove.
63318         ($(objpfx)stamp%): Remove.
63319         (make-target-directory): Remove.
63320         (subdir_install): Remove.
63321         (routines): Remove.
63322         (aux): Remove.
63323         (sources): Remove.
63324         (objects): Remove.
63325         (headers): Remove.
63326
63327         [BZ #13750]
63328         * manual/.gitignore: Remove, it's not needed anymore.
63329         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
63330         all files in it.
63331         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
63332         directory.
63333         (texis): Renamed to $(objpfx)texis.
63334         (texis-path): New, contains path to generated files.
63335         (chapters.%): Use texis-path for complete path, add extra argument
63336         libc-texinfo.sh.
63337         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
63338         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
63339         (summary,texi, stamp-summary): Use complete path of
63340         files. Generate files in build dir.
63341         (dir-add.texi): Build in build dir.
63342         (libm-err.texi,stamp-libm-err): Likewise.
63343         (version.texi, stamp-version): Likewise.
63344         (.%c.texi): Likewise.
63345         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
63346         (mostlyclean): Remove target.
63347         (realclean): Remove target.
63348         (generated): Add new variable with contents from mostlyclean and
63349         realclean, remove entries duplicated in common-mostlyclean, add
63350         stamp-libm-err and stamp-version.
63351         (generated-dirs): Add libc directory.
63352         ($(inst_infodir)/libc.info): Install files from build dir.
63353
63354         * manual/install.texi (Configuring and compiling): Adjust since
63355         the info files are not part of the tar ball anymore.
63356
63357 2012-05-14  Andreas Jaeger  <aj@suse.de>
63358
63359         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
63360         variable.
63361
63362 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63363
63364         [BZ #13717]
63365         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
63366         to 2.2.0 where earlier.
63367         * sysdeps/unix/sysv/linux/configure: Regenerated.
63368         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
63369         Remove conditional code.
63370         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
63371         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
63372         Remove conditional code.
63373         [!__NR_lchown]: Likewise.
63374         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63375         [__NR_lchown]: Likewise.
63376         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
63377         comment referencing __ASSUME_LCHOWN_SYSCALL.
63378         * sysdeps/unix/sysv/linux/i386/sigaction.c
63379         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63380         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63381         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
63382         Remove conditional code.
63383         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
63384         (__protocol_available): Remove #if 0 code.
63385         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
63386         conditional code.
63387         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
63388         * sysdeps/unix/sysv/linux/kernel-features.h
63389         (__ASSUME_GETCWD_SYSCALL): Don't define.
63390         (__ASSUME_REALTIME_SIGNALS): Likewise.
63391         (__ASSUME_PREAD_SYSCALL): Likewise.
63392         (__ASSUME_PWRITE_SYSCALL): Likewise.
63393         (__ASSUME_POLL_SYSCALL): Likewise.
63394         (__ASSUME_LCHOWN_SYSCALL): Likewise.
63395         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
63396         non-SPARC.
63397         (__ASSUME_SIOCGIFNAME): Don't define.
63398         (__ASSUME_MSG_NOSIGNAL): Likewise.
63399         (__ASSUME_SENDFILE): Define unconditionally.
63400         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
63401         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
63402         conditional code.
63403         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
63404         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
63405         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63406         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63407         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
63408         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63409         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
63411         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63412         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
63414         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63415         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
63417         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63418         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
63420         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63421         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
63423         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63424         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
63426         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63427         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
63429         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63430         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
63432         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63433         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63434         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
63435         Remove conditional code.
63436         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63437         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63438         Remove conditional code.
63439         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63440         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
63441         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
63442         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63443         Remove conditional code.
63444         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63445         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
63446         Remove conditional code.
63447         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63448         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
63449         Remove conditional code.
63450         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63451         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63452         Remove conditional code.
63453         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63454         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63455         Remove conditional code.
63456         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63457         * sysdeps/unix/sysv/linux/sh/pwrite64.c
63458         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63459         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63460         * sysdeps/unix/sysv/linux/sigaction.c
63461         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63462         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63463         * sysdeps/unix/sysv/linux/sigpending.c
63464         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63465         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63466         * sysdeps/unix/sysv/linux/sigprocmask.c
63467         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63468         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63469         * sysdeps/unix/sysv/linux/sigsuspend.c
63470         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63471         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63472         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
63473         (__libc_missing_rt_sigs): Remove.
63474         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
63475         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
63476         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
63477         Remove conditional code.
63478         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
63479         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
63480         return 1.
63481         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
63482         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
63483         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
63484         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
63485
63486 2012-05-14  Andreas Jaeger  <aj@suse.de>
63487
63488         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
63489         it's not used in glibc.
63490         (__coshm1): Likewise.
63491         (__acosh1p): Likewise.
63492         (__sgn): Likewise.
63493
63494         * manual/string.texi (Copying and Concatenation): Add missing
63495         variable in concat example.
63496         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
63497
63498 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63499
63500         [BZ #14103]
63501         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
63502         __builtin_clzl with __builtin_clzll.
63503
63504 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63505
63506         [BZ #14104]
63507         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
63508         libc_freeres_ptr.
63509
63510 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63511
63512         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
63513         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
63514         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
63515         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
63516
63517 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
63518
63519         * NEWS: Update ia64 info.
63520
63521 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
63522
63523         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
63524         used as bcopy.
63525
63526 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
63527
63528         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
63529         * sysdeps/unix/syscalls.list (dup3): Likewise.
63530         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
63531         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
63532
63533 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63534
63535         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
63536         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
63537
63538 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63539
63540         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
63541         thread pointer.
63542         (TLS_IE): Use mov/add instead of movq/addq to load thread
63543         pointer.
63544         (TLS_GD_PREFIX): New.
63545         (TLS_GD): Use it.
63546
63547 2012-05-11  David S. Miller  <davem@davemloft.net>
63548
63549         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
63550         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
63551         (_FPU_SETCW): Likewise.
63552
63553 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63554
63555         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
63556         is 32-byte aligned.
63557
63558 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
63559
63560         [BZ #11837]
63561         * iconvdata/gb18030.c: Update tables.
63562         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
63563         characters specially.
63564         (BODY for TO_LOOP): Add encoding of missing ranges.
63565
63566 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
63567
63568         [BZ #13673]
63569         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
63570         * sysdeps/mach/hurd/dup3.c: Likewise.
63571         * sysdeps/mach/hurd/readlinkat.c: Likewise.
63572         * sysdeps/powerpc/memmove.c:: Likewise.
63573
63574 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63575
63576         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
63577         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
63578
63579 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63580
63581         * elf/elf.h (R_X86_64_RELATIVE64): New.
63582         (R_X86_64_NUM): Updated.
63583         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
63584         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
63585         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
63586         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
63587         tst-quad1pie tst-quad2pie
63588         (modules-names): Add tst-quadmod1 tst-quadmod2.
63589         ($(objpfx)tst-quad1): New dependency.
63590         ($(objpfx)tst-quad2): Likewise.
63591         ($(objpfx)tst-quad1pie): Likewise.
63592         ($(objpfx)tst-quad2pie): Likewise.
63593         * sysdeps/x86_64/tst-quad1.c: New file.
63594         * sysdeps/x86_64/tst-quad1pie.c: New file.
63595         * sysdeps/x86_64/tst-quad2.c: Likewise.
63596         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
63597         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
63598         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
63599         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
63600         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
63601
63602 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63603
63604         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
63605         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
63606         * streams/stropts.h (t_scalar_t): Define type.
63607
63608         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
63609         (_PATH_PRESERVE): Set to "/var/lib".
63610         (_PATH_RWHODIR): Set to "/var/spool/rwho".
63611
63612         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
63613         instead of int.
63614
63615         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
63616         if __dir_mkfile succeeded.
63617
63618         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
63619         checking for _hurd_dtablesize.  Unlock it right after having
63620         finished _hurd_dtable allocation.
63621
63622 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63623
63624         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63625         * sysdeps/mach/hurd/configure: Regenerated.
63626         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63627         special-casing to...
63628         * sysdeps/gnu/configure.in: ... this new file.
63629         * sysdeps/unix/sysv/linux/configure: Regenerated.
63630         * sysdeps/gnu/configure: New generated file.
63631
63632         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63633         for Linux: use nsec instead of usec, as well as:
63634         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63635         members of type struct timespec.
63636         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63637         New macros.
63638         (struct stat64): Likewise.
63639         (_STATBUF_ST_NSEC): New macro.
63640         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63641
63642         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63643         __strtoul_internal rather than strtoul.
63644
63645 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63646
63647         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63648         and reject them.
63649
63650 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63651
63652         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63653         which preserves existing values.
63654         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63655
63656 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63657
63658         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63659         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63660         greater than FD_SETSIZE.
63661
63662 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63663
63664         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63665         allocated, call __vm_protect to finish enabling the existing space, and
63666         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63667         allocate the remainder.
63668
63669 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63670
63671         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63672         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63673
63674 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63675
63676         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63677         sysdeps/mach/hurd/readlink.c.
63678
63679         * posix/tst-sysconf.c (posix_options): Only use
63680         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63681         _POSIX_SYNCHRONIZED_IO when they are defined
63682         * sysdeps/mach/hurd/bits/posix_opt.h:
63683         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63684         (_XOPEN_REALTIME): Undefine macro.
63685         (_XOPEN_REALTIME_THREADS): Undefine macro.
63686         (_XOPEN_SHM): Undefine macro.
63687         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63688         macro to -1.
63689         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63690         macro to -1.
63691         (_POSIX_ASYNC_IO): Undefine macro.
63692         (_POSIX_PRIORITIZED_IO): Undefine macro.
63693         (_POSIX_SPIN_LOCKS): Define macro to -1.
63694
63695         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63696         SA_NODEFER, SA_RESETHAND.
63697         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63698         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63699         F_DUPFD_CLOEXEC.
63700
63701 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63702
63703         * elf/Makefile (pldd-modules): Define unconditionally.
63704
63705 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63706
63707         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63708
63709 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63710
63711         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63712         Return ENOENT when name is empty.
63713         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63714
63715 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63716
63717         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63718
63719         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63720
63721 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63722
63723         Fix mlock in all cases except non-readable pages.
63724         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63725         instead of VM_PROT_ALL as parameter to __vm_wire function.
63726
63727         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63728         (__mkdir): When path is `/', just fail with EEXIST.
63729         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63730
63731 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63732
63733         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63734         <sys/uio.h> (for writev).
63735         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63736         and <sys/param.h> (for MIN).
63737
63738 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63739
63740         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63741         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63742         if interrupted.
63743
63744 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63745
63746         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63747         Depend on against $(link-rpcuserlibs).
63748
63749 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63750
63751         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63752         (__libc_stack_end): Do not use attribute_relro.
63753         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63754         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63755         to libthread-provided value.
63756         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63757         attribute_relro.
63758
63759 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63760
63761         [BZ #3748]
63762         * bits/libc-lock.h (__libc_once_get): New macro.
63763         * sysdeps/mach/bits/libc-lock.h: Likewise.
63764         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63765         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63766         instead of using implementation details.
63767
63768         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63769         * libio/freopen.c: Likewise.
63770         * libio/freopen64.c: Likewise.
63771         * misc/syslog.c: Likewise.
63772         * nscd/connections.c: Likewise.
63773         * nscd/netgroupcache.c: Likewise.
63774         * sysdeps/posix/getcwd.c: Likewise.
63775
63776 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63777
63778         * math/w_ilogbf.c: Add #include <limits.h>.
63779
63780 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63781
63782         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63783         path instead of returning without unlocking.
63784
63785         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63786         immediate-write ioctls.
63787         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63788
63789 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63790
63791         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63792         __builtin_frame_address instead of making assumptions about the
63793         location of the return address relative to DATA.  Force early load of
63794         the return address.
63795         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63796         __builtin_frame_address.
63797
63798         dup3 for GNU Hurd.
63799         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63800         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63801         implement dup3 and do some further code clean-ups.
63802         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63803         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63804
63805 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63806
63807         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63808
63809         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63810         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63811         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63812         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63813         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63814         d->port.lock.
63815
63816         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63817         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63818         when handler == SIG_ERR, not when handler != SIG_ERR.
63819
63820 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63821
63822         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63823         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63824         definitions.
63825
63826         accept4 for GNU Hurd.
63827         * include/sys/socket.h (__libc_accept4): New prototype.
63828         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63829         to implement __libc_accept4.
63830         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63831         __libc_accept4.
63832         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63833
63834         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63835         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63836         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63837         signal-defines.sym.
63838
63839 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63840
63841         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63842
63843 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63844
63845         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63846         assertion on O_CLOEXEC flag.
63847         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63848         * hurd/intern-fd.c: Likewise.
63849         * hurd/port2fd.c: Likewise.
63850
63851 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63852
63853         [BZ #3906]
63854         * bits/in.h (IPV6_PKTINFO): Define new macro.
63855         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63856
63857 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63858
63859         [BZ #13954]
63860         [BZ #13955]
63861         [BZ #13956]
63862         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63863         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63864         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63865         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63866         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63867         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63868         * math/libm-test.inc (logb_test) : Additional logb tests.
63869
63870 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63871             Andreas Jaeger  <aj@suse.de>
63872
63873         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63874         * configure: Regenerated.
63875         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63876         * config.make.in (link-obsolete-rpc): New substituted variable.
63877         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63878         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63879         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63880         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63881         so that libc.a contains the symbols.
63882         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63883         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63884         * sunrpc/auth_none.c: Likewise.
63885         * sunrpc/auth_unix.c: Likewise.
63886         * sunrpc/authdes_prot.c: Likewise.
63887         * sunrpc/authuxprot.c: Likewise.
63888         * sunrpc/clnt_gen.c: Likewise.
63889         * sunrpc/clnt_perr.c: Likewise.
63890         * sunrpc/clnt_raw.c: Likewise.
63891         * sunrpc/clnt_simp.c: Likewise.
63892         * sunrpc/clnt_tcp.c: Likewise.
63893         * sunrpc/clnt_udp.c: Likewise.
63894         * sunrpc/clnt_unix.c: Likewise.
63895         * sunrpc/des_crypt.c: Likewise.
63896         * sunrpc/des_soft.c: Likewise.
63897         * sunrpc/get_myaddr.c: Likewise.
63898         * sunrpc/key_call.c: Likewise.
63899         * sunrpc/key_prot.c: Likewise.
63900         * sunrpc/netname.c: Likewise.
63901         * sunrpc/pm_getmaps.c: Likewise.
63902         * sunrpc/pm_getport.c: Likewise.
63903         * sunrpc/pmap_clnt.c: Likewise.
63904         * sunrpc/pmap_prot.c: Likewise.
63905         * sunrpc/pmap_prot2.c: Likewise.
63906         * sunrpc/pmap_rmt.c: Likewise.
63907         * sunrpc/publickey.c: Likewise.
63908         * sunrpc/rpc_cmsg.c: Likewise.
63909         * sunrpc/rpc_common.c: Likewise.
63910         * sunrpc/rpc_dtable.c: Likewise.
63911         * sunrpc/rpc_prot.c: Likewise.
63912         * sunrpc/rpc_thread.c: Likewise.
63913         * sunrpc/rtime.c: Likewise.
63914         * sunrpc/svc.c: Likewise.
63915         * sunrpc/svc_auth.c: Likewise.
63916         * sunrpc/svc_raw.c: Likewise.
63917         * sunrpc/svc_run.c: Likewise.
63918         * sunrpc/svc_tcp.c: Likewise.
63919         * sunrpc/svc_udp.c: Likewise.
63920         * sunrpc/svc_unix.c: Likewise.
63921         * sunrpc/svcauth_des.c: Likewise.
63922         * sunrpc/xcrypt.c: Likewise.
63923         * sunrpc/xdr.c: Likewise.
63924         * sunrpc/xdr_array.c: Likewise.
63925         * sunrpc/xdr_float.c: Likewise.
63926         * sunrpc/xdr_intXX_t.c: Likewise.
63927         * sunrpc/xdr_mem.c: Likewise.
63928         * sunrpc/xdr_rec.c: Likewise.
63929         * sunrpc/xdr_ref.c: Likewise.
63930         * sunrpc/xdr_sizeof.c: Likewise.
63931         * sunrpc/xdr_stdio.c: Likewise.
63932
63933 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63934
63935         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63936         change.  Update copyright years.
63937
63938 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63939
63940         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63941
63942 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63943             Joseph Myers  <joseph@codesourcery.com>
63944             Paul Pluzhnikov  <ppluzhnikov@google.com>
63945
63946         [BZ #14012]
63947         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63948         requiring rpcgen.
63949         [cross-compiling] (extra-libs): Likewise.
63950         [cross-compiling] (extra-libs-others): Likewise.
63951         [cross-compiling] (librpcsvc-routines): Likewise.
63952         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63953         [cross-compiling] (omit-deps): Likewise.
63954         (sunrpc-CPPFLAGS): New variable.
63955         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63956         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63957         (cross-rpcgen-objs): New variable.
63958         (extra-objs): Append $(cross-rpcgen-objs).
63959         ($(cross-rpcgen-objs)): New rule.
63960         ($(objpfx)cross-rpcgen): Likewise.
63961         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63962         comment.
63963         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63964         ($(objpfx)x%.stmp): Likewise.
63965         * sunrpc/proto.h [IS_IN_build] (_): Define.
63966         [IS_IN_build] (_libc_intl_domainname): Likewise.
63967
63968 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63969
63970         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63971         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63972         and R_X86_64_TPOFF64.
63973
63974 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63975
63976         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63977         sysdeps/unix/sysv/syscalls.list.
63978         (stime): Likewise.
63979         (utime): Likewise.
63980         * sysdeps/unix/sysv/syscalls.list: Remove file.
63981
63982 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63983
63984         [BZ #3440]
63985         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63986         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63987         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63988         (__LC_IDENTIFICATION): Make these macros useful in #if
63989         expressions, as required by C99.
63990
63991 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63992
63993         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63994         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63995         after this.
63996
63997 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63998
63999         * stdlib/longlong.h: Updated from GCC.
64000
64001 2012-05-09  Andreas Jaeger  <aj@suse.de>
64002
64003         * nscd/nscd.c (run_modes): Make named enum, reorder so that
64004         default is first entry.
64005         (run_mode): Set type.
64006         (main): Remove informal message about syslog.
64007         (options): Fix typo.
64008
64009         [BZ #14053]
64010         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
64011         to asm.
64012         (lrint): Likewise.
64013         (llrintf): Likewise.
64014         (llrint): Likewise.
64015         (rint): Likewise.
64016         (rintf): Likewise.
64017         (nearbyint): Likewise.
64018         (nearbyintf): Likewise.
64019
64020 2012-05-09  Andreas Jaeger  <aj@suse.de>
64021             Pedro Alves  <palves@redhat.com>
64022
64023         * nscd/nscd.c (run_mode): Use enum.
64024         (main): Cleanup coding style issue.
64025
64026 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
64027             Andreas Jaeger  <aj@suse.de>
64028
64029         * nscd/nscd.c (go_background): Replaced with...
64030         (run_mode): ... this.
64031         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
64032         (options): Add -F --foreground.
64033         (main): Implement it.
64034         (parse_opt): Parse it.
64035
64036 2012-05-09  Andreas Jaeger  <aj@suse.de>
64037
64038         [BZ #14083]
64039         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
64040         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
64041         -Wconversion warning.
64042         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
64043         Likewise.
64044
64045 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
64046
64047         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
64048         == 0.
64049         (LC_ALL): Use macro-int-constant.
64050         (LC_COLLATE): Likewise.
64051         (LC_CTYPE): Likewise.
64052         (LC_MESSAGES): Likewise.
64053         (LC_MONETARY): Likewise.
64054         (LC_NUMERIC): Likewise.
64055         (LC_TIME): Likewise.
64056         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
64057         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
64058         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64059         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
64060         Specify type.
64061         [C99-based standards] (float_t): Expect type.
64062         [C99-based standards] (double_t): Expect type.
64063         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
64064         type.
64065         [C99-based standards] (HUGE_VALL): Likewise.
64066         [C99-based standards] (INFINITY): Likewise.
64067         [C99-based standards] (NAN): Likewise.
64068         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
64069         [C99-based standards] (FP_NAN): Likewise.
64070         [C99-based standards] (FP_NORMAL): Likewise.
64071         [C99-based standards] (FP_SUBNORMAL): Likewise.
64072         [C99-based standards] (FP_ZERO): Likewise.
64073         [C99-based standards] (FP_FAST_FMA): Use
64074         optional-macro-int-constant.  Specify type.  Require == 1.
64075         [C99-based standards] (FP_FAST_FMAF): Likewise.
64076         [C99-based standards] (FP_FAST_FMAL): Likewise.
64077         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
64078         [C99-based standards] (FP_ILOGBNAN): Likewise.
64079         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
64080         Specify type.
64081         [C99-based standards] (MATH_ERREXCEPT): Likewise.
64082         [C99-based standards] (math_errhandling): Specify type.
64083         [ISO99 || ISO11] (signgam): Do not allow.
64084         [non-C99-based standards] (copysignf): Do not allow.
64085         [non-C99-based standards] (exp2f): Likewise.
64086         [non-C99-based standards] (log2f): Likewise.
64087         [non-C99-based standards] (modff): Allow.
64088         [non-C99-based standards] (erff): Do not allow.
64089         [non-C99-based standards] (erfcf): Likewise.
64090         [non-C99-based standards] (gammaf): Likewise.
64091         [non-C99-based standards] (hypotf): Likewise.
64092         [non-C99-based standards] (j0f): Likewise.
64093         [non-C99-based standards] (j1f): Likewise.
64094         [non-C99-based standards] (jnf): Likewise.
64095         [non-C99-based standards] (lgammaf): Likewise.
64096         [non-C99-based standards] (tgammaf): Likewise.
64097         [non-C99-based standards] (y0f): Likewise.
64098         [non-C99-based standards] (y1f): Likewise.
64099         [non-C99-based standards] (ynf): Likewise.
64100         [non-C99-based standards] (isnanf): Likewise.
64101         [non-C99-based standards] (acoshf): Likewise.
64102         [non-C99-based standards] (asinhf): Likewise.
64103         [non-C99-based standards] (atanhf): Likewise.
64104         [non-C99-based standards] (cbrtf): Likewise.
64105         [non-C99-based standards] (expm1f): Likewise.
64106         [non-C99-based standards] (ilogbf): Likewise.
64107         [non-C99-based standards] (log1pf): Likewise.
64108         [non-C99-based standards] (logbf): Likewise.
64109         [non-C99-based standards] (nextafterf): Likewise.
64110         [non-C99-based standards] (remainderf): Likewise.
64111         [non-C99-based standards] (rintf): Likewise.
64112         [non-C99-based standards] (scalbf): Likewise.
64113         [non-C99-based standards] (copysignl): Likewise.
64114         [non-C99-based standards] (exp2l): Likewise.
64115         [non-C99-based standards] (log2l): Likewise.
64116         [non-C99-based standards] (modfl): Allow.
64117         [non-C99-based standards] (erfl): Do not allow.
64118         [non-C99-based standards] (erfcl): Likewise.
64119         [non-C99-based standards] (gammal): Likewise.
64120         [non-C99-based standards] (hypotl): Likewise.
64121         [non-C99-based standards] (j0l): Likewise.
64122         [non-C99-based standards] (j1l): Likewise.
64123         [non-C99-based standards] (jnl): Likewise.
64124         [non-C99-based standards] (lgammal): Likewise.
64125         [non-C99-based standards] (tgammal): Likewise.
64126         [non-C99-based standards] (y0l): Likewise.
64127         [non-C99-based standards] (y1l): Likewise.
64128         [non-C99-based standards] (ynl): Likewise.
64129         [non-C99-based standards] (isnanl): Likewise.
64130         [non-C99-based standards] (acoshl): Likewise.
64131         [non-C99-based standards] (asinhl): Likewise.
64132         [non-C99-based standards] (atanhl): Likewise.
64133         [non-C99-based standards] (cbrtl): Likewise.
64134         [non-C99-based standards] (expm1l): Likewise.
64135         [non-C99-based standards] (ilogbl): Likewise.
64136         [non-C99-based standards] (log1pl): Likewise.
64137         [non-C99-based standards] (logbl): Likewise.
64138         [non-C99-based standards] (nextafterl): Likewise.
64139         [non-C99-based standards] (remainderl): Likewise.
64140         [non-C99-based standards] (rintl): Likewise.
64141         [non-C99-based standards] (scalbl): Likewise.
64142         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64143         [non-C99-based standards] (FP_*): Do not allow.
64144         [C99-based standards] (FP_*): Change to
64145         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
64146         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64147         allow.
64148         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
64149         (SIG_ERR): Likewise.
64150         [X/Open-based standards] (SIG_HOLD): Likewise.
64151         (SIG_IGN): Likewise.
64152         (SIGABRT): Use macro-int-constant.  Specify type.  Require
64153         positive value.
64154         (SIGFPE): Likewise.
64155         (SIGILL): Likewise.
64156         (SIGINT): Likewise.
64157         (SIGSEGV): Likewise.
64158         (SIGTER): Likewise.
64159         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
64160         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
64161         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
64162         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
64163         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
64164         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
64165         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
64166         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
64167         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
64168         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
64169         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
64170         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
64171         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
64172         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
64173         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
64174         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
64175         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
64176         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
64177         [X/Open-based standards] (SIGTRAP): Likewise.
64178         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
64179         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
64180         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
64181         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
64182         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64183         allow.
64184
64185 2012-05-08  Ian Wienand  <ianw@vmware.com>
64186
64187         [BZ #14080]
64188         * time/tzset.c (__tzset_parse_tz): Update default rules for
64189         daylight time changes in the Energy Policy Act of 2005.
64190
64191 2012-05-09  Andreas Jaeger  <aj@suse.de>
64192
64193         [BZ #13983]
64194         * elf/ldconfig.c (parse_conf): Change string to make clear that
64195         ldconfig only issued a warning if ld.so.conf does not exist.
64196
64197 2012-05-08  David S. Miller  <davem@davemloft.net>
64198
64199         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
64200         movxtod instead of popping the value on the stack.
64201
64202         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64203
64204 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
64205
64206         * config.h.in: Add HAVE_ARM_PCS_VFP.
64207
64208 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
64209
64210         [BZ #13979]
64211         * include/features.h: Warn if user requests __FORTIFY_SOURCE
64212         checking but the checks are disabled for any reason.
64213
64214 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
64215
64216         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
64217         and ELF64_R_TYPE with ELFW(R_TYPE).
64218
64219 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
64220
64221         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
64222         (ulimit): Likewise.
64223
64224         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
64225         (settimeofday): Likewise.
64226
64227 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
64228
64229         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
64230         a struct th_u2 inside the union, and move tu_block/tu_code into
64231         a new th_u3 union of tu_block/tu_code inside of that.  Move
64232         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
64233         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
64234         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
64235         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
64236         (th_stuff): Change to th_u1.tu_stuff.
64237         (th_data): Define.
64238         (th_msg): Change to th_u1.th_u2.tu_data.
64239
64240 2012-05-07  David S. Miller  <davem@davemloft.net>
64241
64242         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64243
64244         [BZ #14074]
64245         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
64246         (SETUP_PIC_REG): Use it.
64247         (SETUP_PIC_REG_LEAF): Use it.
64248
64249 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
64250
64251         [BZ #13885]
64252         [BZ #13923]
64253         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64254         USE_AS_EXPM1L.
64255         (EXPL_FINITE): Likewise.
64256         (FLDLOG): Likewise.
64257         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64258         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64259         e_expl.S.
64260         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64261         USE_AS_EXPM1L.
64262         (EXPL_FINITE): Likewise.
64263         (FLDLOG): Likewise.
64264         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64265         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64266         e_expl.S.
64267         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
64268         test of -max_value argument for long double.
64269         * sysdeps/i386/fpu/libm-test-ulps: Update.
64270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64271
64272 2012-05-06  David S. Miller  <davem@davemloft.net>
64273
64274         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
64275         quad soft-float symbols whose references which are compiler
64276         generated.
64277         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
64278
64279 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
64280
64281         [BZ #13884]
64282         [BZ #13914]
64283         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64284         USE_AS_EXP10L.
64285         (EXPL_FINITE): Likewise.
64286         (FLDLOG): Likewise.
64287         (c0): Likewise.
64288         (c1): Likewise.
64289         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64290         Adjust comments for base varying.
64291         (__expl_finite): Change alias to EXPL_FINITE.
64292         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
64293         e_expl.S.
64294         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
64295         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
64296         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
64297         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
64298         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64299         USE_AS_EXP10L.
64300         (EXPL_FINITE): Likewise.
64301         (FLDLOG): Likewise.
64302         (c0): Likewise.
64303         (c1): Likewise.
64304         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64305         Adjust comments for base varying.
64306         (__expl_finite): Change alias to EXPL_FINITE.
64307         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
64308         tests for bugs.
64309         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64310
64311         [BZ #14064]
64312         * math/libm-test.inc (check_float_internal): Correct ulp
64313         calculation for subnormal expected results.
64314
64315 2012-05-06  Andreas Jaeger  <aj@suse.de>
64316
64317         * Makeconfig (+math-flags): New, set to -frounding-math.
64318         (+cflags): Add +math-flags so that all of glibc gets compiled with
64319         it.
64320
64321         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
64322
64323 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
64324
64325         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
64326         Disable one test.
64327
64328         [BZ #13787]
64329         [BZ #13922]
64330         [BZ #14036]
64331         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
64332         (__ieee754_expl): Allow for and saturate large arguments.
64333         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
64334         (u_threshold): Likewise.
64335         (__exp): Call __ieee754_exp before checking for overflow and
64336         underflow.
64337         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
64338         (u_threshold): Likewise.
64339         (__expf): Call __ieee754_expf before checking for overflow and
64340         underflow.
64341         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
64342         (u_threshold): Likewise.
64343         (__expl): Call __ieee754_expl before checking for overflow and
64344         underflow.
64345         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
64346         (__ieee754_expl): Allow for and saturate large arguments.
64347         * math/libm-test.inc (exp_test): Add another test.  Do not allow
64348         missing overflow exception on overflow.
64349         (expm1_test): Do not allow missing overflow exception on overflow.
64350
64351         * sysdeps/i386/fpu/e_expl.c: Move to ...
64352         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
64353         rather than using inline asm.
64354         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
64355         * sysdeps/x86_64/fpu/e_expl.S: Copy from
64356         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
64357
64358         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
64359         (nice): Likewise.
64360         (poll): Likewise.
64361         (signal): Likewise.
64362         (time): Likewise.
64363         (times): Likewise.
64364
64365 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64366
64367         * sysdeps/unix/syscalls.list (adjtime): Add entry from
64368         sysdeps/unix/common/syscalls.list.
64369         (fchmod): Likewise.
64370         (fchown): Likewise.
64371         (ftruncate): Likewise.
64372         (getrusage): Likewise.
64373         (gettimeofday): Likewise.
64374         (setpgid): Likewise.
64375         (setregid): Likewise.
64376         (setreuid): Likewise.
64377         (sigaction): Likewise.
64378         (truncate): Likewise.
64379         (vhangup): Likewise.
64380         * sysdeps/unix/common/syscalls.list: Remove file.
64381         * sysdeps/unix/bsd/Implies: Don't include unix/common.
64382         * sysdeps/unix/sysv/linux/Implies: Likewise.
64383
64384 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
64385
64386         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
64387         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
64388         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
64389         Moved to ...
64390         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
64391         Here.
64392         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
64393         to ...
64394         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
64395         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
64396         to ...
64397         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
64398         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
64399         to ...
64400         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
64401         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
64402         to ...
64403         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
64404         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
64405         to ...
64406         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
64407         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
64408         to ...
64409         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
64410         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
64411         to ...
64412         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
64413         Here.
64414         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
64415         to ...
64416         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
64417         Here.
64418         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
64419         to ...
64420         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
64421         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
64422         Moved to ...
64423         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
64424         Here.
64425         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
64426         to ...
64427         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
64428
64429 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64430
64431         * sysdeps/unix/common/bits/dirent.h: Remove file.
64432         * sysdeps/unix/common/bits/fcntl.h: Likewise.
64433
64434         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
64435         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
64436         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
64437         * sysdeps/unix/bsd/isatty.c: Likewise.
64438         * sysdeps/unix/bsd/tcdrain.c: Likewise.
64439         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
64440         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
64441
64442 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64443
64444         [BZ #13563]
64445         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
64446         long double comparison inaccuracies.
64447         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
64448         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
64449
64450 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
64451
64452         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
64453         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
64454
64455 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64456
64457         [BZ #14049]
64458         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
64459         nonzero digits before rounding a hex value.
64460         * stdlib/tst-strtod.c (tests): Add another test.
64461
64462 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64463
64464         * sysdeps/s390/fpu/libm-test-ulps: Update.
64465
64466 2012-05-03  Andreas Jaeger  <aj@suse.de>
64467
64468         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
64469         does not get optimized out.
64470         (malloc_opt_barrier): New.
64471
64472 2012-05-03  Andreas Jaeger  <aj@suse.de>
64473             Roland McGrath  <roland@hack.frob.com>
64474
64475         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
64476         intermediate file deletion.
64477         (generated): Add .symlist files.
64478
64479 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
64480
64481         [BZ #13775]
64482         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
64483         Redirect under this condition.
64484         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64485         [__USE_GNU] (__dprintf_chk): Not under this condition.
64486         [__USE_GNU] (__vdprintf_chk): Likewise.
64487         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
64488         under this condition.
64489         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64490         [__USE_XOPEN2K8] (dprintf): Define under this condition.
64491         [__USE_XOPEN2K8] (vdprintf): Likewise.
64492         [__USE_GNU] (__dprintf_chk): Not under this condition.
64493         [__USE_GNU] (__vdprintf_chk): Likewise.
64494         [__USE_GNU] (dprintf): Likewise.
64495         [__USE_GNU] (vdprintf): Likewise.
64496
64497 2012-05-03  Roland McGrath  <roland@hack.frob.com>
64498
64499         * elf/Makefile (common-generated): Set this instead of generated for
64500         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
64501         $(all-built-dso)-derived lists.
64502
64503 2012-05-03  Andreas Jaeger  <aj@suse.de>
64504
64505         * sysdeps/i386/fpu/libm-test-ulps: Update.
64506
64507         * FAQ: Removed.
64508         * FAQ.in: Likewise.
64509         * scripts/gen-FAQ.pl: Likewise.
64510         * manual/install.texi (Installation): Point to online location of
64511         FAQ.
64512         * Makefile (files-for-dist): Remove FAQ.
64513         (FAQ): Remove.
64514
64515 2012-05-02  Allan McRae  <allan@archlinux.org>
64516
64517         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
64518         (LDFLAGS-reldepmod5.so): Likewise.
64519         (LDFLAGS-reldep6mod1.so): Likewise.
64520         (LDFLAGS-reldep6mod4.so): Likewise.
64521         (LDFLAGS-reldep8mod3.so): Likewise.
64522         (LDFLAGS-unload4mod1.so): Likewise.
64523         (LDFLAGS-unload4mod2.so): Likewise.
64524         (LDFLAGS-tst-initorder): Likewise.
64525         (LDFLAGS-tst-initordera2.so): Likewise.
64526         (LDFLAGS-tst-initordera3.so): Likewise.
64527         (LDFLAGS-tst-initordera4.so): Likewise.
64528         (LDFLAGS-tst-initorderb2.so): Likewise.
64529         (LDFLAGS-noload): Likewise.
64530         (LDFLAGS-next): Likewise.
64531         (LDFLAGS-order2mod1.so): Likewise.
64532         (LDFLAGS-order2mod2.so): Likewise.
64533         (LDFLAGS-tst-initorder2): Likewise.
64534         (LDFLAGS-tst-initorder2a.so): Likewise.
64535         (LDFLAGS-tst-initorder2b.so): Likewise.
64536         (LDFLAGS-tst-initorder2c.so): Likewise.
64537         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
64538
64539 2012-05-02  David S. Miller  <davem@davemloft.net>
64540
64541         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64542
64543 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
64544
64545         [BZ #14055]
64546         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
64547
64548 2012-05-02  Andreas Jaeger  <aj@suse.de>
64549
64550         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
64551         since we manipulate rounding mode.
64552         (CPPFLAGS-test-idouble.c): Likewise.
64553         (CPPFLAGS-test-ifloat.c): Likewise.
64554         (CFLAGS-test-ldouble.c): Likewise.
64555         (CFLAGS-test-double.c): Likewise.
64556         (CFLAGS-test-float.c): Likewise.
64557         (CFLAGS-test-misc.c): Likewise.
64558         (CFLAGS-test-test-fenv.c): Likewise.
64559
64560 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64561
64562         [BZ #2550]
64563         [BZ #2570]
64564         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
64565         comparisons to determine direction to adjust input.
64566
64567 2012-05-01  Roland McGrath  <roland@hack.frob.com>
64568
64569         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
64570         output to the target.
64571
64572         * scripts/localplt.awk: New file.
64573         * elf/Makefile ($(objpfx)check-localplt): Target removed.
64574         (check-localplt-CFLAGS): Variable removed.
64575         ($(all-built-dso:=.jmprel)): New static pattern rule.
64576         (generated): Add those targets.
64577         (localplt-built-dso): New variable.
64578         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
64579
64580         * elf/check-localplt.c: File removed.
64581
64582         * scripts/check-execstack.awk: New file.
64583         * elf/Makefile ($(objpfx)check-execstack): Target removed.
64584         (check-execstack-CFLAGS): Variable removed.
64585         ($(objpfx)check-execstack.h): Target removed.
64586         ($(objpfx)execstack-default): New target.
64587         (generated): Add that instead of check-execstack.h.
64588         ($(all-built-dso:=.phdr)): New static pattern rule.
64589         (generated): Add those targets.
64590         * elf/check-execstack.c: File removed.
64591
64592         * scripts/check-textrel.awk: New file.
64593         * elf/Makefile ($(objpfx)check-textrel): Target removed.
64594         (check-textrel-CFLAGS): Variable removed.
64595         (all-built-dso): Use := to define.o
64596         ($(all-built-dso:=.dyn)): New static pattern rule.
64597         (generated): Add those targets.
64598         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
64599         * config.make.in (READELF): New substituted variable.
64600         * elf/check-textrel.c: File removed.
64601
64602 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64603
64604         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64605         allow.
64606         * conform/data/ctype.h-data [C99-based standards] (isblank):
64607         Expect function.
64608         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
64609         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
64610         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64611         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
64612         Specify type.  Require positive value.
64613         (EILSEQ): Likewise.
64614         (ERANGE): Likewise.
64615         [ISO || POSIX] (EILSEQ): Do not expect.
64616         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
64617         Specify type.  Require positive value.
64618         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
64619         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
64620         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
64621         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64622         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64623         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64624         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64625         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64626         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64627         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64628         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64629         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64630         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64631         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64632         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64633         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64634         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64635         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64636         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64637         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64638         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64639         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64640         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64641         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64642         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64643         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64644         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64645         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64646         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64647         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64648         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64649         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64650         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64651         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64652         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64653         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64654         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64655         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64656         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64657         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64658         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64659         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64660         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64661         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64662         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64663         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64664         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64665         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64666         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64667         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64668         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64669         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64670         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64671         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64672         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64673         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64674         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64675         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64676         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64677         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64678         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64679         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64680         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64681         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64682         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64683         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64684         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64685         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64686         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64687         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64688         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64689         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64690         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64691         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64692         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64693         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64694         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64695         Require >= 2.
64696         (FLT_ROUNDS): Expect as macro, not constant.
64697         (FLT_MANT_DIG): Use macro-int-constant.
64698         (DBL_MANT_DIG): Likewise.
64699         (LDBL_MANT_DIG): Likewise.
64700         (FLT_DIG): Likewise.
64701         (DBL_DIG): Likewise.
64702         (LDBL_DIG): Likewise.
64703         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64704         (DBL_MIN_EXP): Likewise.
64705         (LDBL_MIN_EXP): Likewise.
64706         (FLT_MAX_EXP): Use macro-int-constant.
64707         (DBL_MAX_EXP): Likewise.
64708         (LDBL_MAX_EXP): Likewise.
64709         (FLT_MAX_10_EXP): Likewise.
64710         (DBL_MAX_10_EXP): Likewise.
64711         (LDBL_MAX_10_EXP): Likewise.
64712         (FLT_MAX): Use macro-constant.
64713         (DBL_MAX): Likewise.
64714         (LDBL_MAX): Likewise.
64715         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64716         (DBL_EPSILON): Likewise.
64717         (LDBL_EPSILON): Likewise.
64718         (FLT_MIN): Likewise.
64719         (DBL_MIN): Likewise.
64720         (LDBL_MIN): Likewise.
64721         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64722         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64723         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64724         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64725         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64726         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64727         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64728         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64729         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64730         [ISO11] (FLT_TRUE_MIN): Likewise.
64731         [ISO11] (LDBL_TRUE_MIN): Likewise.
64732         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64733         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64734         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64735         (SCHAR_MAX): Likewise.
64736         (UCHAR_MAX): Likewise.
64737         (CHAR_MIN): Likewise.
64738         (CHAR_MAX): Likewise.
64739         (MB_LEN_MAX): Use macro-int-constant.
64740         (SHRT_MIN): Use macro-int-constant.  Specify type.
64741         (SHRT_MAX): Likewise.
64742         (USHRT_MAX): Likewise.
64743         (INT_MAX): Likewise.
64744         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64745         bound negative.
64746         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64747         bound with "U".
64748         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64749         bound with "L".
64750         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64751         bound negative.  Suffix upper bound with "L".
64752         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64753         bound with "UL".
64754         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64755         Specify type.
64756         [C99-based standards] (LLONG_MAX): Likewise.
64757         [C99-based standards] (ULLONG_MAX): Likewise.
64758         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64759         == 0.
64760         [ISO11] (max_align_t): Require type.
64761         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64762
64763         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64764         from $CFLAGS, without defining away __attribute__ calls.
64765         (checknamespace): Use $CFLAGS_namespace.
64766
64767         * conform/conformtest.pl (@keywords): Only include C99 keywords
64768         for standards based on C99 or C11.
64769
64770         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64771         Disable tests.
64772         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64773         UNIX98]: Likewise.
64774
64775         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64776         usability of symbols in #if.
64777
64778         * conform/conformtest.pl: If macro or constant types start
64779         "promoted:", expect the symbol to be of the following type
64780         promoted by the integer promotions.
64781
64782         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64783         in one place.  Also handle "macro-constant".
64784
64785         * conform/conformtest.pl: Only accept expected macro values with
64786         "==".  Parse all "macro" lines in one place.
64787         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64788
64789         * conform/conformtest.pl: Handle braced types on "constant" lines
64790         instead of handling "typed-constant".
64791         * conform/data/signal.h-data: Use "constant" instead of
64792         "typed-constant".
64793
64794         * conform/conformtest.pl: Handle "optional-" at start of lines in
64795         one place rather than duplicating several cases.  Handle each
64796         format of "macro" line with initial "optional-".
64797
64798         * conform/conformtest.pl: Only accept expected constant or
64799         optional-constant values with "==".  Parse all "constant" lines in
64800         one place.  Parse all "optional-constant" lines in one place.
64801         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64802         * conform/data/fmtmsg.h-data: Likewise.
64803         * conform/data/netinet/in.h-data: Likewise.
64804         * conform/data/tar.h-data: Likewise.
64805         * conform/data/limits.h-data: Use "==" form on "constant" and
64806         "optional-constant" lines.
64807
64808         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64809         Use -std=c99 for XOPEN2K.
64810         (@knownproblems): Remove.
64811         (newtoken): Don't check %isknown.
64812
64813         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64814         Do not expect macro.
64815         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64816         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64817         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64818         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64819         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64820         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64821         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64822         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64823         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64824         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64825         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64826         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64827         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64828         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64829         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64830         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64831         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64832         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64833         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64834         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64835         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64836         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64837         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64838         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64839         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64840         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64841         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64842         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64843         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64844         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64845         [XPG3] (acosh): Likewise.
64846         [XPG3] (asinh): Likewise.
64847         [XPG3] (atanh): Likewise.
64848         [XPG3] (cbrt): Likewise.
64849         [XPG3] (expm1): Likewise.
64850         [XPG3] (ilogb): Likewise.
64851         [XPG3] (log1p): Likewise.
64852         [XPG3] (logb): Likewise.
64853         [XPG3] (nextafter): Likewise.
64854         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64855         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64856         [XPG3] (remainder): Likewise.
64857         [XPG3] (rint): Likewise.
64858         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64859         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64860         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64861         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64862         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64863         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64864         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64865         [UNIX98 || XOPEN2K] (scalb): Expect.
64866         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64867         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64868         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64869         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64870         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64871         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64872         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64873         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64874         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64875         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64876         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64877         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64878         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64879         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64880         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64881         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64882         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64883         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64884         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64885         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64886         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64887         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64888         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64889         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64890         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64891         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64892         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64893         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64894         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64895         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64896         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64897         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64898         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64899         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64900         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64901         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64902         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64903         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64904         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64905         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64906         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64907         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64908         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64909         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64910         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64911         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64912         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64913         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64914         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64915         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64916         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64917         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64918         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64919         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64920         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64921         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64922         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64923         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64924         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64925         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64926         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64927         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64928         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64929         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64930         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64931         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64932         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64933         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64934         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64935         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64936         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64937         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64938         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64939         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64940         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64941         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64942         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64943         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64944         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64945         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64946         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64947         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64948         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64949         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64950         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64951         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64952         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64953         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64954         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64955         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64956         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64957         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64958         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64959         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64960         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64961         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64962         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64963         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64964         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64965         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64966         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64967         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64968         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64969         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64970         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64971         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64972         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64973         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64974         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64975         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64976         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64977         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64978         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64979         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64980         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64981         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64982         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64983         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64984         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64985         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64986         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64987         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64988         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64989         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64990         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64991         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64992         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64993         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64994         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64995         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64996         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64997         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64998         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64999         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
65000         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
65001         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
65002         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
65003
65004         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
65005         _XOPEN_SOURCE_EXTENDED for XPG4.
65006
65007         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
65008
65009         * Makeconfig (localtime): Remove variable.
65010         (inst_localtime-file): Likewise.
65011
65012 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
65013
65014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
65015         Update.
65016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65017         Update.
65018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
65019         Update.
65020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
65021         Update.
65022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
65023         Update.
65024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
65025         Update.
65026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
65027         Update.
65028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
65029         Update.
65030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65031         Update.
65032
65033 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
65034
65035         [BZ #2550]
65036         [BZ #2570]
65037         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
65038         comparisons to determine direction to adjust input.
65039         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
65040         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
65041         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
65042         Likewise.
65043         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
65044         Likewise.
65045         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
65046         Likewise.
65047         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
65048         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
65049         Likewise.
65050         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
65051         Likewise.
65052         * math/libm-test.inc (nexttoward_test): Add more tests.
65053
65054 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
65055
65056         [BZ #14040]
65057         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
65058         in version GLIBC_2.1, not GLIBC_2.0.
65059         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
65060         Likewise.
65061
65062 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
65063
65064         [BZ #13942]
65065         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
65066         (1 - x) * (1 + x).
65067         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
65068         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
65069         * math/libm-test.inc (acos_test): Add more tests.
65070         (asin_test): Likewise.
65071         * sysdeps/i386/fpu/libm-test-ulps: Update.
65072         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65073
65074         [BZ #14034]
65075         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
65076         of square root.
65077         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
65078         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
65079         * math/libm-test.inc (acos_test_tonearest): New function.
65080         (acos_test_towardzero): Likewise.
65081         (acos_test_downward): Likewise.
65082         (acos_test_upward): Likewise.
65083         (asin_test_tonearest): Likewise.
65084         (asin_test_towardzero): Likewise.
65085         (asin_test_downward): Likewise.
65086         (asin_test_upward): Likewise.
65087         (main): Call the new functions.
65088         * sysdeps/i386/fpu/libm-test-ulps: Update.
65089         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65090
65091         [BZ #13884]
65092         [BZ #13924]
65093         * math/e_exp10.c: Include <float.h>.
65094         (__ieee754_exp10): Handle underflow here rather than multiplying
65095         large negative argument by M_LN10.
65096         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
65097         of __ieee754_expf.
65098         * math/e_exp10l.c: Include <float.h>.
65099         (__ieee754_exp10l): Handle underflow here rather than multiplying
65100         large negative argument by M_LN10l.
65101         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
65102         spurious overflow exception on underflow.
65103
65104 2012-04-29  Marek Polacek  <polacek@redhat.com>
65105
65106         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
65107         (__fortify_function): New macro.
65108         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
65109         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
65110         __extern_always_inline.
65111         * libio/bits/stdio2.h: Likewise.
65112         * libio/bits/stdio.h: Likewise.
65113         * string/string.h: Likewise.
65114         * string/bits/string3.h: Likewise.
65115         * include/stdio.h: Likewise.
65116         * stdlib/bits/stdlib.h: Likewise.
65117         * stdlib/stdlib.h: Likewise.
65118         * rt/bits/mqueue2.h: Likewise.
65119         * rt/mqueue.h: Likewise.
65120         * posix/bits/unistd.h: Likewise.
65121         * posix/unistd.h: Likewise.
65122         * io/bits/poll2.h: Likewise.
65123         * io/bits/fcntl2.h: Likewise.
65124         * io/fcntl.h: Likewise.
65125         * io/sys/poll.h: Likewise.
65126         * misc/bits/syslog.h: Likewise.
65127         * misc/bits/syslog-ldbl.h: Likewise.
65128         * misc/sys/syslog.h: Likewise.
65129         * socket/bits/socket2.h: Likewise.
65130         * socket/sys/socket.h: Likewise.
65131         * debug/tst-chk1.c: Likewise.
65132         * wcsmbs/bits/wchar2.h: Likewise.
65133         * wcsmbs/bits/wchar-ldbl.h: Likewise.
65134         * wcsmbs/wchar.h: Likewise.
65135
65136 2012-04-29  Andreas Jaeger  <aj@suse.de>
65137
65138         * Makerules (tests): Remove enable-check-abi protection.
65139         (check-abi-warn): Remove.
65140         (check-abi-%): Remove check-abi-warn usage.
65141
65142         * configure.in: Remove check-abi configure option.
65143         * configure: Regenerated.
65144         * config.make.in (enable-check-abi): Remove.
65145
65146 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
65147
65148         [BZ #14033]
65149         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
65150         double functions to double *_finite functions.
65151
65152         [BZ #13941]
65153         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
65154         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
65155         LDBL_MIN_EXP.
65156         * stdio-common/Makefile (tests): Add tst-sprintf3.
65157         * stdio-common/tst-sprintf3.c: New file.
65158
65159         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
65160         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
65161
65162 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65163
65164         * conform/conformtest.pl: Remove duplicate typed-constant
65165         handling.
65166
65167 2012-04-28  David S. Miller  <davem@davemloft.net>
65168
65169         * Makerules (%.abilist): Add vpath on sysdep_dirs.
65170         (check-abi-%): Remove AWK script prerequisite and explicit
65171         abilist directory.
65172         (check-abi): Rewrite to just diff the symlist with the abilist.
65173         (config-tls, config-abi-config): Delete, no longer used.
65174         (update-abi-%): Remove AWK script and explicit abilist directory.
65175         (update-abi): Rewrite to simply compare and conditionally copy the
65176         symlist and the sysdep abilist file.  Remove update-abi-config
65177         checks.
65178         * abilist/ld.abilist: Remove.
65179         * abilist/libBrokenLocale.abilist: Remove.
65180         * abilist/libanl.abilist: Remove.
65181         * abilist/libcrypt.abilist: Remove.
65182         * abilist/libdl.abilist: Remove.
65183         * abilist/librt.abilist: Remove.
65184         * abilist/libthread_db.abilist: Remove.
65185         * abilist/libutil.abilist: Remove.
65186         * scripts/extract-abilist.awk: Remove.
65187         * scripts/merge-abilist.awk: Remove.
65188         * sysdeps/generic/libcidn.abilist: New file.
65189         * sysdeps/generic/libnss_compat.abilist: New file.
65190         * sysdeps/generic/libnss_db.abilist: New file.
65191         * sysdeps/generic/libnss_dns.abilist: New file.
65192         * sysdeps/generic/libnss_files.abilist: New file.
65193         * sysdeps/generic/libnss_hesiod.abilist: New file.
65194         * sysdeps/generic/libnss_nis.abilist: New file.
65195         * sysdeps/generic/libnss_nisplus.abilist: New file.
65196         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
65197         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
65198         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
65199         file.
65200         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
65201         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
65202         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
65203         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
65204         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
65205         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
65206         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
65207         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
65208         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
65209         file.
65210         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
65211         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
65212         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
65213         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
65214         file.
65215         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
65216         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
65217         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
65218         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
65219         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
65220         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
65221         file.
65222         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
65223         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
65224         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
65225         file.
65226         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
65227         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
65228         New file.
65229         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
65230         New file.
65231         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
65232         New file.
65233         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
65234         New file.
65235         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
65236         New file.
65237         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
65238         New file.
65239         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
65240         New file.
65241         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
65242         New file.
65243         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
65244         New file.
65245         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
65246         New file.
65247         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
65248         New file.
65249         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
65250         New file.
65251         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
65252         New file.
65253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
65254         file.
65255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
65256         New file.
65257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
65258         New file.
65259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
65260         file.
65261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
65262         New file.
65263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
65264         New file.
65265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
65266         file.
65267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
65268         New file.
65269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65270         New file.
65271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
65272         New file.
65273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
65274         New file.
65275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
65276         New file.
65277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
65278         New file.
65279         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
65280         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
65281         file.
65282         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
65283         New file.
65284         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
65285         file.
65286         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
65287         file.
65288         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
65289         file.
65290         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
65291         file.
65292         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
65293         file.
65294         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
65295         New file.
65296         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
65297         file.
65298         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
65299         file.
65300         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
65301         New file.
65302         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
65303         file.
65304         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
65305         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
65306         file.
65307         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
65308         New file.
65309         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
65310         file.
65311         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
65312         file.
65313         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
65314         file.
65315         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
65316         file.
65317         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
65318         file.
65319         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
65320         New file.
65321         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
65322         file.
65323         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
65324         file.
65325         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
65326         New file.
65327         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
65328         file.
65329         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
65330         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
65331         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
65332         file.
65333         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
65334         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
65335         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
65336         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
65337         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
65338         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
65339         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
65340         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
65341         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
65342         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
65343         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
65344         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
65345         file.
65346         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
65347         New file.
65348         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
65349         file.
65350         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
65351         file.
65352         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
65353         file.
65354         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
65355         file.
65356         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
65357         file.
65358         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
65359         New file.
65360         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
65361         New file.
65362         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
65363         file.
65364         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
65365         New file.
65366         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
65367         file.
65368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
65369         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
65370         file.
65371         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
65372         New file.
65373         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
65374         file.
65375         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
65376         file.
65377         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
65378         file.
65379         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
65380         file.
65381         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
65382         file.
65383         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
65384         New file.
65385         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
65386         New file.
65387         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
65388         file.
65389         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
65390         New file.
65391         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
65392         file.
65393
65394 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65395
65396         * conform/conformtest.pl: Fix typo in handling typed-constant from
65397         allow-header.
65398
65399 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65400
65401         * README: Cut down references to pre-2.6 Linux kernels and
65402         Linuxthreads.  Update lists of configurations in libc and ports
65403         and sort alphabetically.  Say "or newer" with Linux kernel version
65404         requirements.
65405
65406         * config.h.in [IS_IN_build]: Allow compiling without optimization.
65407
65408 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
65409
65410         [BZ #887]
65411         * math/libm-test.inc (logb_test_downward): New test to expose
65412         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
65413         rounding mode.
65414
65415 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65416
65417         [BZ #14027]
65418         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
65419         to be done.
65420         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
65421         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
65422
65423 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
65424
65425         * sysdeps/unix/i386/brk.S: Remove file.
65426         * sysdeps/unix/i386/dl-brk.S: Likewise.
65427         * sysdeps/unix/i386/pipe.S: Likewise.
65428         * sysdeps/unix/i386/sigreturn.S: Likewise.
65429         * sysdeps/unix/i386/syscall.S: Likewise.
65430         * sysdeps/unix/i386/vfork.S: Likewise.
65431         * sysdeps/unix/i386/wait.S: Likewise.
65432
65433         * sysdeps/unix/common/tcsendbrk.c: Move to ...
65434         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
65435
65436         * configure.in (arm*-none*): Do not allow without
65437         --enable-hacker-mode.
65438         (netbsd*): Remove case setting base_os.
65439         (386bsd*): Likewise.
65440         (freebsd*): Likewise.
65441         (bsdi*): Likewise.
65442         (osf*): Likewise.
65443         (sunos*): Likewise.
65444         (ultrix*): Likewise.
65445         (newsos*): Likewise.
65446         (dynix*): Likewise.
65447         (*bsd*): Likewise.
65448         (sysv*): Likewise.
65449         (isc*): Likewise.
65450         (esix*): Likewise.
65451         (sco*): Likewise.
65452         (minix*): Likewise.
65453         (irix4*): Likewise.
65454         (irix6*): Likewise.
65455         (solaris[2-9]*): Likewise.
65456         (none): Likewise.
65457         * configure: Regenerated.
65458
65459 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65460
65461         [BZ #11521]
65462         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
65463         overflow or cancellation in calculating denominator.
65464         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
65465         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
65466         down expression to avoid unexpected rounding in newer GCCs.
65467         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
65468
65469 2012-04-26  David S. Miller  <davem@davemloft.net>
65470
65471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
65472         long-double compat symbols.
65473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
65474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
65475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
65476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
65477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
65478         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
65479         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
65480         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
65481         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
65482         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
65483         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
65484         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
65485         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
65486
65487 2012-04-25  David S. Miller  <davem@davemloft.net>
65488
65489         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
65490         HWCAP_* values only after the memory barriers have been defined.
65491         (atomic_full_barrier): Define.
65492         (atomic_read_barrier): Define.
65493         (atomic_write_barrier): Define.
65494
65495 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65496
65497         * shlib-versions: Add libgcc_s version information.
65498         * sysdeps/generic/libgcc_s.h: Remove.
65499         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
65500         libgcc_s.h.
65501         * sysdeps/gnu/unwind-resume.c: Likewise.
65502         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
65503
65504 2012-04-25  David S. Miller  <davem@davemloft.net>
65505
65506         * sysdeps/unix/sparc/brk.S: Delete.
65507         * sysdeps/unix/sparc/dl-brk.S: Delete.
65508         * sysdeps/unix/sparc/pipe.S: Delete.
65509         * sysdeps/unix/sparc/sysdep.S: Delete.
65510         * sysdeps/unix/sparc/sysdep.h: Delete.
65511         * sysdeps/unix/sparc/vfork.S: Delete.
65512         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
65513         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
65514         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
65515         (ret_ERRVAL, r0, r1, MOVE): Define.
65516         (JUMPTARGET): Remove.
65517         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
65518         sysdeps/unix/sparc/sysdep.h
65519         (ENTRY, END): Remove.
65520         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
65521
65522 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65523
65524         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
65525         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
65526         -DIS_IN_build.
65527
65528         * timezone/README: Update upstream location and email address for
65529         tzcode and tzdata.
65530         * timezone/zdump.c: Update from tzcode 2012b.
65531         * timezone/zic.c: Likewise.
65532
65533         * configure.in (libc_cv_as_needed): Remove test.
65534         * configure: Regenerated.
65535         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
65536         conditional definition.
65537         [$(have-as-needed) != yes] (no-as-needed): Likewise.
65538         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
65539         * config.make.in (have-as-needed): Remove variable.
65540
65541 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65542             Paul Pluzhnikov  <ppluzhnikov@google.com>
65543
65544         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
65545         strings correctly.
65546
65547 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
65548
65549         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
65550         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
65551         * sysdeps/sh/strlen.S: Likewise.
65552
65553 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65554
65555         * sysdeps/unix/fork.S: Remove file.
65556         * sysdeps/unix/i386/fork.S: Likewise.
65557         * sysdeps/unix/sparc/fork.S: Likewise.
65558
65559         * sysdeps/unix/system.c: Remove file.
65560         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
65561
65562         * sysdeps/unix/getegid.S: Remove file.
65563         * sysdeps/unix/geteuid.S: Likewise.
65564
65565 2012-04-24  Roland McGrath  <roland@hack.frob.com>
65566
65567         * scripts/check-localplt.awk: New file.
65568         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
65569         of diff.
65570         * scripts/data/localplt-generic.data: Add a comment.
65571
65572         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
65573         NODE when __dir_mkfile failed.
65574         * sysdeps/mach/hurd/symlinkat.c: Likewise.
65575         Reported by Ludovic Courtès <ludo@gnu.org>.
65576
65577 2012-04-24  Andreas Jaeger  <aj@suse.de>
65578
65579         * Makerules (common-clean): Also remove gen-as-const-headers
65580         files.
65581
65582 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65583
65584         * Makerules (native-compile): Do not change working directory for
65585         build.  Use $(OUTPUT_OPTION) in command.
65586         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
65587
65588 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65589
65590         [BZ #13886]
65591         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
65592         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
65593         * math/libm-test.inc (floor_test): Add more tests.
65594         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
65595
65596 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65597
65598         * sysdeps/unix/getdents.c: Remove file.
65599         * sysdeps/unix/sysv/getdents.c: Likewise.
65600         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
65601
65602         * sysdeps/unix/syscalls.list (madvise): Add syscall from
65603         sysdeps/unix/mman/syscalls.list.
65604         (mmap): Likewise.
65605         (mprotect): Likewise.
65606         (msync): Likewise.
65607         (munmap): Likewise.
65608         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
65609         * sysdeps/unix/mman/syscalls.list: Remove.
65610         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
65611
65612         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
65613         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
65614         * configure: Regenerated.
65615         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
65616         $(libgcc_s_suffix).
65617         * config.make.in (libgcc_s_suffix): Remove variable.
65618
65619 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
65620
65621         * sysdeps/unix/sysv/gethostname.c: Move to ...
65622         * sysdeps/posix/gethostname.c: ... here.
65623
65624         * sysdeps/unix/execve.S: Remove file.
65625
65626         * sysdeps/unix/_exit.S: Remove file.
65627
65628 2012-04-23  Andreas Jaeger  <aj@suse.de>
65629
65630         [BZ #13739]
65631         * manual/Makefile: Remove make dist support, there's no
65632         need for a stand-alone documentation tar ball.
65633         (TEXI2DVI): Define always, it's not in Makeconfig.
65634         (dist): Removed.
65635         (tar-it): Removed.
65636         (edition): Removed.
65637         (glibc-doc-$(edition).tar): Removed
65638         (%.Z): Removed.
65639         (%.gz): Removed.
65640         (%.uu): Removed.
65641         (ETAGS): Remove, it's in Makeconfig.
65642         (move-if-change): Remove, it's in Makeconfig.
65643
65644 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65645
65646         [BZ #13970]
65647         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65648         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65649         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65650         (strtod_l, strtof_l, strtold_l): Remove __wur.
65651         It is not necessarily an error to ignore strtol's return value.
65652         One can reliably look at the stored endptr to decide whether
65653         the number had valid syntax.
65654
65655 2012-04-21  Andreas Jaeger  <aj@suse.de>
65656
65657         [BZ #13739]
65658         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65659
65660 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65661
65662         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65663         * sysdeps/unix/sysv/Versions: Remove file.
65664
65665 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65666
65667         [BZ #13927]
65668         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65669
65670 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65671
65672         [BZ #7064]
65673         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65674         version from __vm86.
65675
65676 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65677
65678         * sysdeps/unix/common/lxstat.c: Remove file.
65679         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65680
65681         * sysdeps/unix/sysv/Makefile: Remove file.
65682
65683         * sysdeps/unix/sysv/direct.h: Remove file.
65684
65685         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65686         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65687         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65688         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65689         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65690         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65691         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65692
65693         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65694
65695         * sysdeps/unix/xmknod.c: Remove file.
65696         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65697
65698         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65699
65700         * sysdeps/unix/sysv/i386/time.S: Remove file.
65701
65702         * sysdeps/unix/fxstat.c: Remove file.
65703         * sysdeps/unix/xstat.c: Likewise.
65704         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65705
65706         * sysdeps/unix/sysv/sigaction.c: Remove file.
65707
65708         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65709         (sysdep_headers): Remove variable.
65710         [termio.h not in sysdep_headers] (generated): Likewise.
65711         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65712         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65713         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65714         * sysdeps/unix/sysv/tcflow.c: Likewise.
65715         * sysdeps/unix/sysv/tcflush.c: Likewise.
65716         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65717         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65718         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65719         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65720         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65721
65722         * sysdeps/unix/siglist.c: Remove file.
65723
65724         * sysdeps/unix/getppid.S: Remove file.
65725
65726         * sysdeps/unix/mkdir.c: Remove file.
65727         * sysdeps/unix/rmdir.c: Likewise.
65728
65729 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65730
65731         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65732         ERR_MAX value.
65733         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65734         errlist-compat value.
65735
65736 2012-04-18  David S. Miller  <davem@davemloft.net>
65737
65738         * sysdeps/generic/memcopy.h (reg_char): Delete.
65739         * debug/strcat_chk.c: Use char, not reg_char.
65740         * debug/strcpy_chk.c: Likewise.
65741         * debug/strncat_chk.c: Likewise.
65742         * debug/strncpy_chk.c: Likewise.
65743         * string/memchr.c: Likewise.
65744         * string/memrchr.c: Likewise.
65745         * string/rawmemchr.c: Likewise.
65746         * string/strcat.c: Likewise.
65747         * string/strchr.c: Likewise.
65748         * string/strchrnul.c: Likewise.
65749         * string/strcmp.c: Likewise.
65750         * string/strcpy.c: Likewise.
65751         * string/strncat.c: Likewise.
65752         * string/strncmp.c: Likewise.
65753         * string/strncpy.c: Likewise.
65754
65755 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65756
65757         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65758         __builtin_memcopy is called when src and dest ranges are known to not
65759         overlap.
65760
65761 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65762
65763         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65764         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65765         fwd_align_merge macro call.
65766         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65767         bwd_align_merge macro call.
65768         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65769
65770 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65771
65772         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65773         bwd_align_merge macros.
65774         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65775         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65776         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65777
65778 2012-04-18  David S. Miller  <davem@davemloft.net>
65779
65780         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65781
65782 2012-04-18  Andreas Jaeger  <aj@suse.de>
65783
65784         [BZ# 6794]
65785         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65786         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65787         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65788
65789         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65790         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65791         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65792
65793         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65794         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65795         Adjust for changed ldbl-128 files.
65796
65797         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65798         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65799         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65800
65801 2012-04-17  David S. Miller  <davem@davemloft.net>
65802
65803         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65804
65805 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65806
65807         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65808         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65809         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65810         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65811         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65812         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65813
65814 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65815
65816         [BZ #6794]
65817         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65818         * math/libm-test.inc: Add ilogb errno and exception tests.
65819         * math/w_ilogb.c: New file: ilogb wrapper.
65820         * math/w_ilogbf.c: New file: ilogbf wrapper.
65821         * math/w_ilogbl.c: New file: ilogbl wrapper.
65822         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65823         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65824         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65825         exception being thrown with 0.0 as argument.
65826         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65827         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65828         exception being thrown with 0.0 as argument.
65829         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65830         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65831         exception being thrown with 0.0 as argument.
65832         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65833         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65834         exception being thrown with 0.0 as argument.
65835         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65836         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65837         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65838         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65839         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65840         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65841         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65842         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65843         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65844
65845 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65846
65847         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65848         with altivec.
65849
65850 2012-04-16  Marek Polacek  <polacek@redhat.com>
65851
65852         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65853
65854 2012-04-16  Marek Polacek  <polacek@redhat.com>
65855
65856         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65857         operands of fdivp instruction.
65858
65859 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65860
65861         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65862         * elf/tst-auditmod3b.c: Likewise.
65863         * elf/tst-auditmod4b.c: Likewise.
65864         * elf/tst-auditmod5b.c: Likewise.
65865         * elf/tst-auditmod6b.c: Likewise.
65866         * elf/tst-auditmod6c.c: Likewise.
65867         * elf/tst-auditmod7b.c: Likewise.
65868         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65869         * sysdeps/x86_64/preconfigure.in: Likewise.
65870         * sysdeps/x86_64/preconfigure: Regenerated.
65871
65872 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65873
65874         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65875         __ILP32__.
65876
65877 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65878
65879         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65880         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65881
65882 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65883
65884         [BZ #13973]
65885         * locale/iso-639.def: Fix gl language name. Spotted by
65886         Yaron Shahrabani.
65887
65888 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65889
65890         [BZ #2074]
65891         * libio/libio.h (__io_write_fn): Update comment.
65892
65893 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65894
65895         [BZ #2074]
65896         * stdio.texi (Hook Functions): The user provided writer function
65897         is not allowed to return -1.
65898
65899 2012-04-11  David S. Miller  <davem@davemloft.net>
65900
65901         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65902
65903 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65904
65905         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65906         Add a leading slash to rtkaio.
65907
65908 2012-04-11  Jim Meyering  <meyering@redhat.com>
65909
65910         [BZ #11959]
65911         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65912         It is not necessarily an error to ignore fwrite's return
65913         value.  One can reliably use ferror to test for errors after
65914         the fact.
65915
65916 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65917
65918         * bits/types.h (__snseconds_t): New type.
65919         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65920
65921         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65922         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65923         (__SNSECONDS_T_TYPE): Likewise.
65924         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65925         (__SNSECONDS_T_TYPE): Likewise.
65926         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65927         (__SNSECONDS_T_TYPE): Likewise.
65928
65929 2012-04-10  Andreas Jaeger  <aj@suse.de>
65930
65931         [BZ #2636]
65932         * manual/time.texi (Processor Time): Return type of times is
65933         elapsed real time since an arbitrary point in the past.
65934         (CPU Time): Move CLK_TCK from here...
65935         (Processor Time): ...to here.  Correct description.
65936         * manual/conf.texi (Constants for Sysconf): Correct description of
65937         _SC_CLK_TCK.
65938
65939 2012-04-10  David S. Miller  <davem@davemloft.net>
65940
65941         [BZ #13967]
65942         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65943         where the is a gap between DT_REL(A) and DT_JMPREL.
65944
65945 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65946
65947         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65948         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65949         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65950
65951 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65952
65953         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65954         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65955         (dl_main): Handle --inhibit-cache.
65956         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65957         _dl_inhibit_cache.
65958         * elf/dl-load.c (_dl_map_object): Use it.
65959         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65960
65961 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65962
65963         [BZ #13872]
65964         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65965         (__ieee754_powl): Saturate large exponents rather than testing for
65966         overflow of y*log2(x).
65967         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65968         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65969         exceptions.
65970
65971         [BZ #11521]
65972         * math/s_ctan.c: Include <float.h>.
65973         (__ctan): Avoid internal overflow or cancellation in calculating
65974         denominator.
65975         * math/s_ctanf.c: Likewise.
65976         * math/s_ctanl.c: Likewise.
65977         * math/s_ctanh.c: Likewise.
65978         * math/s_ctanhf.c: Likewise.
65979         * math/s_ctanhl.c: Likewise.
65980         * math/libm-test.inc (ctan_test): Add more tests.
65981         (ctanh_test): Likewise.
65982         * sysdeps/i386/fpu/libm-test-ulps: Update.
65983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65984
65985 2012-04-09  Andreas Jaeger  <aj@suse.de>
65986
65987         [BZ #6894]
65988         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65989         is an optional BSD extension.
65990
65991         [BZ #10254]
65992         * manual/stdio.texi (Opening Streams): Document additional fopen
65993         parameters.
65994
65995 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65996
65997         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65998         %eax without telling the compiler.
65999
66000 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
66001
66002         [BZ # 13963]
66003         * manual/install.texi: Use sourceware.org.
66004
66005 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
66006
66007         [BZ #13873]
66008         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
66009         (__ieee754_pow): Generate overflow and underflow using huge*huge
66010         and tiny*tiny rather than just returning constant infinity or zero
66011         for large exponents.
66012         * math/libm-test.inc (pow_test): Require overflow exceptions for
66013         applicable cases of large exponents.
66014
66015         [BZ #706]
66016         * sysdeps/i386/fpu/e_pow.S (p10): New object.
66017         (__ieee754_pow): Use iterative multiplication algorithm only for
66018         integer exponents with absolute value below 1024.  Check for odd
66019         integer exponents when using algorithm for real exponents.
66020         * math/libm-test.inc (pow_test): Add more tests.
66021         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
66022
66023 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
66024
66025         [BZ #13705]
66026         * math/libm-test.inc (exp_test): Do not allow overflow exception
66027         on underflow test.
66028
66029 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
66030
66031         [BZ #13705]
66032         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
66033         instead of __kernel_standard_f.
66034
66035 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
66036
66037         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
66038         * sysdeps/x86_64/memset_chk.S: Likewise.
66039
66040 2012-04-08  Andreas Jaeger  <aj@suse.de>
66041
66042         [BZ #10153]
66043         * manual/startup.texi (Environment Access): Describe return value
66044         for putenv and setenv.
66045
66046         [BZ #6895]
66047         * manual/filesys.texi (Directory Entries): Add description for
66048         DT_LNK.
66049
66050         [BZ #6890]
66051         * manual/filesys.texi (Directory Entries): Clarify that it's file
66052         system not operating system in the description of DT_UNKNOWN.
66053
66054         [BZ #6578]
66055         * manual/syslog.texi (closelog): Fix reference, it's openlog.
66056
66057 2012-04-08  Stephen Compall  <s11@member.fsf.org>
66058
66059         [BZ #6649]
66060         * manual/llio.texi (Opening and Closing Files): Add cross
66061         reference to explain mode argument.
66062
66063 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
66064
66065         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
66066         * sysdeps/x86_64/memset_chk.S: Likewise.
66067
66068 2012-04-07  David S. Miller  <davem@davemloft.net>
66069
66070         * elf/elf.h (R_SPARC_WDISP10): Define.
66071         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
66072         R_SPARC_SIZE32.
66073         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
66074         R_SPARC_SIZE64 and R_SPARC_H34.
66075
66076 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
66077
66078         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
66079         conditions and remove no longer applicable assertion.
66080
66081 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
66082
66083         * bits/byteswap.h: Include <features.h>.
66084         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
66085         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
66086
66087 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
66088
66089         * bits/byteswap.h (__bswap_16): Removed.
66090         Include <bits/byteswap-16.h> to get __bswap_16.
66091         * sysdeps/i386/bits/byteswap.h: Likewise.
66092         * sysdeps/s390/bits/byteswap.h: Likewise.
66093         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66094         * bits/byteswap-16.h: New file.
66095         * sysdeps/i386/bits/byteswap-16.h: Likewise.
66096         * sysdeps/s390/bits/byteswap-16.h: Likewise.
66097         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
66098         * string/Makefile (headers): Add bits/byteswap-16.h.
66099
66100 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
66101
66102         [BZ #13895]
66103         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
66104         extra indirection.
66105         * nss/Makefile (tests-static, tests): Add tst-nss-static.
66106         * nss/tst-nss-static.c: New.
66107
66108 2012-04-06  Robert Millan  <rmh@gnu.org>
66109
66110         [BZ #6486]
66111         * manual/llio.texi (File Position Primitive): lseek
66112         refers to WHENCE when it really means OFFSET.
66113
66114 2012-04-06  Andreas Jaeger  <aj@suse.de>
66115
66116         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
66117         strncmp declarations.
66118
66119         * abilist/libc.abilist: Add __poll and __ppoll.
66120
66121 2012-04-05  David S. Miller  <davem@davemloft.net>
66122
66123         * scripts/check-local-headers.sh: Accept a host triplet in the
66124         path matched by the exclude regexp.
66125
66126         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
66127         definition.
66128         * sysdeps/powerpc/powerpc32/dl-machine.h
66129         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
66130         * sysdeps/s390/s390-32/dl-machine.h
66131         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66132         * sysdeps/sparc/sparc32/dl-machine.h
66133         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66134         * sysdeps/sparc/sparc64/dl-machine.h
66135         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66136
66137         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
66138         lazy binding.
66139         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
66140         undefined symbol errors.
66141
66142         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
66143         DT_NEEDED entries.
66144
66145 2012-04-05  Michael Matz  <matz@suse.de>
66146
66147         [BZ #13592]
66148         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
66149
66150 2012-04-05  Andreas Jaeger  <aj@suse.de>
66151
66152         [BZ #13908]
66153         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
66154         comment.
66155
66156 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66157
66158         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
66159         which ROUND is no valid rounding mode.
66160
66161 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66162
66163         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
66164         read again.
66165         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
66166
66167 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66168
66169         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
66170         an exception using FPU order intentionally.
66171
66172 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66173
66174         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
66175         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
66176         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
66177         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
66178
66179 2012-04-05  Simon Josefsson  <simon@josefsson.org>
66180
66181         [BZ #12340]
66182         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
66183         EINVAL when BUFLEN is too smal.
66184
66185 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
66186
66187         [BZ #13553]
66188         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
66189         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
66190
66191 2012-04-03  Andreas Jaeger  <aj@suse.de>
66192
66193         [BZ #13938]
66194         * manual/setjmp.texi (System V contexts): Fix sentence.
66195
66196         [BZ #13926]
66197         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
66198         New macro for this case.
66199         [!__GNUC__] (__bswap_64): New inline function for this case.
66200         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66201         * bits/byteswap.h: Likewise.
66202         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
66203         ull, guard with __GLIBC_HAVE_LONG_LONG.
66204
66205         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
66206         __GLIBC_HAVE_LONG_LONG.
66207
66208         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
66209         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
66210
66211 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
66212
66213         [BZ #13691]
66214         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
66215         inptr and inend, rather than using last_ch.
66216
66217 2012-04-02  David S. Miller  <davem@davemloft.net>
66218
66219         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
66220         * stdio-common/printf-parse.h (read_int): Change return type to
66221         'int', return -1 on INT_MAX overflow.
66222         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
66223         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
66224         overflows INT_MAX.  Check for overflow of in-format-string precision
66225         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
66226         SIZE_MAX not INT_MAX for integer overflow test.
66227         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
66228         skip the construct in the format string but do not record anything.
66229         * stdio-common/bug22.c: Adjust to test both width/prevision
66230         INT_MAX overflow as well as total length INT_MAX overflow.  Check
66231         explicitly for proper errno values.
66232
66233 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
66234
66235         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
66236         CHAR_MAX.
66237         * string/test-strcmp.c [! WIDE]: Likewise.
66238         * time/tst-mktime2.c: Likewise for INT_MAX.
66239         * string/test-string.h: #include <sys/param.h> for MIN.
66240
66241         * csu/init-first.c (__libc_init_first): Call __ctype_init.
66242         * sysdeps/i386/init-first.c (init): Likewise.
66243         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
66244         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
66245         * sysdeps/sh/init-first.c (init): Likewise.
66246
66247 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
66248
66249         * po/ru.po: Update from translation team.
66250         * po/vi.po: Likewise.
66251
66252 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
66253
66254         * resolv/nss_dns/dns-host.c: Merge copyright years.
66255
66256 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
66257
66258         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
66259         Optimize memcpy with prefetch if
66260         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
66261         src, dst pointers have unequal 16 byte alignments.
66262
66263 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
66264
66265         [BZ #13928]
66266         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
66267         from a CNAME entry and return the minimum ttl for the query.
66268         (gaih_getanswer_slice): Likewise.
66269
66270 2012-03-30  Jeff Law  <law@redhat.com>
66271
66272         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
66273         due to long keys.
66274         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
66275         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
66276
66277         * resolv/nss_dns/dns-host.c: Update copyright year.
66278
66279 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
66280
66281         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
66282         requests to save a system call.  Fix check that all bytes are sent.
66283
66284         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
66285         comments for sendmmsg.
66286
66287 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
66288
66289         [BZ #13691]
66290         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
66291         with only 1 character between 0x0041 and 0x01b0.
66292         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
66293         * wcsmbs/tst-mbsnrtowcs.c: New file.
66294
66295 2012-03-29  David S. Miller  <davem@davemloft.net>
66296
66297         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
66298         small copies by hand.
66299
66300 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
66301
66302         [BZ #13761]
66303         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
66304         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
66305         group memberships.
66306
66307 2012-03-28  David S. Miller  <davem@davemloft.net>
66308
66309         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
66310         that branches into memcpy.
66311         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
66312         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
66313         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
66314         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
66315         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
66316         bits.
66317         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
66318         implementation too.
66319         * sysdeps/sparc/mempcpy.S: New file.
66320
66321         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
66322         the IFUNC routine in the libc case.
66323         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
66324
66325         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
66326         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
66327         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
66328         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
66329         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
66330         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
66331         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
66332         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
66333
66334         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
66335         loop to 256 bytes instead of 64 bytes and fix test signedness.
66336
66337         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
66338         * sysdeps/sparc/sparc32/Makefile: rather than here...
66339         * sysdeps/sparc/sparc64/Makefile: and here.
66340
66341 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
66342
66343         * malloc/mallocbug.c: Avoid warnings about unused variables.
66344
66345 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
66346
66347         [BZ #13760]
66348         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
66349         in the right place. Discard and retry query if response is
66350         larger than input buffer size.
66351
66352 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
66353
66354         [BZ #369]
66355         [BZ #2678]
66356         [BZ #3866]
66357         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
66358         x for large integer exponent.
66359         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
66360         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
66361         sign of result as needed afterwards.
66362         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
66363         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
66364         result for underflowing pow the same as for overflow.
66365         (__kernel_standard_l): Handle powl overflow and underflow here
66366         rather than calling __kernel_standard.
66367         * math/libm-test.inc (pow_test): Add more tests.
66368
66369         [BZ #3868]
66370         [BZ #13879]
66371         [BZ #13910]
66372         [BZ #13911]
66373         [BZ #13912]
66374         [BZ #13913]
66375         [BZ #13915]
66376         [BZ #13916]
66377         [BZ #13917]
66378         [BZ #13918]
66379         [BZ #13919]
66380         [BZ #13920]
66381         [BZ #13921]
66382         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
66383         * sysdeps/ieee754/k_standard.c: Include <float.h>.
66384         (__kernel_standard_l): New function.
66385         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
66386         __kernel_standard.
66387         * math/w_acosl.c (__acosl): Likewise.
66388         * math/w_asinl.c (__asinl): Likewise.
66389         * math/w_atan2l.c (__atan2l): Likewise.
66390         * math/w_atanhl.c (__atanhl): Likewise.
66391         * math/w_coshl.c (__coshl): Likewise.
66392         * math/w_exp10l.c (__exp10l): Likewise.
66393         * math/w_exp2l.c (__exp2l): Likewise.
66394         * math/w_fmodl.c (__fmodl): Likewise.
66395         * math/w_hypotl.c (__hypotl): Likewise.
66396         * math/w_j0l.c (__j0l, __y0l): Likewise.
66397         * math/w_j1l.c (__j1l, __y1l): Likewise.
66398         * math/w_jnl.c (__jnl, __ynl): Likewise.
66399         * math/w_lgammal.c (__lgammal): Likewise.
66400         * math/w_log10l.c (__log10l): Likewise.
66401         * math/w_log2l.c (__log2l): Likewise.
66402         * math/w_logl.c (__logl): Likewise.
66403         * math/w_powl.c (__powl): Likewise.
66404         * math/w_remainderl.c (__remainderl): Likewise.
66405         * math/w_scalbl.c (sysv_scalbl): Likewise.
66406         * math/w_sinhl.c (__sinhl): Likewise.
66407         * math/w_sqrtl.c (__sqrtl): Likewise.
66408         * math/w_tgammal.c (__tgammal): Likewise.
66409         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
66410         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
66411         * math/libm-test.inc (acos_test): Add more tests.
66412         (acosh_test): Likewise.
66413         (asin_test): Likewise.
66414         (atanh_test): Likewise.
66415         (exp_test): Likewise.
66416         (exp10_test): Likewise.
66417         (exp2_test): Likewise.
66418         (expm1_test): Likewise.
66419         (lgamma_test): Likewise.
66420         (log_test): Likewise.
66421         (log10_test): Likewise.
66422         (log1p_test): Likewise.
66423         (log2_test): Likewise.
66424         (pow_test): Do not allow some spurious overflow exceptions.
66425         (sqrt_test): Add more tests.
66426         (tgamma_test): Likewise.
66427         (y0_test): Likewise.
66428         (y1_test): Likewise.
66429         (yn_test): Likewise.
66430
66431 2012-03-27  Anton Blanchard  <anton@samba.org>
66432
66433         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
66434         MAP_HUGETLB.
66435         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
66436         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
66437         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
66438
66439 2012-03-27  David S. Miller  <davem@davemloft.net>
66440
66441         * conform/Makefile: Run run-conformtest.sh using $(BASH).
66442
66443         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
66444         have-as-vis3 check.
66445
66446 2012-03-27  Andreas Jaeger  <aj@suse.de>
66447
66448         * sysdeps/x86_64/elf/configure.in: Moved to ...
66449         * sysdeps/x86_64/configure.in: ... here.
66450         * sysdeps/x86_64/elf/start.S: Moved to ...
66451         * sysdeps/x86_64/start.S: ... here.
66452         * sysdeps/x86_64/elf/configure: Delete.
66453
66454         * sysdeps/x86_64/configure.in: Merge contents from
66455         sysdeps/i386/configure.in (without i686 check).
66456
66457         * sysdeps/i386/elf/Versions: Merge into ...
66458         * sysdeps/i386/Versions: ... this.
66459         * sysdeps/i386/elf/Versions: Delete file.
66460         * sysdeps/i386/elf/start.S: Moved to ...
66461         * sysdeps/i386/start.S: ...here.
66462         * sysdeps/i386/elf/configure.in: Merge into...
66463         * sysdeps/i386/configure.in: ...here.
66464         * sysdeps/i386/elf/configure.in: Delete file.
66465         * sysdeps/i386/elf/configure: Delete file.
66466
66467         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
66468         * debug/backtracesyms.c: ... here.
66469         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
66470         * debug/backtracesymsfd.c: ... here.
66471         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
66472         * sysdeps/generic/ifunc-sel.h: ... here.
66473
66474         * sysdeps/unix/i386/start.c: Delete file.
66475         * sysdeps/unix/sparc/start.c: Delete file.
66476         * sysdeps/unix/start.c: Delete file.
66477
66478         * sysdeps/sh/elf/configure.in: Moved to ...
66479         * sysdeps/sh/configure.in: ... here.
66480         * sysdeps/sh/elf/start.S: Moved to ...
66481         * sysdeps/sh/start.S: ... here.
66482         * sysdeps/sh/elf/configure: Delete file.
66483
66484         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
66485         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
66486         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
66487         * sysdeps/powerpc/powerpc64/entry.h: ... here.
66488         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
66489         * sysdeps/powerpc/powerpc64/start.S: here.
66490         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
66491         * sysdeps/powerpc/powerpc64/Makefile: ... this.
66492         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
66493         * sysdeps/powerpc/powerpc64/configure.in: ... this.
66494         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
66495
66496         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
66497         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
66498         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
66499         * sysdeps/powerpc/powerpc32/start.S: ... here.
66500         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
66501         * sysdeps/powerpc/powerpc32/configure.in: ... this.
66502         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
66503
66504         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
66505         * sysdeps/powerpc/ifunc-sel.h: ... here.
66506         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
66507         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
66508
66509         * sysdeps/sparc/elf/configure.in: Moved to ...
66510         * sysdeps/sparc/configure.in: ... here.
66511         * sysdeps/sparc/elf/configure: Delete file.
66512         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
66513         * sysdeps/sparc/sparc32/start.S: ... here.
66514         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
66515         * sysdeps/sparc/sparc64/start.S: ... here.
66516         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
66517         * sysdeps/sparc/sparc32/Makefile: ... this.
66518         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
66519         * sysdeps/sparc/sparc64/Makefile: ... this.
66520
66521         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
66522         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
66523         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
66524         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
66525         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
66526         * sysdeps/s390/s390-32/setjmp.S: ... here.
66527         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
66528         * sysdeps/s390/s390-32/configure.in: ... here.
66529         * sysdeps/s390/s390-32/elf/configure: Delete file.
66530         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
66531         * sysdeps/s390/s390-32/start.S: ... here.
66532
66533         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
66534         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
66535         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
66536         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
66537         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
66538         * sysdeps/s390/s390-64/setjmp.S: ... here.
66539         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
66540         * sysdeps/s390/s390-64/configure.in: ... here
66541         * sysdeps/s390/s390-64/elf/configure: Delete file.
66542         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
66543         * sysdeps/s390/s390-64/start.S: ... here.
66544         * sysdeps/s390/s390-64/elf/configure: Delete.
66545
66546         * configure.in: Remove support for elf directories in sysdeps.
66547
66548         * configure: Regenerated.
66549         * sysdeps/i386/configure: Regenerated.
66550         * sysdeps/powerpc/powerpc32/configure: Regenerated.
66551         * sysdeps/powerpc/powerpc64/configure: Regenerated.
66552         * sysdeps/s390/s390-32/configure: Regenerated.
66553         * sysdeps/s390/s390-64/configure: Regenerated.
66554         * sysdeps/sh/configure: Regenerated.
66555         * sysdeps/sparc/configure: Regenerated.
66556         * sysdeps/x86_64/configure: Regenerated.
66557
66558 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
66559
66560         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66561
66562         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
66563         denormal result into account.
66564
66565 2012-03-25  Roland McGrath  <roland@hack.frob.com>
66566
66567         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
66568         Reported by Allan McRae <allan@archlinux.org>.
66569
66570 2012-03-23  Jeff Law  <law@redhat.com>
66571
66572         * nss/getnssent.c (__nss_getent): Fix typo.
66573
66574 2012-03-23  David S. Miller  <davem@davemloft.net>
66575
66576         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66577
66578 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
66579
66580         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
66581         to pad to uint64_t for each field.
66582         (dl_tls_index): Replace unsigned long with uint64_t.
66583
66584 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
66585         Paul Pluzhnikov  <ppluzhnikov@google.com>
66586
66587         [BZ #6528]
66588         * grp/Makefile (otherlibs): Don't set it.
66589         * inet/Makefile (otherlibs): Likewise.
66590         * login/Makefile (otherlibs): Likewise.
66591         * nscd/Makefile (otherlibs): Likewise.
66592         * posix/Makefile (otherlibs): Likewise.
66593         * pwd/Makefile (otherlibs): Likewise.
66594         * rt/Makefile (otherlibs): Likewise.
66595         * sunrpc/Makefile (otherlibs): Likewise.
66596         * nss/Makefile (otherlibs): Likewise.
66597         Add libnss_files to routines and static-only-routines.
66598         ($(objpfx)getent): Remove rule.
66599         * resolv/Makefile: Add libnss_dns and libresolv to routines and
66600         static-only-routines.
66601
66602 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66603
66604         [BZ #13892]
66605         * math/s_cexp.c: Include <float.h>.
66606         (__cexp): Handle exp result overflowing not necessarily
66607         overflowing both real and imaginary parts of result.
66608         * math/s_cexpf.c: Likewise.
66609         * math/s_cexpl.c: Likewise.
66610         * math/libm-test.inc (cexp_test): Add more tests.
66611         * sysdeps/i386/fpu/libm-test-ulps: Update.
66612         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66613
66614 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66615
66616         * include/link.h (ELFW): New macro.
66617         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
66618         Replace ELF64_R_TYPE with ELFW(R_TYPE).
66619
66620 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66621
66622         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66623         with uint64_t.
66624
66625 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66626
66627         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66628         declaration.
66629         (struct La_x32_retval): Likewise.
66630
66631 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66632
66633         * sysdeps/x86_64/preconfigure.in: New file.
66634         * sysdeps/x86_64/preconfigure: New generated file.
66635
66636 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66637
66638         [BZ #13824]
66639         * math/e_exp2l.c: Include <float.h>.
66640         (__ieee754_exp2l): Handle overflow and underflow cases
66641         separately.  Only pass fractional part of argument to
66642         __ieee754_expl.
66643         * math/libm-test.inc (exp2_test): Add more tests.
66644
66645         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66646         negating x to take absolute value.
66647         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66648         Likewise.
66649         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66650         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66651         Likewise.
66652         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66653         computing low part if x was negated.
66654         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66655
66656 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66657
66658         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66659         la_x32_gnu_pltexit.
66660         (pltexit): Cast int_retval to ptrdiff_t.
66661         * elf/tst-auditmod3b.c: Likewise.
66662         * elf/tst-auditmod4b.c: Likewise.
66663         * elf/tst-auditmod5b.c: Likewise.
66664         * elf/tst-auditmod6b.c: Likewise.
66665         * elf/tst-auditmod6c.c: Likewise.
66666         * elf/tst-auditmod7b.c: Likewise.
66667
66668         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66669         and x32_gnu_pltexit.
66670
66671         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66672         __ELF_NATIVE_CLASS.
66673         (La_x32_regs): New macro.
66674         (La_x32_retval): Likewise.
66675         (la_x32_gnu_pltenter): New function prototype.
66676         (la_x32_gnu_pltexit): Likewise.
66677
66678 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66679
66680         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66681         exponent.
66682
66683         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66684
66685         * configure.in (libc_cv_cc_nofma): Check for option to disable
66686         generation of FMA instructions.
66687         * configure: Regenerate.
66688         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66689         * sysdeps/ieee754/dbl-64/Makefile: New file.
66690         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66691         Remove brandred-fma4.
66692         (CFLAGS-brandred-fma4.c): Remove.
66693         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66694         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66695         define.
66696         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66697         define.
66698
66699 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66700
66701         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66702         LLONG_MAX != LONG_MAX.
66703         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66704         (_fitoa_word): Likewise.
66705         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66706         LLONG_MAX != LONG_MAX.
66707         * stdio-common/_itowa.h: Include <_itoa.h>.
66708         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66709         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66710         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66711         only if not defined.
66712         (_ITOA_WORD_TYPE): Likewise.
66713         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66714         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66715
66716 2012-03-21  David S. Miller  <davem@davemloft.net>
66717
66718         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66719
66720 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66721
66722         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66723         of x86_64 when setting libc_cv_slibdir, libdir and
66724         libc_cv_localedir.
66725         * sysdeps/unix/sysv/linux/configure: Regenerated.
66726
66727 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66728
66729         * manual/lang.texi (Old Varargs): Remove section.
66730         (How Variadic): Update menu.
66731         (va_start): Do not mention varargs.h.
66732
66733 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66734             Joseph Myers  <joseph@codesourcery.com>
66735
66736         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66737         link test.
66738         * configure: Regenerated.
66739
66740 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66741
66742         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66743         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66744         conformtest.pl
66745
66746 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66747
66748         * NOTES: Remove.
66749         * Makefile (files-for-dist): Remove NOTES.
66750         (NOTES): Remove rule.
66751         * README: Don't refer to NOTES.
66752         * manual/creature.texi: Don't include macros.texi.
66753         * manual/intro.texi (creature.texi): Remove comment referring to
66754         NOTES.
66755
66756         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66757         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66758         * configure: Regenerated.
66759         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66760         LIBC_TRY_CC_OPTION.
66761         (libc_cv_as_i686): Likewise.
66762         (libc_cv_cc_avx): Likewise.
66763         (libc_cv_cc_sse2avx): Likewise.
66764         (libc_cv_cc_fma4): Likewise.
66765         (libc_cv_cc_novzeroupper): Likewise.
66766         * sysdeps/i386/configure: Regenerated.
66767
66768         [BZ #13883]
66769         * sysdeps/i386/fpu/s_cexp.S: Remove.
66770         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66771         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66772         * math/libm-test.inc (cexp_test): Add more tests.
66773         * sysdeps/i386/fpu/libm-test-ulps: Update.
66774         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66775
66776 2012-03-21  Allan McRae  <allan@archlinux.org>
66777
66778         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66779
66780 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66781
66782         [BZ #13871]
66783         * math/w_exp2.c: Do not include <float.h>.
66784         (o_threshold, u_threshold): Remove.
66785         (__exp2): Calculate result before checking finiteness and calling
66786         __kernel_standard.
66787         * math/w_exp2f.c: Likewise.
66788         * math/w_exp2l.c: Likewise.
66789         * math/libm-test.inc (exp2_test): Require overflow exception for
66790         1e6 input.
66791
66792         [BZ #3866]
66793         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66794         range of signed 64-bit integers before using fistpll.  Remove
66795         checks for whether integers fit in mantissa bits.
66796         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66797         the range of signed 32-bit integers before using fistpl.  Remove
66798         checks for whether integers fit in mantissa bits.
66799         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66800         (__ieee754_powl): Test for y outside the range of signed 64-bit
66801         integers before using fistpll.  Reduce 64-bit values to 63-bit
66802         ones as needed.
66803         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66804         divide-by-zero is raised for zero to large negative powers.
66805         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66806         (__ieee754_powl): Test for y outside the range of signed 64-bit
66807         integers before using fistpll.  Reduce 64-bit values to 63-bit
66808         ones as needed.
66809         * math/libm-test.inc (pow_test): Add more tests.
66810
66811 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66812
66813         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66814         <stdio-common/_itoa.h>.
66815         * debug/segfault.c: Likewise.
66816         * elf/dl-cache.c: Likewise.
66817         * elf/dl-minimal.c: Likewise.
66818         * elf/dl-misc.c: Likewise.
66819         * elf/dl-sysdep.c: Likewise.
66820         * elf/dl-version.c: Likewise.
66821         * elf/rtld.c: Likewise.
66822         * hurd/hurdsock.c: Likewise.
66823         * hurd/lookup-retry.c: Likewise.
66824         * malloc/malloc.c: Likewise.
66825         * malloc/mtrace.c: Likewise.
66826         * nscd/nscd_getgr_r.c: Likewise.
66827         * nscd/nscd_getpw_r.c: Likewise.
66828         * nscd/nscd_getserv_r.c: Likewise.
66829         * posix/getopt_init.c: Likewise.
66830         * posix/wordexp.c: Likewise.
66831         * stdio-common/_itoa.c: Likewise.
66832         * stdio-common/printf_fphex.c: Likewise.
66833         * stdio-common/vfprintf.c: Likewise.
66834         * string/_strerror.c: Likewise.
66835         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66836         * sysdeps/i386/i686/hp-timing.h: Likewise.
66837         * sysdeps/mach/_strerror.c: Likewise.
66838         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66839         * sysdeps/mach/hurd/sethostid.c: Likewise.
66840         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66841         * sysdeps/mach/xpg-strerror.c: Likewise.
66842         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66843         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66844         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66845         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66846         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66847         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66848         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66849         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66850         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66851         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66852         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66853         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66854         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66855         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66856         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66857         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66858         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66859         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66860         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66861         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66862         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66863
66864         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66865
66866         * stdio-common/_itoa.h: Moved to ...
66867         * sysdeps/generic/_itoa.h: Here.
66868
66869         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66870
66871         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66872         instead of "_itoa.h" and "_itowa.h".
66873         * stdio-common/vfprintf.: Likewise.
66874
66875 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66876
66877         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66878         <bits/wordsize.h>.
66879         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66880         (__signbit): Likwise.
66881         (llrintf): Likwise.
66882         (llrint): Likwise.
66883
66884 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66885
66886         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66887         __WORDSIZE != 64.
66888
66889 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66890
66891         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66892         OVERFLOW_EXCEPTION_OK.
66893         * math/libm-test.inc ("Philosophy"): Update comment about
66894         exception testing.
66895         (OVERFLOW_EXCEPTION): Define.
66896         (OVERFLOW_EXCEPTION_OK): Likewise.
66897         (INVALID_EXCEPTION_OK): Renumber.
66898         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66899         (IGNORE_ZERO_INF_SIGN): Likewise.
66900         (test_exceptions): Handle FE_OVERFLOW.
66901         (exp10_test): Expect overflow exceptions.
66902         (exp2_test): Likewise.
66903         (expm1_test): Likewise.
66904         (nextafter_test): Likewise.
66905         (pow_test): Likewise.
66906         (scalbn_test): Likewise.
66907         (scalbln_test): Likewise.
66908
66909 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66910
66911         * sysdeps/x86_64/bits/atomic.h
66912         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66913         64bit integer.
66914         (atomic_exchange_acq): Likewise.
66915         (__arch_exchange_and_add_body): Likewise.
66916         (__arch_add_body): Likewise.
66917         (atomic_add_negative): Likewise.
66918         (atomic_add_zero): Likewise.
66919
66920 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66921
66922         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66923         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66924
66925 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66926
66927         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66928         Check __x86_64__ instead of __WORDSIZE.
66929
66930 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66931
66932         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66933
66934 2012-03-19  David S. Miller  <davem@davemloft.net>
66935
66936         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66937
66938         * sysdeps/sparc/fpu/fenv_private.h: New file.
66939         * sysdeps/sparc/fpu/math_private.h: Use it.
66940         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66941         Remove.
66942         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66943         (libc_feholdexcept_setroundl): Remove.
66944         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66945         Remove.
66946         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66947         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66948
66949 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66950
66951         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66952         int64_t instead of long int.
66953         (INSERT_WORDS64): Likwise.
66954
66955 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66956
66957         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66958         _Unwind_GetCFA return to _Unwind_Ptr first.
66959
66960 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66961
66962         [BZ #13629]
66963         * math/s_clog.c: Include <float.h>.
66964         (__clog): Scale large or subnormal inputs.
66965         * math/s_clogf.c: Likewise.
66966         * math/s_clogl.c: Likewise.
66967         * math/s_clog10.c: Include <float.h>.
66968         (M_LOG10_2): Define.
66969         (__clog10): Scale large or subnormal inputs.
66970         * math/s_clog10f.c: Likewise.
66971         * math/s_clog10l.c: Likewise.
66972         * math/libm-test.inc (clog_test): Add more tests.
66973         (clog10_test): Likewise.
66974         * sysdeps/i386/fpu/libm-test-ulps: Update.
66975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66976
66977         [BZ #11451]
66978         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66979         x and y.
66980         * math/libm-test.inc (atan2_test): Add another test.
66981
66982         * Makerules (common-objdir-compile): Remove.
66983         * sysdeps/unix/Makefile (config-generated): Do not add
66984         $(unix-generated) to variable.
66985         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66986         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66987         Remove rule.
66988         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66989         Likewise.
66990         [generic bits/local_lim.h] (before-compile): Do not append to
66991         variable.
66992         [generic bits/local_lim.h] (common-generated): Likewise.
66993         [generic sys/param.h] (before-compile): Do not append to variable.
66994         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66995         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66996         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66997         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66998         include.
66999         [generic sys/param.h] (sys/param.h-includes): Remove variable.
67000         [generic sys/param.h] (sys/param.h-includes): Remove rule.
67001         [generic sys/param.h] ($(addprefix
67002         $(common-objpfx),$(sys/param.h-includes))): Likewise.
67003         [generic sys/param.h] (common-generated): Do not append to
67004         variable.
67005         [generic sys/param.h] (sysdep_headers): Likewise.
67006         [generic bits/errno.h] (before-compile): Do not append to
67007         variable.
67008         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
67009         rule.
67010         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
67011         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
67012         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
67013         [generic bits/errno.h] (common-generated): Do not append to
67014         variable.
67015         [generic bits/ioctls.h] (before-compile): Do not append to
67016         variable.
67017         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
67018         rule.
67019         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
67020         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
67021         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
67022         rule.
67023         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
67024         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
67025         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
67026         [generic bits/ioctls.h] (common-generated): Do not append to
67027         variable.
67028         [generic sys/syscall.h] (syscall.h): Remove variable.
67029         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
67030         rule.
67031         [generic sys/syscall.h] (before-compile): Do not append to
67032         variable.
67033         [generic sys/syscall.h] (common-generated): Likewise.
67034         * sysdeps/unix/errnos-tmpl.c: Remove file.
67035         * sysdeps/unix/errnos.awk: Likewise.
67036         * sysdeps/unix/ioctls-tmpl.c: Likewise.
67037         * sysdeps/unix/ioctls.awk: Likewise.
67038         * sysdeps/unix/mk-local_lim.c: Likewise.
67039         * sysdeps/unix/snarf-ioctls: Likewise.
67040
67041 2012-03-19  Richard Henderson  <rth@twiddle.net>
67042
67043         * sysdeps/i386/fpu/fenv_private.h: New file.
67044         * sysdeps/i386/fpu/math_private.h: Use it.
67045         (math_opt_barrier, math_force_eval): Remove.
67046         (libc_feholdexcept_setround_53bit): Remove.
67047         (libc_feupdateenv_53bit): Remove.
67048         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67049         (math_opt_barrier, math_force_eval): Remove.
67050         (libc_feholdexcept): Remove.
67051         (libc_feholdexcept_setround): Remove.
67052         (libc_fetestexcept, libc_fesetenv): Remove.
67053         (libc_feupdateenv_test): Remove.
67054         (libc_feupdateenv, libc_feholdsetround): Remove.
67055         (libc_feresetround): Remove.
67056
67057         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
67058         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
67059
67060         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
67061         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
67062         (libc_feupdateenv_testl): New.
67063         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
67064         (libc_feupdateenv_testf): New.
67065         (libc_feupdateenv): Use libc_feupdateenv_test.
67066         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
67067         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
67068
67069         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
67070         (libc_feholdsetroundf, libc_feholdsetroundl): New.
67071         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
67072         (libc_feresetround_noex): New.
67073         (libc_feresetround_noexf): New.
67074         (libc_feresetround_noexl): New.
67075         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
67076         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
67077         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
67078         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
67079         SET_RESTORE_ROUND.
67080         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
67081         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
67082         (__cos): Likewise.
67083         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
67084         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
67085         SET_RESTORE_ROUND_NOEX.
67086         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
67087         SET_RESTORE_ROUND_NOEXF.
67088         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
67089         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
67090         (libc_feholdsetroundf): New.
67091         (libc_feresetround, libc_feresetroundf): New.
67092
67093         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
67094         (libc_feholdexcept_setround_53bit): Convert from macro to function.
67095         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
67096
67097         * sysdeps/generic/math_private.h: Include <fenv.h>.
67098         (default_libc_feholdexcept): New.
67099         (default_libc_feholdexcept_setround): New.
67100         (default_libc_fesetenv, default_libc_feupdateenv): New.
67101         (libc_feholdexcept): Only define if undefined.
67102         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
67103         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
67104         (libc_feholdexcept_setroundl): Likewise.
67105         (libc_feholdexcept_setround_53bit): Likewise.
67106         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
67107         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
67108         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
67109         (libc_feupdateenv_53bit): Likewise.
67110         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
67111         (libc_feholdexcept): Convert from macro to inline function.
67112         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
67113         (libc_fesetenv, libc_feupdateenv): Likewise.
67114
67115         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
67116         not previously defined.
67117         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
67118         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
67119         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
67120         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
67121         * sysdeps/ieee754/flt-32/math_private.h: New file.
67122         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
67123         math_private.h below SET_FLOAT_WORD.
67124         (__isnan, __isinf_ns, __finite): Remove.
67125         (__isnanf, __isinf_nsf, __finitef): Remove.
67126
67127 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
67128
67129         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67130
67131 2012-03-17  David S. Miller  <davem@davemloft.net>
67132
67133         [BZ #6471]
67134         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
67135         for 2.16.
67136
67137 2012-03-16  David S. Miller  <davem@davemloft.net>
67138
67139         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
67140         warnings.
67141
67142         [BZ #6471]
67143         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
67144         properly.
67145         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
67146         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
67147         sysdep_routines when subdir is sysvipc.
67148         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
67149         __getshmlba helper.
67150
67151         * sysdeps/sparc/fpu/libm-test/ulps: Update.
67152
67153 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67154
67155         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
67156         [__LP64__].
67157
67158 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67159
67160         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
67161         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
67162         (__lround): Renamed to ...
67163         (__llround): This.  Replace long int with long long int.
67164         Define lround functions as aliases of llround functions.
67165         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
67166
67167 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67168
67169         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
67170         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
67171         adresses to uintptr_t.  Replace "long int" and "unsigned long
67172         int" with "greg_t" on va_arg.
67173
67174 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67175
67176         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
67177         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
67178
67179         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
67180         Move e_machine check before EI_CLASS check.  Handle x32
67181         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
67182         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
67183         SKIP_EM_IA_64 and include
67184         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
67185
67186         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
67187         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
67188         (add_system_dir): New macro.
67189
67190         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
67191         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
67192
67193 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67194
67195         [BZ #2551]
67196         [BZ #2552]
67197         [BZ #2553]
67198         [BZ #2554]
67199         [BZ #2562]
67200         [BZ #2563]
67201         [BZ #2565]
67202         [BZ #2566]
67203         [BZ #2576]
67204         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
67205         (y0): Likewise.
67206         * math/w_j0f.c (j0f): Likewise.
67207         (y0f): Likewise.
67208         * math/w_j0l.c (__j0l): Likewise.
67209         (__y0l): Likewise.
67210         * math/w_j1.c (j1): Likewise.
67211         (y1): Likewise.
67212         * math/w_j1f.c (j1f): Likewise.
67213         (y1f): Likewise.
67214         * math/w_j1l.c (__j1l): Likewise.
67215         (__y1l): Likewise.
67216         * math/w_jn.c (jn): Likewise.
67217         (yn): Likewise.
67218         * math/w_jnf.c (jnf): Likewise.
67219         (ynf): Likewise.
67220         * math/w_jnl.c (__jnl): Likewise.
67221         (__ynl): Likewise.
67222         * math/libm-test.inc (j0_test): Add more tests.
67223         (j1_test): Likewise.
67224         (jn_test): Likewise.  Add trailing semicolon to existing test.
67225         (y0_test): Likewise.
67226         (y1_test): Likewise.
67227         * sysdeps/i386/fpu/libm-test-ulps: Update.
67228         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67229
67230         [BZ #13851]
67231         [BZ #13854]
67232         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
67233         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
67234         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
67235         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
67236         (__tanl): Set errno for infinite argument.
67237         * sysdeps/i386/fpu/mptan.c: Remove.
67238         * sysdeps/i386/fpu/s_tan.S: Likewise.
67239         * sysdeps/i386/fpu/s_tanl.S: Likewise.
67240         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
67241         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
67242         * math/libm-test.inc (tan_test): Add more tests and enable more
67243         tests for double and long double.
67244         * sysdeps/i386/fpu/libm-test-ulps: Update.
67245         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67246
67247 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
67248
67249         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
67250         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
67251
67252 2012-03-16  Roland McGrath  <roland@hack.frob.com>
67253
67254         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
67255         * configure.in: Use it for both main tree and add-ons.
67256         * configure: Regenerated.
67257
67258 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67259
67260         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
67261
67262 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67263
67264         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
67265         in comment.
67266
67267         [BZ #13851]
67268         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
67269         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
67270         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
67271         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
67272         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
67273         infinite argument.
67274         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
67275         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
67276         != 0 for prec == 2.
67277         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
67278         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
67279         * sysdeps/i386/fpu/s_cosl.S: Likewise.
67280         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
67281         * sysdeps/i386/fpu/s_sinl.S: Likewise.
67282         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
67283         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
67284         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
67285         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
67286         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
67287         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
67288         * math/libm-test.inc (cos_test): Add more tests and enable more
67289         tests for long double.
67290         (sin_test): Likewise.
67291         (sincos_test): Likewise.
67292         * sysdeps/i386/fpu/libm-test-ulps: Update.
67293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67294
67295 2012-03-16  David S. Miller  <davem@davemloft.net>
67296
67297         * sysdeps/sparc/fpu/math_private.h: New file.
67298
67299 2012-03-15  David S. Miller  <davem@davemloft.net>
67300
67301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
67302         file.
67303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
67304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
67305         file.
67306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
67307         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
67308         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
67309         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
67310         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
67311         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
67312         sysdep routines.
67313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67314
67315         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
67316         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
67317
67318         * sysdeps/sparc/sparc-ifunc.h: New file.
67319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
67320         sparc-ifunc.h
67321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
67322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
67323         Likewise.
67324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
67325         Likewise.
67326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
67327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
67328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
67329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
67330         Likewise.
67331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
67332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
67333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
67334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
67335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
67336         Likewise.
67337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
67338         Likewise.
67339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
67340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
67341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
67342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
67343         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
67344         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
67345         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
67346         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
67347         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
67348         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
67349         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
67350         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
67351         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
67352         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
67353         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
67354         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
67355         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
67356         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
67357         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
67358         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
67359         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
67360         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
67361         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
67362         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
67363
67364 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67365
67366         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
67367         scaling.
67368         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67369
67370 2012-03-15  Andreas Jaeger  <aj@suse.de>
67371
67372         [BZ #13852]
67373         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
67374         ieee754/flt-32 implementation for sin, cos and sincos.
67375         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
67376         * sysdeps/i386/fpu/s_cosf.S: Likewise.
67377         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
67378         * sysdeps/i386/fpu/s_sinf.S: Likewise.
67379         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
67380         ieee754/flt-32 implementation for tan.
67381
67382         * math/libm-test.inc (cos_test): Enable some large input tests for
67383         float as well
67384         (sin_test): Likewise.
67385         (sincos_test): Likewise.
67386         (tan_test): Add tests for large input.
67387
67388         * sysdeps/i386/fpu/libm-test-ulps: Update.
67389
67390 2012-03-15  Andreas Jaeger  <aj@suse.de>
67391
67392         [BZ #13658]
67393         * math/libm-test.inc (cos_test): Add more test cases.
67394         (sin_test): Likewise.
67395         (sincos_test): Likewise.
67396
67397 2012-03-15  Andreas Jaeger  <aj@suse.de>
67398
67399         [BZ #13837]
67400         * math/libm-test.inc (cos_test): Add a test case for large input
67401         value.
67402         (sin_test): Likewise.
67403         (sincos_test): Likewise.
67404
67405 2012-03-15  Andreas Jaeger  <aj@suse.de>
67406             Joseph Myers  <joseph@codesourcery.com>
67407
67408         [BZ #13658]
67409         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
67410         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
67411         * sysdeps/i386/fpu/branred.c: Likewise.
67412         * sysdeps/i386/fpu/dosincos.c: Likewise.
67413         * sysdeps/i386/fpu/mpa.c: Likewise.
67414         * sysdeps/i386/fpu/s_cos.S: Likewise.
67415         * sysdeps/i386/fpu/s_sin.S: Likewise.
67416         * sysdeps/i386/fpu/s_sincos.S: Likewise.
67417         * sysdeps/i386/fpu/sincos32.c: Likewise.
67418
67419         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
67420         Define.
67421         (libc_feupdateenv_53bit): Define.
67422         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
67423         Define.
67424         (libc_feupdateenv_53bit): Define.
67425
67426         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
67427         53 bit (without extend i386 double precision).
67428
67429         * math/libm-test.inc (sincos_test): Add tests for large input.
67430         (sin): Likewise.
67431         (cos): Likewise.
67432
67433         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
67434
67435 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67436
67437         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67438
67439 2012-03-15  David S. Miller  <davem@davemloft.net>
67440
67441         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
67442         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
67443         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
67444         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
67445         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
67446         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
67447         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
67448         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
67449         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
67450         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
67451         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
67452         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
67453         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
67454         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
67455         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
67456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
67457         file.
67458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
67459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
67460         file.
67461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
67462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
67463         file.
67464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
67465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
67466         file.
67467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
67468         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
67469         fmin/fmax sysdep routines.
67470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67471
67472 2012-03-14  David S. Miller  <davem@davemloft.net>
67473
67474         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
67475         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
67476         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
67477         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
67478         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
67479         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
67480         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
67481         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
67482         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
67483         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
67484         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
67485         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
67486         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
67487         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
67488         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
67489         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
67490         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
67491         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
67492         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
67493         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
67494         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
67495         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
67496         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
67497         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
67498         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
67499         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
67500         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
67501         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
67502         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
67503         routines.
67504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
67505         file.
67506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
67507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
67508         file.
67509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
67510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
67511         file.
67512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
67513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
67514         file.
67515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
67516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
67517         file.
67518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
67519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
67520         file.
67521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
67522         file.
67523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
67524         file.
67525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
67526         file.
67527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
67528         New file.
67529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
67530         file.
67531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
67532         file.
67533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
67534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
67535         file.
67536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
67537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
67538         file.
67539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
67540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
67541         file.
67542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
67543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
67544         VIS3 routines.
67545
67546         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67547         New file.
67548
67549         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67550
67551         * sysdeps/sparc/configure.in: New file.
67552         * sysdeps/sparc/configure: Generate.
67553         * configure.in (libc_cv_sparc_as_vis3): Substitute.
67554         * configure: Regenerate.
67555         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
67556         * config.make.in (have-as-vis3): New.
67557         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
67558         available use -Av9d instead of -Av9a.
67559         * sysdeps/sparc/sparc64/Makefile: Likewise.
67560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
67561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
67562         New file.
67563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
67564         file.
67565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
67566         New file.
67567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
67568         file.
67569         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
67570         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
67571         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
67572         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
67573         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
67574
67575         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
67576         fzeros/fnegs to load 0x80000000 into a float register instead of
67577         using the stack.
67578         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
67579
67580 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67581
67582         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67583         bits/syscall.h.
67584         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
67585         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
67586         ($(inst_includedir)/bits/syscall.h): Remove rule.
67587         ($(objpfx)bits/syscall.d): Include instead of
67588         $(objpfx)syscall-list.d.
67589         (generated): Change syscall-list.h and syscall-list.d to
67590         bits/syscall.h and bits/syscall.d.
67591
67592 2012-03-14  Roland McGrath  <roland@hack.frob.com>
67593
67594         [BZ #13846]
67595         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
67596
67597 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67598
67599         [BZ #13841]
67600         * math/s_csqrt.c: Include <float.h>.
67601         (__csqrt): Scale large or subnormal inputs.
67602         * math/s_csqrtf.c: Likewise.
67603         * math/s_csqrtl.c: Likewise.
67604         * math/libm-test.inc (csqrt_test): Add more tests.
67605         * sysdeps/i386/fpu/libm-test-ulps: Update.
67606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67607
67608         [BZ #13840]
67609         * math/libm-test.inc (hypot_test): Add more tests.
67610
67611 2012-03-13  David S. Miller  <davem@davemloft.net>
67612
67613         [BZ #13840]
67614         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
67615         double-precision for the calculation instead of scaling.
67616
67617 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
67618
67619         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
67620         manipulate bits before adding and subtracting TWO52[sx].
67621         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67622         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67623         Likewise.
67624         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67625
67626 2012-03-13  David S. Miller  <davem@davemloft.net>
67627
67628         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67629         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67630         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67631         rtld-global-offsets.h
67632         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67633
67634         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67635         large parameters.
67636
67637         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67638
67639         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67640         'err' in the ifdef scope in which it is actually used.
67641
67642         * nss/nss_db/db-init.c: Include string.h
67643
67644 2012-03-12  David S. Miller  <davem@davemloft.net>
67645
67646         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67647         masking out of the most significant byte of random value used.
67648         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67649         Fix coding style in previous change.
67650
67651         * sysdeps/unix/sysv/linux/kernel-features.h
67652         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67653         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67654         expression.
67655         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67656         later.
67657
67658 2012-03-11  David S. Miller  <davem@davemloft.net>
67659
67660         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67661         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67662         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67663         for 'resultvar' otherwise things get truncated on 64-bit.
67664
67665         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67666         Fix masking out of the most significant byte of random value used.
67667
67668         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67669
67670 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67671
67672         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67673
67674 2012-03-09  David S. Miller  <davem@davemloft.net>
67675
67676         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67677         variables with appropriate CPP guards.
67678         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67679         from the frame pointer, not the stack pointer.  Correct layout
67680         comments.  Fix test on resulting framesize and the management of
67681         the outregs buffer for pltexit.  Preserve floating point return
67682         values across _dl_call_pltexit call.
67683         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67684         framesize and the management of the outregs buffer for pltexit.
67685         Preserve floating point return values across _dl_call_pltexit
67686         call.
67687         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67688         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67689         (la_sparc64_gnu_pltexit): New functions.
67690         (print_exit): Fix format string for return register value.
67691
67692 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67693
67694         * sunrpc/Makefile (others): Add rpcgen.
67695         ($(objpfx)rpcgen): Remove special build rule and dependency on
67696         libc.
67697         * sunrpc/rpcgen.c: New file.
67698
67699 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         [BZ #13673]
67702         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67703         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67704         * sysdeps/i386/crti.S: Likewise.
67705         * sysdeps/i386/crtn.S: Likewise.
67706         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67707         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67708         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67709         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67710         * sysdeps/sh/crti.S: Likewise.
67711         * sysdeps/sh/crtn.S: Likewise.
67712         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67713
67714         [BZ #13673]
67715         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67716         with URL.
67717         * locale/programs/locfile-kw.gperf: Likewise.
67718         * locale/programs/charmap-kw.h: Regenerated.
67719         * locale/programs/locfile-kw.h: Likewise.
67720
67721         [BZ #13673]
67722         * intl/plural.y: Replace FSF snail mail address with URL.
67723         * intl/plural.c: Regenerated.
67724
67725 2012-03-09  Richard Henderson  <rth@twiddle.net>
67726
67727         * include/math_private.h: Remove file.
67728         * math/math_private.h: Move file ...
67729         * sysdeps/generic/math_private.h: ... here.
67730
67731         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67732         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67733         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67734
67735         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67736         and <math_private.h>.
67737         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67738         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67739         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67740         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67741         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67742         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67743         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67744         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67745         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67746         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67747         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67748         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67749         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67750         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67751         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67752         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67753         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67754         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67755         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67756         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67757         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67758         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67759         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67760         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67761         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67762         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67763         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67764         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67765         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67766         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67767         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67768         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67769         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67770         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67771         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67772         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67773         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67774         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67775         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67776         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67777         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67778         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67779         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67780         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67781         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67782         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67783         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67784         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67785         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67786         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67787         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67788         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67789         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67790         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67791         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67792         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67793         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67794         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67795         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67796         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67797         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67798         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67799         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67800         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67801         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67802         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67803         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67804         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67805         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67806         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67807         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67808         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67809         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67810         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67811         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67812         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67813         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67814         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67815         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67816         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67817         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67818         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67819         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67820         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67821         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67822         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67823         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67824         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67825         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67826         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67827         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67828         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67829         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67830         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67831         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67832         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67833         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67834         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67835         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67836         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67837         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67838         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67839         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67840         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67841         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67842         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67843         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67844         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67845         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67846         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67847         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67848         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67849         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67850         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67851         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67852         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67853         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67854         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67855         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67856         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67857         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67858         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67859         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67860         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67861         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67862         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67863         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67864         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67865         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67866         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67867         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67868         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67869         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67870         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67871         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67872         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67873         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67874         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67875         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67876         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67877         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67878         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67879         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67880         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67881         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67882         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67883         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67884         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67885         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67886         * sysdeps/ieee754/k_standard.c: Likewise.
67887         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67888         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67889         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67890         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67891         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67892         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67893         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67894         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67895         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67896         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67897         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67898         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67899         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67900         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67901         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67902         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67903         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67904         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67905         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67906         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67907         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67908         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67909         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67910         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67911         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67912         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67913         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67914         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67915         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67916         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67917         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67918         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67919         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67920         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67921         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67922         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67923         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67924         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67925         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67926         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67927         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67928         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67929         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67930         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67931         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67932         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67933         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67934         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67935         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67936         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67937         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67938         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67939         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67940         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67941         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67942         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67943         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67944         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67945         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67946         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67947         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67948         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67949         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67950         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67951         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67952         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67953         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67954         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67955         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67956         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67957         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67958         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67959         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67960         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67961         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67962         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67963         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67964         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67965         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67966         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67967         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67968         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67969         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67970         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67971         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67972         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67973         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67974         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67975         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67976         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67977         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67978         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67979         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67980         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67981         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67982         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67983         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67984         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67985         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67986         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67987         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67988         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67989         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67990         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67991         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67992         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67993         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67994         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67995         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67996         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67997         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67998         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67999         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
68000         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
68001         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
68002         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
68003         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
68004         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
68005         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
68006         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
68007         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
68008         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
68009         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
68010         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
68011         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
68012         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
68013         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
68014         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
68015         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
68016         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
68017         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
68018         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
68019         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
68020         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
68021         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
68022         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
68023         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
68024         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
68025         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
68026         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
68027         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
68028         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
68029         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
68030         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
68031         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
68032         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
68033         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
68034         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
68035         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
68036         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
68037         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
68038         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
68039         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
68040         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
68041         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
68042         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
68043         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
68044         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
68045         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
68046         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
68047         * sysdeps/ieee754/s_lib_version.c: Likewise.
68048         * sysdeps/ieee754/s_matherr.c: Likewise.
68049         * sysdeps/ieee754/s_signgam.c: Likewise.
68050         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
68051         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
68052         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
68053         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
68054         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
68055         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
68056         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
68057         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
68058         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
68059         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
68060         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
68061         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
68062         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
68063         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
68064         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
68065         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
68066         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
68067         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
68068         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
68069         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
68070         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
68071
68072 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
68073
68074         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
68075         * sunrpc/rpc_main.c: Likewise.
68076         * sunrpc/rpc_svcout.c: Likewise.
68077
68078 2012-03-09  David S. Miller  <davem@davemloft.net>
68079
68080         * include/math_private.h: New file.
68081
68082 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
68083
68084         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
68085         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
68086         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
68087         from <bits/socket_type.h>.
68088         (enum __socket_type): Don't define here.
68089         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
68090         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68091         bits/socket_type.h.
68092
68093         [BZ #13566]
68094         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
68095         checking __USE_GNU.
68096
68097         * Makerules ($(inst_includedir)/%.h): New rule.
68098         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
68099         (install-others): Remove variable setting.
68100         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
68101
68102 2012-03-08  Richard Henderson  <rth@twiddle.net>
68103
68104         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
68105         from macro to inline function; merge with the
68106         !__LIBC_INTERNAL_MATH_INLINES version.
68107         (__ieee754_sqrtf): Likewise.
68108
68109         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
68110         to inline function.
68111         (__rintf, __floor, __floorf): Likewise.
68112
68113         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
68114         macro to inline function.
68115         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
68116
68117         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
68118         not <math/math_private.h>.
68119
68120 2012-03-08  David S. Miller  <davem@davemloft.net>
68121
68122         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
68123         copyright year.
68124         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
68125
68126 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
68127
68128         * resolv/gai_misc.c (handle_requests): Fix struct timespec
68129         normalization.
68130         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
68131         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
68132
68133 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
68134
68135         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
68136         be defined individually, they must be defined as a block.  Define
68137         S for printing a string instead of hidint the different by using a
68138         macro for adding the 'l'.
68139         * stdio-common/tst-fphex-wide.c: Adjust.
68140
68141 2012-03-07  Marek Polacek  <polacek@redhat.com>
68142
68143         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
68144
68145 2012-03-08  Marek Polacek  <polacek@redhat.com>
68146
68147         [BZ #13806]
68148         * stdio-common/Makefile (tests): Add tst-fphex-wide.
68149         * stdio-common/tst-fphex.c: Define a few macros to make the
68150         test reusable.  Use them.
68151         * stdio-common/tst-fphex-wide.c: New file.
68152
68153 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
68154
68155         [BZ #6911]
68156         * manual/macros.texi (gnusystems): New macro.
68157         (nongnusystems): Likewise.
68158         (gnulinuxhurdsystems): Likewise.
68159         (gnuhurdsystems): Likewise..
68160         (gnulinuxsystems): Likewise.
68161         * manual/charset.texi: Use new macros or @theglibc{} to refer to
68162         variants of the GNU system, not "GNU system".
68163         * manual/conf.texi: Likewise.
68164         * manual/errno.texi: Likewise.  Update example of errno macro
68165         expansion.
68166         * manual/filesys.texi: Likewise.
68167         (getumask): Document as specific to GNU/Hurd.
68168         * manual/install.texi: Likewise.  Reword some references to
68169         GNU/Linux.
68170         * manual/intro.texi: Likewise.
68171         * manual/io.texi: Likewise.
68172         (File Name Portability): Detail which constraints are inapplicable
68173         to all GNU systems and which are only inapplicable to GNU/Hurd.
68174         * manual/job.texi: Likewise.
68175         * manual/llio.texi: Likewise.
68176         (O_NOCTTY): Document as present on GNU/Linux.
68177         * manual/maint.texi: Likewise.
68178         * manual/memory.texi: Likewise.
68179         * manual/pattern.texi: Likewise.
68180         * manual/pipe.texi: Likewise.
68181         * manual/process.texi: Likewise.
68182         * manual/resource.texi: Likewise.
68183         (RUSAGE_CHILDREN): Remove statement about specifying a particular
68184         child on GNU/Hurd.
68185         * manual/setjmp.texi: Likewise.
68186         * manual/signal.texi: Likewise.
68187         * manual/startup.texi: Likewise.
68188         * manual/stdio.texi: Likewise.
68189         * manual/terminal.texi: Likewise.
68190         (ONLCR): Document as POSIX.
68191         (OXTABS): Document availability on GNU/Linux as XTABS.
68192         (ONOEOT): Document availability separately from other bits.
68193         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
68194         * manual/time.texi: Likewise.
68195         * manual/users.texi: Likewise.
68196         * INSTALL: Regenerated.
68197         * sysdeps/gnu/errlist.c: Regenerated.
68198
68199         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
68200         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
68201         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
68202         puts.
68203         * configure: Regenerated.
68204
68205 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
68206
68207         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
68208         default includes instead of AC_HEADER_CHECK.
68209         * sysdeps/i386/configure: Regenerated.
68210
68211         [BZ #10716]
68212         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
68213         * math/s_cacoshf.c (__cacoshf): Likewise.
68214         * math/s_cacoshl.c (__cacoshl): Likewise.
68215         * math/s_casinh.c (__casinh): Set signs of result from argument.
68216         * math/s_casinhf.c (__casinhf): Likewise.
68217         * math/s_casinhl.c (__casinhl): Likewise.
68218         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
68219         (casinh_test): Add more tests.
68220         * sysdeps/i386/fpu/libm-test-ulps: Update.
68221         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68222
68223 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
68224
68225         * po/zh_TW.po: Update from translation team.
68226
68227         * login/Makefile (distribute): Remove variable.
68228         * catgets/Makefile: Likewise.
68229         * mach/Makefile: Likewise.
68230         * malloc/Makefile: Likewise.
68231         * misc/Makefile: Likewise.
68232         * iconv/Makefile: Likewise.
68233         * nscd/Makefile: Likewise.
68234         * hurd/Makefile: Likewise.
68235         * manual/Makefile: Likewise.
68236         * locale/Makefile: Likewise.
68237         * intl/Makefile: Likewise.
68238         * conform/Makefile: Likewise.
68239         * nss/Makefile: Likewise.
68240         * time/Makefile: Likewise.
68241         * soft-fp/Makefile: Likewise.
68242         * dirent/Makefile: Likewise.
68243         * gmon/Makefile: Likewise.
68244         * po/Makefile: Likewise.
68245         * rt/Makefile: Likewise.
68246         * socket/Makefile: Likewise.
68247         * math/Makefile: Likewise.
68248         * signal/Makefile: Likewise.
68249         * debug/Makefile: Likewise.
68250         * elf/Makefile: Likewise.
68251         * timezone/Makefile: Likewise.
68252         * stdlib/Makefile: Likewise.
68253         * iconvdata/Makefile: Likewise.
68254         * sunrpc/Makefile: Likewise.
68255         * io/Makefile: Likewise.
68256         * argp/Makefile: Likewise.
68257         * inet/Makefile: Likewise.
68258         * hesiod/Makefile: Likewise.
68259         * grp/Makefile: Likewise.
68260         * csu/Makefile: Likewise.
68261         * wctype/Makefile: Likewise.
68262         * crypt/Makefile: Likewise.
68263         * libio/Makefile: Likewise.
68264         * string/Makefile: Likewise.
68265         * nis/Makefile: Likewise.
68266         * resolv/Makefile: Likewise.
68267         * stdio-common/Makefile: Likewise.
68268         * wcsmbs/Makefile: Likewise.
68269         * dlfcn/Makefile: Likewise.
68270         * posix/Makefile: Likewise.
68271
68272         [BZ #6959]
68273         * timezone/Makefile: Don't install timezone files, just the programs
68274         and scripts.
68275
68276 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
68277
68278         * nss/databases.def: Add missing gshadow entry.
68279
68280         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
68281
68282 2012-03-06  Marek Polacek  <polacek@redhat.com>
68283
68284         [BZ #13726]
68285         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
68286         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
68287         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
68288         * stdio-common/tst-long-dbl-fphex.c: New file.
68289
68290 2012-03-06  David S. Miller  <davem@davemloft.net>
68291
68292         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
68293         (set_obp_int): New function.
68294         (get_obp_int): New function.
68295         (__get_clockfreq_via_dev_openprom): Likewise.
68296         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
68297         Avoid unused variable warnings on 'val' and use builtin_expect.
68298         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
68299         __builtin_expect.
68300         (INLINE_CLONE_SYSCALL): Likewise.
68301
68302 2012-03-05  David S. Miller  <davem@davemloft.net>
68303
68304         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68305
68306 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
68307
68308         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68309
68310         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
68311         only for |x| >= 40.
68312         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
68313
68314 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
68315
68316         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
68317         Replace gettimeofday with __vdso_gettimeofday.
68318
68319         * sysdeps/unix/sysv/linux/x86_64/init-first.c
68320         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
68321         __vdso_clock_gettime and __vdso_getcpu.
68322
68323         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
68324         time with __vdso_time.
68325
68326 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68327
68328         * manual/lang.texi (size_t): Note types to which size_t may be
68329         equivalent with the GNU C Library, but do not describe when
68330         differences between them are significant.
68331
68332 2012-03-05  Andreas Jaeger  <aj@suse.de>
68333
68334         * sysdeps/i386/fpu/libm-test-ulps: Update.
68335
68336 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68337
68338         [BZ #3976]
68339         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
68340         (__ieee754_pow): Save and restore rounding mode and use
68341         round-to-nearest for main computations.
68342         * math/libm-test.inc (pow_test_tonearest): New function.
68343         (pow_test_towardzero): Likewise.
68344         (pow_test_downward): Likewise.
68345         (pow_test_upward): Likewise.
68346         (main): Call the new functions.
68347         * sysdeps/i386/fpu/libm-test-ulps: Update.
68348         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68349
68350         [BZ #3976]
68351         * math/libm-test.inc (cosh_test_tonearest): New function.
68352         (cosh_test_towardzero): Likewise.
68353         (cosh_test_downward): Likewise.
68354         (cosh_test_upward): Likewise.
68355         (sinh_test_tonearest): Likewise.
68356         (sinh_test_towardzero): Likewise.
68357         (sinh_test_downward): Likewise.
68358         (sinh_test_upward): Likewise.
68359         (main): Call the new functions.
68360         * sysdeps/i386/fpu/libm-test-ulps: Update.
68361         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68362
68363 2012-03-05  Tom de Vries  <tom@codesourcery.com>
68364
68365         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
68366         default stack guard is set in last bytes.
68367         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
68368
68369 2012-03-05  Kees Cook  <keescook@chromium.org>
68370
68371         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
68372
68373         [BZ #13656]
68374         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
68375         possibly allocate from heap instead of stack.
68376         * stdio-common/bug-vfprintf-nargs.c: New file.
68377         * stdio-common/Makefile (tests): Add nargs overflow test.
68378
68379 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
68380
68381         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68382
68383 2012-03-03  Marek Polacek  <polacek@redhat.com>
68384
68385         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
68386         * math/math_private.h: Likewise.
68387         * stdlib/tst-strtod.c: Likewise.
68388         * sysdeps/i386/i486/bits/atomic.h: Likewise.
68389         * sysdeps/x86_64/bits/atomic.h: Likewise.
68390
68391 2012-03-02  David S. Miller  <davem@davemloft.net>
68392
68393         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
68394         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
68395         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
68396         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
68397         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
68398         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
68399         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
68400         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
68401
68402 2012-03-02  Roland McGrath  <roland@hack.frob.com>
68403
68404         [BZ #13792]
68405         * manual/examples/README: New file, says the example source files
68406         can be used under GPL>=2.
68407         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
68408         line containing just "*/".
68409         * manual/examples/add.c: Add copyright header (GPL>=2).
68410         * manual/examples/argp-ex1.c: Likewise.
68411         * manual/examples/argp-ex2.c: Likewise.
68412         * manual/examples/argp-ex3.c: Likewise.
68413         * manual/examples/argp-ex4.c: Likewise.
68414         * manual/examples/atexit.c: Likewise.
68415         * manual/examples/db.c: Likewise.
68416         * manual/examples/dir.c: Likewise.
68417         * manual/examples/dir2.c: Likewise.
68418         * manual/examples/execinfo.c: Likewise.
68419         * manual/examples/filecli.c: Likewise.
68420         * manual/examples/filesrv.c: Likewise.
68421         * manual/examples/fmtmsgexpl.c: Likewise.
68422         * manual/examples/genpass.c: Likewise.
68423         * manual/examples/inetcli.c: Likewise.
68424         * manual/examples/inetsrv.c: Likewise.
68425         * manual/examples/isockad.c: Likewise.
68426         * manual/examples/longopt.c: Likewise.
68427         * manual/examples/memopen.c: Likewise.
68428         * manual/examples/memstrm.c: Likewise.
68429         * manual/examples/mkfsock.c: Likewise.
68430         * manual/examples/mkisock.c: Likewise.
68431         * manual/examples/mygetpass.c: Likewise.
68432         * manual/examples/pipe.c: Likewise.
68433         * manual/examples/popen.c: Likewise.
68434         * manual/examples/rprintf.c: Likewise.
68435         * manual/examples/search.c: Likewise.
68436         * manual/examples/select.c: Likewise.
68437         * manual/examples/setjmp.c: Likewise.
68438         * manual/examples/sigh1.c: Likewise.
68439         * manual/examples/sigusr.c: Likewise.
68440         * manual/examples/stpcpy.c: Likewise.
68441         * manual/examples/strdupa.c: Likewise.
68442         * manual/examples/strftim.c: Likewise.
68443         * manual/examples/strncat.c: Likewise.
68444         * manual/examples/subopt.c: Likewise.
68445         * manual/examples/swapcontext.c: Likewise.
68446         * manual/examples/termios.c: Likewise.
68447         * manual/examples/testopt.c: Likewise.
68448         * manual/examples/testpass.c: Likewise.
68449         * manual/examples/timeval_subtract.c: Likewise.
68450
68451         [BZ #13792]
68452         * manual/time.texi (Elapsed Time): Move timeval_subtract example
68453         function to ...
68454         * manual/timeval_subtract.c.texi: ... here, new file.
68455
68456 2012-03-02  David S. Miller  <davem@davemloft.net>
68457
68458         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
68459
68460 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
68461
68462         [BZ #3976]
68463         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
68464         (__sin): Save and restore rounding mode and use round-to-nearest
68465         for all computations.
68466         (__cos): Save and restore rounding mode and use round-to-nearest
68467         for all computations.
68468         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
68469         <fenv.h>.
68470         (tan): Save and restore rounding mode and use round-to-nearest for
68471         all computations.
68472         * math/libm-test.inc (cos_test_tonearest): New function.
68473         (cos_test_towardzero): Likewise.
68474         (cos_test_downward): Likewise.
68475         (cos_test_upward): Likewise.
68476         (sin_test_tonearest): Likewise.
68477         (sin_test_towardzero): Likewise.
68478         (sin_test_downward): Likewise.
68479         (sin_test_upward): Likewise.
68480         (tan_test_tonearest): Likewise.
68481         (tan_test_towardzero): Likewise.
68482         (tan_test_downward): Likewise.
68483         (tan_test_upward): Likewise.
68484         (main): Call the new functions.
68485         * sysdeps/i386/fpu/libm-test-ulps: Update.
68486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68487
68488         [BZ #10135]
68489         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
68490         small n, then large n, before computing and testing k+n.
68491         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
68492         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
68493         Likewise.
68494         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
68495         Likewise.
68496         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
68497         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
68498         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
68499         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
68500         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
68501         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
68502         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
68503         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
68504         * math/libm-test.inc (scalbn_test): Add more tests.
68505         (scalbln_test): Likewise.
68506
68507         * manual/filesys.texi (mode_t): Describe constraints on size and
68508         signedness, not exact equivalence to a particular type.
68509         (ino_t): Likewise.
68510         (ino64_t): Likewise.
68511         (dev_t): Likewise.
68512         (nlink_t): Likewise.
68513         (blkcnt_t): Likewise.
68514         (blkcnt64_t): Likewise.
68515         * manual/llio.texi (off_t): Likewise.
68516
68517         [BZ #3976]
68518         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
68519         (__ieee754_exp): Save and restore rounding mode and use
68520         round-to-nearest for all computations.
68521         * math/libm-test.inc (exp_test_tonearest): New function.
68522         (exp_test_towardzero): Likewise.
68523         (exp_test_downward): Likewise.
68524         (exp_test_upward): Likewise.
68525         (main): Call the new functions.
68526         * sysdeps/i386/fpu/libm-test-ulps: Update.
68527         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68528
68529 2012-03-01  Chris Demetriou  <cgd@google.com>
68530
68531         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
68532         have predictable order.
68533
68534 2012-03-01  David S. Miller  <davem@davemloft.net>
68535
68536         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
68537
68538         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
68539         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
68540         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
68541         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
68542
68543         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
68544         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
68545         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
68546         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
68547         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
68548         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
68549         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
68550         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
68551         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
68552
68553         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68554
68555         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
68556         * sysdeps/sparc/fpu/libm-test-ulps: to here.
68557         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
68558
68559         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
68560         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
68561         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68562         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
68563         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
68564         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
68565         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
68566         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
68567         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68568         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
68569         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
68570         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68571         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
68572         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68573         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68574         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68575         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
68576         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
68577         * sysdeps/sparc/elf/configure: Regenerated.
68578
68579 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
68580
68581         * configure.in (AS, LD): Require binutils 2.20 or later.
68582         * configure: Regenerated.
68583         * manual/install.texi (Tools for Compilation): Give binutils 2.20
68584         as required minimum version.
68585         * INSTALL: Regenerated.
68586
68587         [BZ #2541]
68588         [BZ #4108]
68589         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
68590         before squaring exponent.
68591         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
68592         bottom long double and 27 bits of top long double before squaring
68593         exponent.
68594         * math/libm-test.inc (erfc_test): Add more tests.
68595         * sysdeps/i386/fpu/libm-test-ulps: Update.
68596         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68597         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68598
68599 2012-03-01  Kai Tietz  <ktietz@redhat.com>
68600
68601         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
68602         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
68603         containing bit-fields.
68604         * soft-fp/extended.h (_FP_UNION_E): Likewise.
68605         * soft-fp/single.h (_FP_UNION_S): Likewise.
68606         * soft-fp/double.h (_FP_UNION_D): Likewise.
68607
68608 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68609
68610         [BZ #13786]
68611         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
68612         not include ../strcmp.S.
68613         [USE_AS_STRNCASECMP_L]: Likewise.
68614         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
68615         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
68616         * sysdeps/i386/i686/multiarch/strncase_l-c.c
68617         (__strncasecmp_l_ia32): Define as alias to
68618         __strncasecmp_l_nonascii.
68619
68620         [BZ #5794]
68621         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68622         * sysdeps/i386/fpu/libm-test-ulps: Update.
68623         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68624
68625         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68626         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68627
68628 2012-02-29  Jeff Law  <law@redhat.com>
68629
68630         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68631         out of bounds read.
68632
68633 2012-02-29  Marek Polacek  <polacek@redhat.com>
68634
68635         [BZ #13706]
68636         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68637         * elf/Makefile: Add rules to run tst-unused-dep.out.
68638
68639 2012-02-28  David S. Miller  <davem@davemloft.net>
68640
68641         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68642         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68643         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68644         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68645         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68646         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68647
68648 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68649
68650         * math/libm-test.inc (llround_test): Move one test from
68651         lround_test.  Use TEST_f_L in moved test.
68652         (lround_test): Move misplaced test to llround_test.  Add testcase
68653         from bug 2561.
68654
68655 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68656
68657         * sysdeps/x86_64/fpu/e_expf.S: New file.
68658         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68659
68660 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68661
68662         [BZ #13637]
68663         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68664         of remain_len that may cause incomplete multi-byte character and
68665         false match.
68666         * posix/bug-regex33.c: New file.
68667         * posix/Makefile (tests): Add bug-regex33.
68668
68669 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68670
68671         * manual/macros.texi: New file.
68672         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68673         * manual/libc.texinfo: Include macros.texi.
68674         * manual/creatute.texi: Likewise.
68675         * manual/install.texi: Likewise.
68676         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68677         @glibcadj{} in references to the GNU C Library.
68678         * manual/charset.texi: Likewise.
68679         * manual/conf.texi: Likewise.
68680         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68681         when not using those macros.
68682         * manual/creature.texi: Likewise.
68683         * manual/crypt.texi: Likewise.
68684         * manual/errno.texi: Likewise.
68685         * manual/filesys.texi: Likewise.
68686         * manual/header.texi: Likewise.
68687         * manual/install.texi: Likewise.
68688         * manual/intro.texi: Likewise.
68689         * manual/io.texi: Likewise.
68690         * manual/job.texi: Likewise.
68691         * manual/lang.texi: Likewise.
68692         * manual/libc.texiinfo: Likewise.
68693         * manual/llio.texi: Likewise.
68694         * manual/locale.texi: Likewise.
68695         * manual/maint.texi: Likewise.
68696         * manual/math.texi: Likewise.
68697         * manual/memory.texi: Likewise.
68698         * manual/message.texi: Likewise.
68699         * manual/nss.texi: Likewise.
68700         * manual/pattern.texi: Likewise.
68701         * manual/process.texi: Likewise.
68702         * manual/resource.texi: Likewise.
68703         * manual/search.texi: Likewise.
68704         * manual/setjmp.texi: Likewise.
68705         * manual/signal.texi: Likewise.
68706         * manual/socket.texi: Likewise.
68707         * manual/startup.texi: Likewise.
68708         * manual/stdio.texi: Likewise.
68709         * manual/string.texi: Likewise.
68710         * manual/sysinfo.texi: Likewise.
68711         * manual/syslog.texi: Likewise.
68712         * manual/terminal.texi: Likewise.
68713         * manual/time.texi: Likewise.
68714         * manual/users.texi: Likewise.
68715         * INSTALL: Regenerated.
68716         * NOTES: Regenerated.
68717         * sysdeps/gnu/errlist.c: Regenerated.
68718
68719 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68720
68721         * include/dirent.h: Include <dirstream.h> before
68722         <dirent/dirent.h>.
68723
68724 2012-02-28  David S. Miller  <davem@davemloft.net>
68725
68726         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68727         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68728         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68729         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68730
68731 2012-02-27  David S. Miller  <davem@davemloft.net>
68732
68733         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68734         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68735         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68736         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68737
68738         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68739         frame pointer instead of stack pointer relative arg slot.
68740         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68741         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68742         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68743
68744 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68745
68746         [BZ #3992]
68747         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68748
68749 2012-02-27  David S. Miller  <davem@davemloft.net>
68750
68751         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68752         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68753         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68754         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68755         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68756         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68757         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68758         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68759
68760 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68761
68762         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68763         later.  Allow versions 5-9.
68764         * configure: Regenerated.
68765         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68766         required minimum version and 4.6 as recommended version.  Do not
68767         mention bugs in GCC 2.7 and 2.8.
68768         * INSTALL: Regenerated.
68769
68770 2012-02-27  David S. Miller  <davem@davemloft.net>
68771
68772         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68773         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68774         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68775         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68776         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68777         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68778         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68779         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68780
68781         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68782         manipulate bits before adding and subtracting TWO112[sx].
68783         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68784
68785 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68786
68787         [BZ #13775]
68788         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68789         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68790         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68791         being in POSIX, because they are in 1003.1-2008.
68792
68793         * rt/tst-aio.c: Include <fcntl.h>.
68794         * rt/tst-aio7.c: Likewise.
68795         * rt/tst-aio64.c: Likewise.
68796
68797         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68798
68799 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68800
68801         * manual/install.texi (--with-headers): Describe headers as
68802         interface headers, not private headers.
68803         (Specific advice for GNU/Linux systems): Describe use of headers
68804         from "make headers_install", not private headers from older
68805         kernels.
68806         * INSTALL: Regenerated.
68807         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68808         Change to 2.6.19.
68809         * sysdeps/unix/sysv/linux/configure: Regenerated.
68810
68811         * manual/llio.texi (fclean): Remove documentation.
68812
68813         * manual/Makefile (libc-texi-generated): New variable.  Include
68814         version.texi.
68815         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68816         $(libc-texi-generated), not duplicated list of files.
68817         (version.texi, stamp-version): New rules.
68818         (realclean): Remove $(libc-texi-generated), not individual files
68819         from that list.  Do not remove dir-add.texinfo.
68820         * manual/libc.texinfo: Comment out uses of edition numbers and
68821         references to printed manual.  Remove last-updated dates.
68822         (EDITION): Comment out.
68823         (ISBN): Likewise.
68824         (VERSION, UPDATED): Remove.
68825         (version.texi): Include.
68826
68827 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68828
68829         * sysdeps/posix/spawni.c: Include <signal.h>.
68830         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68831         * sysdeps/pthread/aio_fsync.c: Likewise.
68832
68833 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68834
68835         * conform/Makefile (tests): Run only when not cross-compiling and
68836         when fast-check is not defined.
68837
68838         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68839         * conform/data/limits.h-data: Fixes for POSIX2008.
68840         * conform/run-conformtest.sh: Run all tests.
68841         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68842         headers.
68843         * include/bits/dlfcn.h: Likewise.
68844         * include/langinfo.h: Likewise.
68845         * include/monetary.h: Likewise.
68846         * include/sys/poll.h: Likewise.
68847
68848         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68849         for __USE_GNU.
68850         * posix/spawn.h: Define __need_sigset_t.
68851         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68852         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68853         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68854         to get sigevent_t only.
68855         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68856         only for __USE_GNU.
68857         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68858         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68859         process_vm_writev only for __USE_GNU.
68860         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68861
68862         * conform/Makefile: For now ignore errors from run-conformtest.
68863         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68864         POSIX to avoid namespace pollution.  Don't prepend headers.
68865         * conform/data/aio.h-data: Fixes for POSIX testing.
68866         * conform/data/fcntl.h-data: Likewise.
68867         * conform/data/glob.h-data: Likewise.
68868         * conform/data/grp.h-data: Likewise.
68869         * conform/data/pthread.h-data: Likewise.
68870         * conform/data/pwd.h-data: Likewise.
68871         * conform/data/signal.h-data: Likewise.
68872         * conform/data/spawn.h-data: Likewise.
68873         * conform/data/stdio.h-data: Likewise.
68874         * conform/data/stdlib.h-data: Likewise.
68875         * conform/data/stropts.h-data: Likewise.
68876         * conform/data/sys/mman.h-data: Likewise.
68877         * conform/data/sys/stat.h-data: Likewise.
68878         * conform/data/sys/types.h-data: Likewise.
68879         * conform/data/sys/wait.h-data: Likewise.
68880         * conform/data/time.h-data: Likewise.
68881         * conform/data/unistd.h-data: Likewise.
68882         * conform/data/utime.h-data: Likewise.
68883
68884         * io/sys/stat.h: fchmod was always in POSIX.
68885         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68886         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68887         * rt/aio.h: Define __need_timespec before including <time.h>.
68888         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68889         struct.  Add forward declaration of pthread_attr_t and use it in
68890         sigevent.
68891         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68892         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68893         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68894         always remove CLK_TCK definition.
68895
68896 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68897
68898         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68899
68900 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68901
68902         * conform/run-conformtest.sh: New file.
68903         * conform/Makefile: Run run-conformtest for tests.
68904         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68905         support.
68906
68907         * conform/data/uchar.h-data: New file.
68908         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68909         * conform/data/arpa/inet.h-data: Likewise.
68910         * conform/data/assert.h-data: Likewise.
68911         * conform/data/complex.h-data: Likewise.
68912         * conform/data/cpio.h-data: Likewise.
68913         * conform/data/ctype.h-data: Likewise.
68914         * conform/data/dirent.h-data: Likewise.
68915         * conform/data/dlfcn.h-data: Likewise.
68916         * conform/data/errno.h-data: Likewise.
68917         * conform/data/fcntl.h-data: Likewise.
68918         * conform/data/float.h-data: Likewise.
68919         * conform/data/fmtmsg.h-data: Likewise.
68920         * conform/data/fnmatch.h-data: Likewise.
68921         * conform/data/ftw.h-data: Likewise.
68922         * conform/data/glob.h-data: Likewise.
68923         * conform/data/grp.h-data: Likewise.
68924         * conform/data/iconv.h-data: Likewise.
68925         * conform/data/inttypes.h-data: Likewise.
68926         * conform/data/langinfo.h-data: Likewise.
68927         * conform/data/libgen.h-data: Likewise.
68928         * conform/data/limits.h-data: Likewise.
68929         * conform/data/locale.h-data: Likewise.
68930         * conform/data/math.h-data: Likewise.
68931         * conform/data/monetary.h-data: Likewise.
68932         * conform/data/mqueue.h-data: Likewise.
68933         * conform/data/ndbm.h-data: Likewise.
68934         * conform/data/net/if.h-data: Likewise.
68935         * conform/data/netdb.h-data: Likewise.
68936         * conform/data/netinet/in.h-data: Likewise.
68937         * conform/data/nl_types.h-data: Likewise.
68938         * conform/data/poll.h-data: Likewise.
68939         * conform/data/pthread.h-data: Likewise.
68940         * conform/data/pwd.h-data: Likewise.
68941         * conform/data/regex.h-data: Likewise.
68942         * conform/data/sched.h-data: Likewise.
68943         * conform/data/search.h-data: Likewise.
68944         * conform/data/semaphore.h-data: Likewise.
68945         * conform/data/setjmp.h-data: Likewise.
68946         * conform/data/signal.h-data: Likewise.
68947         * conform/data/spawn.h-data: Likewise.
68948         * conform/data/stdarg.h-data: Likewise.
68949         * conform/data/stdio.h-data: Likewise.
68950         * conform/data/stdlib.h-data: Likewise.
68951         * conform/data/string.h-data: Likewise.
68952         * conform/data/strings.h-data: Likewise.
68953         * conform/data/stropts.h-data: Likewise.
68954         * conform/data/sys/ipc.h-data: Likewise.
68955         * conform/data/sys/mman.h-data: Likewise.
68956         * conform/data/sys/msg.h-data: Likewise.
68957         * conform/data/sys/resource.h-data: Likewise.
68958         * conform/data/sys/select.h-data: Likewise.
68959         * conform/data/sys/sem.h-data: Likewise.
68960         * conform/data/sys/shm.h-data: Likewise.
68961         * conform/data/sys/socket.h-data: Likewise.
68962         * conform/data/sys/stat.h-data: Likewise.
68963         * conform/data/sys/statvfs.h-data: Likewise.
68964         * conform/data/sys/time.h-data: Likewise.
68965         * conform/data/sys/timeb.h-data: Likewise.
68966         * conform/data/sys/times.h-data: Likewise.
68967         * conform/data/sys/types.h-data: Likewise.
68968         * conform/data/sys/uio.h-data: Likewise.
68969         * conform/data/sys/un.h-data: Likewise.
68970         * conform/data/sys/utsname.h-data: Likewise.
68971         * conform/data/sys/wait.h-data: Likewise.
68972         * conform/data/syslog.h-data: Likewise.
68973         * conform/data/tar.h-data: Likewise.
68974         * conform/data/termios.h-data: Likewise.
68975         * conform/data/utime.h-data: Likewise.
68976         * conform/data/utmpx.h-data: Likewise.
68977         * conform/data/varargs.h-data: Likewise.
68978         * conform/data/wchar.h-data: Likewise.
68979         * conform/data/wctype.h-data: Likewise.
68980         * conform/data/wordexp.h-data: Likewise.
68981
68982         * include/stropts.h: New file.
68983         * include/uchar.h: New file.
68984         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68985         * include/assert.h: Likewise.
68986         * include/ctype.h: Likewise.
68987         * include/dirent.h: Likewise.
68988         * include/dlfcn.h: Likewise.
68989         * include/fcntl.h: Likewise.
68990         * include/fnmatch.h: Likewise.
68991         * include/glob.h: Likewise.
68992         * include/grp.h: Likewise.
68993         * include/libio.h: Likewise.
68994         * include/locale.h: Likewise.
68995         * include/math.h: Likewise.
68996         * include/net/if.h: Likewise.
68997         * include/netdb.h: Likewise.
68998         * include/netinet/in.h: Likewise.
68999         * include/pthread.h: Likewise.
69000         * include/pwd.h: Likewise.
69001         * include/regex.h: Likewise.
69002         * include/sched.h: Likewise.
69003         * include/search.h: Likewise.
69004         * include/setjmp.h: Likewise.
69005         * include/signal.h: Likewise.
69006         * include/stdio.h: Likewise.
69007         * include/stdlib.h: Likewise.
69008         * include/string.h: Likewise.
69009         * include/sys/cdefs.h: Likewise.
69010         * include/sys/mman.h: Likewise.
69011         * include/sys/msg.h: Likewise.
69012         * include/sys/resource.h: Likewise.
69013         * include/sys/select.h: Likewise.
69014         * include/sys/socket.h: Likewise.
69015         * include/sys/stat.h: Likewise.
69016         * include/sys/statvfs.h: Likewise.
69017         * include/sys/time.h: Likewise.
69018         * include/sys/times.h: Likewise.
69019         * include/sys/uio.h: Likewise.
69020         * include/sys/utsname.h: Likewise.
69021         * include/sys/wait.h: Likewise.
69022         * include/termios.h: Likewise.
69023         * include/time.h: Likewise.
69024         * include/ulimit.h: Likewise.
69025         * include/unistd.h: Likewise.
69026         * include/utime.h: Likewise.
69027         * include/wchar.h: Likewise.
69028         * include/wctype.h: Likewise.
69029         * include/wordexp.h: Likewise.
69030
69031         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
69032
69033         * time/time.h: TIME_UTC must be a macro.
69034         Make timespec_get available for ISO C11 only as well.
69035
69036 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
69037
69038         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
69039         Reported by Peng Haitao <penght@cn.fujitsu.com>.
69040
69041 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69042
69043         * configure.in: Use -o not -a in test for unsupported multi-arch.
69044
69045 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69046
69047         * manual/texinfo.tex: Update to version 2012-01-19.16.
69048
69049 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69050
69051         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
69052
69053 2012-02-24  Roland McGrath  <roland@hack.frob.com>
69054
69055         [BZ #13738]
69056         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
69057         * manual/fdl-1.3.texi: New file.
69058         * manual/fdl-1.1.texi: File removed.
69059
69060         [BZ #13738]
69061         * manual/libc.texinfo (FDL_VERSION): New @set.
69062         Use it for mention of FDL in cover text.
69063         (Documentation License): Use it in @include file name.
69064
69065 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69066             Roland McGrath  <roland@hack.frob.com>
69067
69068         [BZ #5461]
69069         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
69070         (not LONG_LONG_MAX and LONG_LONG_MIN.
69071         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
69072         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
69073         name.
69074         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
69075
69076 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69077
69078         [BZ #2547]
69079         [BZ #11365]
69080         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
69081         manipulate bits before adding and subtracting TWO23[sx].
69082         * math/libm-test.inc (nearbyint_test): Add more tests.
69083
69084 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69085
69086         [BZ #2548]
69087         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
69088         bits before adding and subtracting TWO23[sx].
69089         * math/libm-test.inc (rint_test): Add more tests.
69090         (rint_test_tonearest): Likewise.
69091         (rint_test_towardzero): Likewise.
69092         (rint_test_downward): Likewise.
69093         (rint_test_upward: Likewise.
69094
69095 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69096
69097         [BZ #10110]
69098         * include/stdc-predef.h: New file.  Extracted from features.h.
69099         * include/features.h: Include stdc-predef.h.
69100         * Makefile (headers): Add stdc-predef.h.
69101         * CONFORMANCE (Compiler limitations): Update.
69102
69103 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69104
69105         * manual/libc.texinfo (VERSION, UPDATED): Revert.
69106
69107 2012-02-21  David S. Miller  <davem@davemloft.net>
69108
69109         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
69110         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69111
69112 2012-02-20  David S. Miller  <davem@davemloft.net>
69113
69114         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
69115         using a normal save/restore sequence, rather than allocating a
69116         dummy stack frame just to store a frame pointer and restore.
69117         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69118
69119 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69120
69121         * manual/install.texi: Fix stray word in line-wrapped comment.
69122
69123 2012-02-20  David S. Miller  <davem@davemloft.net>
69124
69125         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
69126         both binutils and gcc support GOTDATA.
69127
69128         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
69129         "rd %pc" in the PIC register setup sequences.
69130
69131         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
69132         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
69133         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
69134         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
69135         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
69136         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
69137         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
69138         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69139         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
69140         (SYSCALL_ERROR_HANDLER): Likewise.
69141         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
69142         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
69143         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
69144         (SYSCALL_ERROR_HANDLER): Likewise.
69145
69146         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
69147         (HAVE_GCC_GOTDATA): New.
69148         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
69149         relocation support in both binutils and gcc.
69150         * sysdeps/sparc/elf/configure: Regenerate.
69151
69152         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
69153         * sysdeps/sparc/sparc32/elf/configure: Delete.
69154         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
69155         * sysdeps/sparc/sparc64/elf/configure: Delete.
69156         * sysdeps/sparc/elf/configure.in: New file.
69157         * sysdeps/sparc/elf/configure: Generate.
69158
69159         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
69160         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
69161         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
69162         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
69163         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
69164
69165 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69166
69167         * manual/install.texi: Do not mention specific glibc version
69168         numbers.
69169         * manual/libc.texinfo (VERSION, UPDATED): Update.
69170         (@copying): Use @copyright{} and range of years.
69171
69172 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69173
69174         [BZ #13695]
69175         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
69176         [crti.S not in sysdirs] (generated): Do not append.
69177         [crti.S not in sysdirs] (omit-deps): Likewise.
69178         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
69179         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
69180         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
69181         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
69182         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
69183         Likewise.
69184         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
69185         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
69186         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
69187         * csu/defs.awk: Remove file.
69188         * sysdeps/generic/initfini.c: Likewise.
69189         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
69190         variable.
69191         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
69192         Likewise.
69193
69194 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69195
69196         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
69197         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
69198         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
69199         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
69200         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69201         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
69202         <bits/epoll.h>.
69203         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
69204         (__EPOLL_PACKED): Define to empty if not defined by
69205         <bits/epoll.h>.
69206         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
69207         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69208         bits/epoll.h.
69209
69210 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69211
69212         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
69213         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
69214         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
69215         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
69216         <bits/timerfd.h>.
69217         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
69218         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69219         bits/timerfd.h.
69220
69221 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69222
69223         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
69224         in C locale.
69225         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
69226         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
69227         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
69228         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69229
69230 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
69231
69232         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69233         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69234
69235 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
69236
69237         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
69238         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
69239         defined.
69240         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
69241         Likewise.
69242         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
69243         entry for 2.16.
69244
69245 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
69246
69247         * math/w_acos.c: Use non-signaling floating-point comparisons.
69248         * math/w_acosf.c: Likewise.
69249         * math/w_acosh.c: Likewise.
69250         * math/w_acoshf.c: Likewise.
69251         * math/w_acoshl.c: Likewise.
69252         * math/w_acosl.c: Likewise.
69253         * math/w_asin.c: Likewise.
69254         * math/w_asinf.c: Likewise.
69255         * math/w_asinl.c: Likewise.
69256         * math/w_atanh.c: Likewise.
69257         * math/w_atanhf.c: Likewise.
69258         * math/w_atanhl.c: Likewise.
69259         * math/w_exp2.c: Likewise.
69260         * math/w_exp2f.c: Likewise.
69261         * math/w_exp2l.c: Likewise.
69262         * math/w_j0.c: Likewise.
69263         * math/w_j0f.c: Likewise.
69264         * math/w_j0l.c: Likewise.
69265         * math/w_j1.c: Likewise.
69266         * math/w_j1f.c: Likewise.
69267         * math/w_j1l.c: Likewise.
69268         * math/w_jn.c: Likewise.
69269         * math/w_jnf.c: Likewise.
69270         * math/w_log.c: Likewise.
69271         * math/w_log10.c: Likewise.
69272         * math/w_log10f.c: Likewise.
69273         * math/w_log10l.c: Likewise.
69274         * math/w_log2.c: Likewise.
69275         * math/w_log2f.c: Likewise.
69276         * math/w_log2l.c: Likewise.
69277         * math/w_logf.c: Likewise.
69278         * math/w_logl.c: Likewise.
69279         * math/w_sqrt.c: Likewise.
69280         * math/w_sqrtf.c: Likewise.
69281         * math/w_sqrtl.c: Likewise.
69282         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
69283         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
69284         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
69285         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
69286         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
69287
69288 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69289
69290         [BZ #9739]
69291         * manual/string.texi (strnlen): Use correct parameter name in
69292         equivalent expression.
69293
69294 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69295
69296         [BZ #11174]
69297         * manual/users.texi (seteuid): Consistently use neweuid for
69298         argument name.
69299
69300 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69301
69302         [BZ #13704]
69303         * manual/nss.texi (Services in the NSS configuration): Correct
69304         list of services in example configuration file.
69305
69306 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
69307
69308         [BZ #11322]
69309         * manual/arith.texi: Remove statements about negative zero
69310         behaving identically to zero.
69311
69312 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69313
69314         [BZ #5993]
69315         * manual/install.texi: Do not document upgrading from libc5.
69316
69317 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69318
69319         [BZ #4596]
69320         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
69321
69322 2012-02-18  David S. Miller  <davem@davemloft.net>
69323
69324         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
69325         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
69326         %o7 across the call.
69327         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
69328         instead.
69329         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
69330         SETUP_PIC_REG_LEAF.
69331         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
69332         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
69333         * sysdeps/sparc/crtn.S: Likewise.
69334
69335 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
69336
69337         * aout/Makefile: Remove.
69338
69339 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
69340
69341         [BZ #13058]
69342         * manual/examples/argp-ex1.c (main): Format definition in GNU
69343         style.
69344         * manual/examples/argp-ex2.c (main): Likewise.
69345         * manual/examples/argp-ex3.c (main): Likewise.
69346         * manual/examples/argp-ex4.c (main): Likewise.
69347         * manual/examples/longopt.c (main): Use new-style prototype
69348         definition.
69349         * manual/examples/strncat.c (main): Specify return type and use
69350         (void) for arguments.
69351         * manual/examples/subopt.c (main): Use char **argv argument.
69352
69353 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69354
69355         [BZ #5077]
69356         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
69357         rounding modes.
69358
69359 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
69360
69361         [BZ #6907]
69362         * manual/string.texi (strchr): Change when strchrnul is
69363         recommended.
69364
69365 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
69366
69367         [BZ #174]
69368         * manual/locale.texi (setlocale): Document LOCPATH.
69369
69370 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69371
69372         [BZ #10210]
69373         * manual/process.texi (execle): Move @dots{} before last argument.
69374
69375 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
69376
69377         [BZ #12047]
69378         * manual/charset.texi (Generic Charset Conversion): Fix typo
69379         (LC_TYPE -> LC_CTYPE).
69380
69381 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
69382
69383         [BZ #5805]
69384         * manual/arith.texi (scalbn): Use @var{} on parameter names.
69385         (scalbnf): Likewise.
69386         (scalbnl): Likewise.
69387         (scalbln): Likewise.
69388         (scalblnf): Likewise.
69389         (scalblnl): Likewise.
69390         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
69391         (vwarnx): Likewise.
69392         (verr): Likewise.
69393         (verrx): Likewise.
69394         * manual/filesys.texi (telldir): Use braces around return type.
69395         * manual/llio.texi (mmap): Add space after comma.
69396         (mmap64): Likewise.
69397         * manual/math.texi (jn): Use @var{} on parameter names.
69398         (jnf): Likewise.
69399         (jnl): Likewise.
69400         (yn): Likewise.
69401         (ynf): Likewise.
69402         (ynl): Likewise.
69403         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
69404         line.
69405         * manual/resource.texi (ulimit): Use @dots{} instead of literal
69406         "...".
69407         (sched_get_priority_min): Remove semicolon on @deftypefun line.
69408         (sched_get_priority_max): Likewise.
69409         * manual/signal.texi (sigvec): Add space after comma.
69410         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
69411         names.
69412         (if_indextoname): Likewise.
69413         (if_freenameindex): Likewise.
69414         (sendto): Use ',' instead of '.' in prototype.
69415         * manual/startup.texi (syscall): Use @dots{} instead of literal
69416         "...".
69417         * manual/stdio.texi (__fpending): Separate initial words of
69418         paragraph from @deftypefun line.
69419         * manual/syslog.texi (syslog): Use @dots{} instead of literal
69420         "...".
69421         (vsyslog): Use @var{} on parameter names.
69422         * manual/terminal.texi (stty): Use @var{} on parameter names.
69423         * manual/users.texi (getutmp): Use @var{} on parameter names.
69424         (getutmpx): Likewise.
69425
69426 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69427
69428         [BZ #6884]
69429         * manual/stdio.texi (fopen): Fix typos in description of
69430         ",ccs=STRING".
69431
69432 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
69433
69434         [BZ #4026]
69435         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
69436         get clock_id definition.
69437
69438 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
69439
69440         [BZ #4822]
69441         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
69442         (madvise): Cast every argument to void on its own.
69443
69444 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69445
69446         [BZ #9902]
69447         * manual/startup.texi (Exit Status): Fix typo.
69448
69449 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69450
69451         [BZ #10140]
69452         * manual/examples/argp-ex1.c: Include <stdlib.h>.
69453         * manual/examples/argp-ex2.c: Likewise.
69454         * manual/examples/argp-ex3.c: Likewise.
69455
69456 2012-02-16  Richard Henderson  <rth@redhat.com>
69457
69458         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
69459         * sysdeps/s390/s390-32/initfini.c: Remove.
69460         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
69461         * sysdeps/s390/s390-64/initfini.c: Remove.
69462
69463 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
69464
69465         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
69466         compiler output for sysdeps/generic/initfini.c.
69467         * sysdeps/sh/elf/initfini.c: Remove file.
69468
69469 2012-02-16  David S. Miller  <davem@davemloft.net>
69470
69471         [BZ #11494]
69472         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
69473
69474         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
69475         * sysdeps/sparc/crti.S: New file.
69476         * sysdeps/sparc/crtn.S: New file.
69477         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
69478         * sysdeps/sparc/sparc64/Makefile: Likewise.
69479
69480 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
69481
69482         [BZ #3335]
69483         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
69484
69485 2012-02-15  Roland McGrath  <roland@hack.frob.com>
69486
69487         [BZ #4822]
69488         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
69489
69490         * mach/devstream.c (cookie_io_functions_t): Macro removed.
69491         (write, read, close): Likewise.
69492         Patch by Aurelien Jarno <aurelien@aurel32.net>.
69493
69494 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
69495
69496         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
69497         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
69498         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
69499         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
69500         <bits/signalfd.h>.
69501         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
69502         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69503         bits/signalfd.h.
69504
69505 2012-02-14  Marek Polacek  <polacek@redhat.com>
69506
69507         * sysdeps/x86_64/crti.S: New file.
69508         * sysdeps/x86_64/crtn.S: New file.
69509         * sysdeps/x86_64/elf/initfini.c: Remove file.
69510
69511 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69512
69513         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
69514         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
69515         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
69516         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
69517         <bits/inotify.h>.
69518         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
69519         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69520         bits/inotify.h.
69521
69522 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69523
69524         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
69525         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
69526         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
69527         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
69528         <bits/eventfd.h>.
69529         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
69530         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69531         bits/eventfd.h.
69532
69533 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
69534
69535         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
69536         __feraiseexcept instead of feraiseexcept.
69537
69538         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
69539         nanosleep invocations.
69540         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
69541         strings, and add error checking for a nanosleep invocations.
69542
69543 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
69544
69545         Replace FSF snail mail address with URLs, as per GNU coding standards.
69546         Most of the snail mail addresses were wrong anyway, and omitting
69547         them makes the source code easier to maintain.  Almost all of the
69548         changes are to license notices and to locale LC_IDENTIFICATION
69549         addresses, except for this one:
69550         * manual/libc.texinfo: In "Published by", give the FSF's URL,
69551         not its snail mail address.
69552
69553 2012-02-09  Richard Henderson  <rth@twiddle.net>
69554
69555         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
69556         of kernel-features.h.
69557
69558         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
69559
69560 2012-02-08  Marek Polacek  <polacek@redhat.com>
69561
69562         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
69563         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
69564         * sysdeps/gnu/_G_config.h: Likewise.
69565         * sysdeps/generic/_G_config.h: Likewise.
69566
69567 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
69568
69569         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
69570         tests.
69571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69572
69573         * sysdeps/powerpc/powerpc32/crti.S: New file.
69574         * sysdeps/powerpc/powerpc32/crtn.S: New file.
69575         * sysdeps/powerpc/powerpc64/crti.S: New file.
69576         * sysdeps/powerpc/powerpc64/crtn.S: New file.
69577
69578         * Makeconfig (have-initfini): Don't set.
69579         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
69580         * configure.in (nopic_initfini): Don't substitute.
69581         * config.h.in (HAVE_INITFINI): Don't #undef.
69582         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
69583         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
69584
69585 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
69586
69587         Support crti.S and crtn.S provided directly by architectures.
69588         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
69589         [crti.S in sysdirs] (omit-deps): Likewise.
69590         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
69591         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
69592         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
69593         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
69594         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
69595         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
69596         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
69597         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
69598         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
69599         compiler output for sysdeps/generic/initfini.c.
69600         * sysdeps/i386/elf/Makefile: Remove file.
69601         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
69602
69603 2012-02-07  Marek Polacek  <polacek@redhat.com>
69604
69605         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
69606         * sysdeps/gnu/_G_config.h: Likewise.
69607         * sysdeps/mach/hurd/_G_config.h: Likewise.
69608
69609 2012-02-07  Marek Polacek  <polacek@redhat.com>
69610
69611         * math/Makefile (tests): Add tst-CMPLX2.
69612         * math/tst-CMPLX2.c: New file.
69613
69614 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
69615
69616         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69617
69618         * math/libm-test.inc (jn_test): Add missing L suffix.
69619
69620 2012-02-06  Marek Polacek  <polacek@redhat.com>
69621
69622         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69623         * sysdeps/i386/fpu/e_powf.S: Likewise.
69624         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69625         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69626         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69627         * sysdeps/i386/fpu/e_pow.S: Likewise.
69628         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69629         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69630         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69631         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69632         * sysdeps/i386/fpu/e_log2.S: Likewise.
69633         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69634         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69635         * sysdeps/i386/fpu/e_powl.S: Likewise.
69636         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69637         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69638         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69639         * sysdeps/i386/fpu/e_logl.S: Likewise.
69640         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69641         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69642         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69643         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69644         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69645         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69646         * sysdeps/i386/fpu/e_log.S: Likewise.
69647         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69648         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69649         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69650         * sysdeps/i386/fpu/e_logf.S: Likewise.
69651         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69652         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69653         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69654         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69655         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69656         * sysdeps/i386/fpu/e_log10.S: Likewise.
69657         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69658         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69659         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69660         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69661         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69662         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69663         * sysdeps/i386/asm-syntax.h: Likewise.
69664         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69665         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69666         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69667         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69668         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69669         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69670         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69671         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69672         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69673         * sysdeps/powerpc/sysdep.h: Likewise.
69674         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69675         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69676
69677 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69678
69679         [BZ #411]
69680         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69681
69682 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69683
69684         * sysdeps/i386/sysdep.h: Include <features.h>.
69685         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69686         version.
69687
69688 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69689
69690         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69691         Define.
69692         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69693         LOAD_PIC_REG_STR.
69694
69695 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69696
69697         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69698         (SETUP_PIC_REG): Use GET_PC_THUNK.
69699         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69700         macro.
69701
69702 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69703
69704         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69705         for non-PIC compilation.
69706         (SETUP_PIC_REG): Add .p2align directive.
69707         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69708         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69709         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69710         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69711         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69712         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69713         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69714         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69715         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69716         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69717         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69718         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69719         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69720         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69721         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69722         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69723         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69724         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69725         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69726         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69727         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69728         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69729         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69730         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69731         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69732         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69733         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69734         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69735         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69736         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69737         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69738         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69739         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69740         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69741         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69742         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69743         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69744         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69745         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69746         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69747         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69748
69749 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69750
69751         * math/tst-CMPLX.c: Include <stdio.h>.
69752
69753 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69754
69755         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69756         float.
69757         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69758         * sysdeps/sparc/bits/mathdef.h: Likewise.
69759
69760 2012-01-31  Marek Polacek  <polacek@redhat.com>
69761
69762         * libio/libio.h: Don't define _PARAMS.
69763         * locale/programs/config.h: Don't define PARAMS.
69764         * stdlib/strtol_l.c: Likewise.
69765         (__strtol_l): Remove PARAMS from the prototype.
69766
69767 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69768
69769         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69770         names.  Just use the correct names.  Remove unnecessary wrapper
69771         functions.
69772         * malloc/arena.c: Likewise.
69773         * malloc/hooks.c: Likewise.
69774
69775         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69776         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69777         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69778
69779 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69780
69781         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69782         into tail calls.
69783         (update_get_addr): New function.
69784         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69785         GET_ADDR_MODULE parameter.
69786
69787 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69788
69789         * crypt/cert.c: Remove __STDC__ conditionals.
69790         * crypt/crypt-entry.c: Likewise.
69791         * crypt/crypt_util.c: Likewise.
69792         * libio/filedoalloc.c: Likewise.
69793         * libio/fileops.c: Likewise.
69794         * libio/genops.c: Likewise.
69795         * libio/iofclose.c: Likewise.
69796         * libio/iofdopen.c: Likewise.
69797         * libio/iofopen.c: Likewise.
69798         * libio/iofopen64.c: Likewise.
69799         * libio/iogetdelim.c: Likewise.
69800         * libio/iopopen.c: Likewise.
69801         * libio/obprintf.c: Likewise.
69802         * libio/oldfileops.c: Likewise.
69803         * libio/oldiofclose.c: Likewise.
69804         * libio/oldiofdopen.c: Likewise.
69805         * libio/oldiofopen.c: Likewise.
69806         * libio/oldiopopen.c: Likewise.
69807         * libio/wfiledoalloc.c: Likewise.
69808         * libio/wgenops.c: Likewise.
69809         * locale/programs/xmalloc.c: Likewise.
69810         * misc/syslog.c: Likewise.
69811         * stdio-common/xbug.c: Likewise.
69812         * string/memchr.c: Likewise.
69813         * string/memcmp.c: Likewise.
69814         * string/memrchr.c: Likewise.
69815         * string/rawmemchr.c: Likewise.
69816         * sysdeps/posix/getcwd.c: Likewise.
69817         * time/strftime_l.c: Likewise.
69818
69819 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69820
69821         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69822         * config.make.in (config-cflags-sse2avx): Define.
69823         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69824         Fix typo.
69825
69826 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69827
69828         * scripts/config.guess: Update from upstream config git repository.
69829         * scripts/config.sub: Likewise.
69830
69831 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69832
69833         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69834         (EM_NUM): Update.
69835         (R_TILEPRO_*, R_TILEGX_*): New macros.
69836
69837         * scripts/firstversions.awk: Fix bug in version range handling.
69838
69839         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69840
69841         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69842
69843         * include/sys/epoll.h: New file.
69844         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69845         libc_hidden_def.
69846
69847 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69848
69849         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69850         Avoid unnecessary __WORDSIZE == 64 test.
69851         (fmaxf): Use VEX format if possible.
69852         (fmax): Likewise.
69853         (fminf): Likewise.
69854         (fmin): Likewise.
69855
69856         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69857         * math/math_private.h: Remove libc_fegetround* and
69858         libc_fesetround*.
69859         * sysdeps/i386/configure.in: Check for -msse2avx.
69860         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69861         also if SSE2AVX is defined.
69862         Remove libc_fegetround* and libc_fesetround*.
69863         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69864         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69865         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69866         of HAS_YMM_USABLE.
69867         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69868         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69869         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69870         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69871         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69872
69873         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69874
69875 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69876
69877         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69878         size is not set.
69879         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69880
69881 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69882
69883         [BZ #13618]
69884         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69885         relocation.
69886         * Makeconfig (libm): Define.
69887         * elf/Makefile: Add rules to build and run tst-relsort1.
69888         * elf/tst-relsort1.c: New file.
69889         * elf/tst-relsort1mod1.c: New file.
69890         * elf/tst-relsort1mod2.c: New file.
69891
69892 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69893
69894         * math/s_ldexp.c: Remove __STDC__ conditionals.
69895         * math/s_ldexpf.c: Likewise.
69896         * math/s_ldexpl.c: Likewise.
69897         * math/s_nextafter.c: Likewise.
69898         * math/s_nexttowardf.c: Likewise.
69899         * math/s_significand.c: Likewise.
69900         * math/s_significandf.c: Likewise.
69901         * math/s_significandl.c: Likewise.
69902         * math/w_jnl.c: Likewise.
69903         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69904         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69905         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69906         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69907         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69908         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69909         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69910         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69911         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69912         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69913         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69914         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69915         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69916         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69917         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69918         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69919         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69920         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69921         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69922         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69923         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69924         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69925         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69926         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69927         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69928         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69929         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69930         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69931         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69932         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69933         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69934         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69935         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69936         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69937         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69938         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69939         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69940         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69941         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69942         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69943         * sysdeps/ieee754/k_standard.c: Likewise.
69944         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69945         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69946         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69947         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69948         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69949         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69950         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69951         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69952         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69953         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69954         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69955         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69956         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69957         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69958         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69959         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69960         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69961         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69962         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69963         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69964         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69965         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69966         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69967         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69968         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69969         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69970         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69971         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69972         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69973         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69974         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69975         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69976         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69977         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69978         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69979         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69980         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69981         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69982         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69983         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69984         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69985         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69986         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69987         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69988         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69989         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69990         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69991         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69992         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69993         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69994         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69995         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69996         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69997         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69998         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69999         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
70000         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
70001         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
70002         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
70003         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
70004         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
70005         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
70006         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
70007         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
70008         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
70009         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
70010         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
70011         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
70012         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
70013         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
70014         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
70015         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
70016         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
70017         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
70018         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
70019         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
70020         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
70021         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
70022         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
70023         * sysdeps/ieee754/s_matherr.c: Likewise.
70024         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
70025         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
70026         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
70027         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
70028
70029 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
70030
70031         * crypt/md5.h: Remove __STDC__ conditionals.
70032         * libio/libioP.h: Likewise.
70033         * locale/programs/config.h: Likewise.
70034         * sysdeps/generic/sysdep.h: Likewise.
70035         * sysdeps/i386/asm-syntax.h: Likewise.
70036         * sysdeps/s390/asm-syntax.h: Likewise.
70037         * sysdeps/unix/sysdep.h: Likewise.
70038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
70039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
70040
70041 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
70042
70043         * libio/libio.h: Remove __STDC__ conditionals.
70044         * malloc/obstack.h: Likewise.
70045         * math/complex.h: Likewise.
70046         * math/math.h: Likewise.
70047         * sysdeps/generic/_G_config.h: Likewise.
70048         * sysdeps/gnu/_G_config.h: Likewise.
70049         * sysdeps/mach/hurd/_G_config.h: Likewise.
70050         * sysdeps/powerpc/bits/mathdef.h: Likewise.
70051         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
70052         * sysdeps/sparc/bits/mathdef.h: Likewise.
70053
70054 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
70055
70056         [BZ #13583]
70057         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
70058         Clean up HAS_* macros.
70059         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
70060         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
70061         possible.
70062         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
70063         HAS_AVX.
70064         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70065         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70066         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70067         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70068         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70069
70070 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
70071
70072         * elf/tst-unique3.cc (gets): Remove declaration.
70073         * elf/tst-unique3lib.cc (gets): Likewise.
70074         * elf/tst-unique3lib2.cc (gets): Likewise.
70075         * elf/tst-unique4.cc (gets): Likewise.
70076
70077 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
70078
70079         * include/stdio.h: Add C++ protection.  Add gets declarations and
70080         definitions.
70081         * debug/tst-chk1.c: Don't declare gets here.
70082         * stdio-common/tst-gets.c: Likewise.
70083
70084 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70085
70086         * posix/glob: Remove directory.
70087
70088 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70089
70090         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
70091
70092 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
70093
70094         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
70095         of the non-standard EPFNOSUPPORT.
70096
70097 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70098
70099         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
70100         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
70101         ANYWHERE set to 1 only on KERN_NO_SPACE error.
70102
70103 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
70104
70105         * wcsmbs/uchar.h: Test __STDC_VERSION__.
70106
70107 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
70108
70109         * nscd/aicache.c (addhstaiX): Do not cache negative results of
70110         transient errors.
70111         * nscd/grpcache.c (cache_addgr): Likewise.
70112         * nscd/hstcache.c (cache_addhst): Likewise.
70113         * nscd/initgrcache.c (addinitgroupsX): Likewise.
70114         * nscd/pwdcache.c (cache_addpw): Likewise.
70115         * nscd/servicescache.c (cache_addserv): Likewise.
70116
70117 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
70118
70119         * malloc/malloc.c: Various cleanups.
70120         * malloc/hooks.c: Likewise.
70121
70122         * stdlib/Makefile (tests): Add bug-fmtmsg1.
70123         * stdlib/bug-fmtmsg1.c: New file.
70124
70125         * stdlib/fmtmsg.c (init): Add missing unlock.
70126         Patch by Peng Haitao <penght@cn.fujitsu.com>.
70127
70128 2012-01-12  Marek Polacek  <polacek@redhat.com>
70129
70130         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
70131         and _GNU_SOURCE.
70132
70133 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
70134
70135         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
70136         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
70137         macro to ensure uniqueness of label name.
70138         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70139         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70140
70141 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
70142
70143         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
70144
70145         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
70146         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
70147         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
70148         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
70149
70150 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
70151
70152         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
70153
70154         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
70155         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
70156         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
70157
70158         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
70159
70160         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
70161         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
70162         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
70163         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
70164
70165         * math/bits/math-finite.h: Add ldexp support.
70166
70167 2012-01-10  Marek Polacek  <polacek@redhat.com>
70168
70169         * locale/programs/localedef.h (show_archive_content): Add noreturn
70170         attribute.
70171
70172 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
70173
70174         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
70175
70176 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70177
70178         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
70179
70180         * io/Makefile (headers): Add bits/poll2.h.
70181
70182 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
70183
70184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
70185         typo #include statement.
70186
70187 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70188
70189         * include/sys/cdefs.h: Define __attribute_alloc_size.
70190         * catgets/gencat.c: Add alloc_size attribute and apply consistently
70191         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
70192         * elf/pldd.c: Likewise.
70193         * iconv/iconv_charmap.c: Likewise.
70194         * iconv/iconvconfig.c: Likewise.
70195         * iconv/strtab.c: Likewise.
70196         * locale/programs/locale.c: Likewise.
70197         * locale/programs/localedef.h: Likewise.
70198         * locale/programs/simple-hash.c: Likewise.
70199         * nscd/nscd.h: Likewise.
70200         * nss/makedb.c: Likewise.
70201         * sysdeps/generic/ldconfig.h: Likewise.
70202         * locale/programs/localedef.c: Remove xmalloc prototype.
70203         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
70204
70205 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
70206
70207         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
70208         appropriate.
70209
70210 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70211
70212         * math/Makefile (tests): Add tst-CMPLX.
70213         * math/tst-CMPLX.c: New file.
70214
70215         * math/complex.h (CMPLXL): Fix typo.
70216
70217         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
70218         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
70219         GLIBC_2.16.
70220         * debug/tst-chk1.c: Add poll and ppoll tests.
70221         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
70222         * include/sys/poll.h: Add hidden proto for ppoll.
70223         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
70224         * sysdeps/mach/hurd/ppoll.c: Likewise.
70225         * io/ppoll.c: Likewise.
70226         * debug/poll_chk.c: New file.
70227         * debug/ppoll_chk.c: New file.
70228         * include/bits/poll2.h: New file.
70229         * io/bits/poll2.h: New file.
70230
70231         [BZ #1350]
70232         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
70233
70234         * configure.in: static is always set to yes.  Remove.
70235         * config.make.in: Don't set build-static.
70236         * Makeconfig: Remove use of build-static.
70237         * dlfcn/Makefile: Likewise.
70238         * elf/Makefile: Likewise.
70239         * math/Makefile: Likewise.
70240         * misc/Makefile: Likewise.
70241         * nptl/Makefile: Likewise.
70242         * sysdeps/mach/hurd/Makefile: Likewise.
70243
70244         * configure.in: PWD_P is not used anymore.
70245         * config.make.in: Remove PWD_P entry.
70246
70247         * configure.in: Remove last remnants of RANLIB.
70248         No need to check for signed size_t anymore.
70249         Don't set libc_commonpagesize and libc_relro_required here for Alpha
70250         and IA-64.
70251         Remove __builtin_expect test because we require at least gcc 3.4.
70252         * aclocal.m4: Likewise.
70253
70254         * wcsmbs/mbrtoc16.c: Implement using towc function.
70255         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
70256         * wcsmbs/wcsmbsload.c: Likewise.
70257         * iconv/gconv_simple.c: Likewise.
70258         * iconv/gconv_int.h: Likewise.
70259         * iconv/gconv_builtin.h: Likewise.
70260         * iconv/iconv_prog.c: Remove CHAR16 handling.
70261
70262         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
70263
70264         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
70265
70266         * configure.in: Remove --with-elf and --enable-bounded options.
70267         Dont set base_machine for ia64.  More non-ELF conditions removed.
70268         Remove testing and setting of leading underscore information.
70269         * config.make.in (build-bounded): Set to no.
70270         * config.h.in: Remove NO_UNDERSCORES entry.
70271         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
70272         them.
70273         * csu/start.c: Remove !NO_UNDERSCORE code.
70274         * locale/localeinfo.h: Likewise.
70275         * sysdeps/generic/machine-gmon.h: Likewise.
70276         * sysdeps/generic/sysdep.h: Likewise.
70277         * sysdeps/i386/sysdep.h: Likewise.
70278         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70279         * sysdeps/mach/sysdep.h: Likewise.
70280         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70281         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70282         * sysdeps/sh/sysdep.h: Likewise.
70283         * sysdeps/sparc/sparc32/alloca.S: Likewise.
70284         * sysdeps/unix/i386/sysdep.S: Likewise.
70285         * sysdeps/unix/sparc/start.c: Likewise.
70286         * sysdeps/unix/sparc/sysdep.S: Likewise.
70287         * sysdeps/unix/sparc/sysdep.h: Likewise.
70288         * sysdeps/unix/start.c: Likewise.
70289         * sysdeps/unix/x86_64/sysdep.S: Likewise.
70290         * sysdeps/x86_64/sysdep.h: Likewise.
70291
70292 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
70293
70294         [BZ #13553]
70295         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
70296         for non-gcc.
70297         * argp/argp-fmtstream.h: Use const instead __const.
70298         * argp/argp.h: Likewise.
70299         * assert/assert.h: Likewise.
70300         * bits/fenv.h: Likewise.
70301         * bits/sched.h: Likewise.
70302         * bits/sigset.h: Likewise.
70303         * bits/sigthread.h: Likewise.
70304         * catgets/nl_types.h: Likewise.
70305         * conform/data/pthread.h-data: Likewise.
70306         * crypt/crypt-private.h: Likewise.
70307         * crypt/crypt.h: Likewise.
70308         * crypt/crypt_util.c: Likewise.
70309         * ctype/ctype.h: Likewise.
70310         * debug/execinfo.h: Likewise.
70311         * debug/mbsnrtowcs_chk.c: Likewise.
70312         * debug/mbsrtowcs_chk.c: Likewise.
70313         * debug/wcsnrtombs_chk.c: Likewise.
70314         * debug/wcsrtombs_chk.c: Likewise.
70315         * debug/wcstombs_chk.c: Likewise.
70316         * dirent/dirent.h: Likewise.
70317         * dlfcn/dlfcn.h: Likewise.
70318         * elf/neededtest4.c: Likewise.
70319         * grp/grp.h: Likewise.
70320         * gshadow/gshadow.h: Likewise.
70321         * iconv/gconv.h: Likewise.
70322         * iconv/gconv_int.h: Likewise.
70323         * iconv/gconv_simple.c: Likewise.
70324         * iconv/iconv.h: Likewise.
70325         * iconv/loop.c: Likewise.
70326         * iconv/skeleton.c: Likewise.
70327         * include/aio.h: Likewise.
70328         * include/aliases.h: Likewise.
70329         * include/argz.h: Likewise.
70330         * include/arpa/inet.h: Likewise.
70331         * include/assert.h: Likewise.
70332         * include/dirent.h: Likewise.
70333         * include/dlfcn.h: Likewise.
70334         * include/execinfo.h: Likewise.
70335         * include/fcntl.h: Likewise.
70336         * include/fenv.h: Likewise.
70337         * include/glob.h: Likewise.
70338         * include/grp.h: Likewise.
70339         * include/libintl.h: Likewise.
70340         * include/mntent.h: Likewise.
70341         * include/netdb.h: Likewise.
70342         * include/pwd.h: Likewise.
70343         * include/rpc/netdb.h: Likewise.
70344         * include/sched.h: Likewise.
70345         * include/search.h: Likewise.
70346         * include/shadow.h: Likewise.
70347         * include/signal.h: Likewise.
70348         * include/stdio.h: Likewise.
70349         * include/stdlib.h: Likewise.
70350         * include/string.h: Likewise.
70351         * include/sys/socket.h: Likewise.
70352         * include/sys/stat.h: Likewise.
70353         * include/sys/statfs.h: Likewise.
70354         * include/sys/statvfs.h: Likewise.
70355         * include/sys/syslog.h: Likewise.
70356         * include/sys/time.h: Likewise.
70357         * include/sys/uio.h: Likewise.
70358         * include/time.h: Likewise.
70359         * include/unistd.h: Likewise.
70360         * include/utmp.h: Likewise.
70361         * include/wchar.h: Likewise.
70362         * include/wctype.h: Likewise.
70363         * inet/aliases.h: Likewise.
70364         * inet/arpa/inet.h: Likewise.
70365         * inet/netinet/ether.h: Likewise.
70366         * inet/netinet/in.h: Likewise.
70367         * intl/libintl.h: Likewise.
70368         * io/bits/fcntl2.h: Likewise.
70369         * io/fcntl.h: Likewise.
70370         * io/ftw.h: Likewise.
70371         * io/sys/poll.h: Likewise.
70372         * io/sys/stat.h: Likewise.
70373         * io/sys/statfs.h: Likewise.
70374         * io/sys/statvfs.h: Likewise.
70375         * io/utime.h: Likewise.
70376         * libio/bits/stdio.h: Likewise.
70377         * libio/bits/stdio2.h: Likewise.
70378         * libio/libio.h: Likewise.
70379         * libio/libioP.h: Likewise.
70380         * libio/stdio.h: Likewise.
70381         * locale/lc-ctype.c: Likewise.
70382         * locale/locale.h: Likewise.
70383         * login/utmp.h: Likewise.
70384         * malloc/arena.c: Likewise.
70385         * malloc/malloc.c: Likewise.
70386         * malloc/malloc.h: Likewise.
70387         * malloc/mcheck.c: Likewise.
70388         * malloc/mtrace.c: Likewise.
70389         * math/bits/mathcalls.h: Likewise.
70390         * math/fenv.h: Likewise.
70391         * math/math_private.h: Likewise.
70392         * misc/bits/error.h: Likewise.
70393         * misc/bits/syslog.h: Likewise.
70394         * misc/err.h: Likewise.
70395         * misc/error.h: Likewise.
70396         * misc/fstab.h: Likewise.
70397         * misc/mntent.h: Likewise.
70398         * misc/regexp.h: Likewise.
70399         * misc/search.h: Likewise.
70400         * misc/sgtty.h: Likewise.
70401         * misc/sys/mman.h: Likewise.
70402         * misc/sys/syslog.h: Likewise.
70403         * misc/sys/uio.h: Likewise.
70404         * misc/sys/xattr.h: Likewise.
70405         * misc/ttyent.h: Likewise.
70406         * nis/rpcsvc/ypclnt.h: Likewise.
70407         * nss/nss.h: Likewise.
70408         * posix/bits/unistd.h: Likewise.
70409         * posix/fnmatch.h: Likewise.
70410         * posix/glob.h: Likewise.
70411         * posix/sched.h: Likewise.
70412         * posix/spawn.h: Likewise.
70413         * posix/sys/wait.h: Likewise.
70414         * posix/unistd.h: Likewise.
70415         * posix/wordexp.h: Likewise.
70416         * pwd/pwd.h: Likewise.
70417         * resolv/netdb.h: Likewise.
70418         * resource/sys/resource.h: Likewise.
70419         * rt/aio.h: Likewise.
70420         * rt/bits/mqueue2.h: Likewise.
70421         * rt/mqueue.h: Likewise.
70422         * shadow/shadow.h: Likewise.
70423         * signal/signal.h: Likewise.
70424         * socket/send.c: Likewise.
70425         * socket/sendto.c: Likewise.
70426         * socket/sys/socket.h: Likewise.
70427         * stdio-common/printf.h: Likewise.
70428         * stdlib/bits/stdlib.h: Likewise.
70429         * stdlib/fmtmsg.h: Likewise.
70430         * stdlib/monetary.h: Likewise.
70431         * stdlib/stdlib.h: Likewise.
70432         * stdlib/ucontext.h: Likewise.
70433         * streams/stropts.h: Likewise.
70434         * string/argz.h: Likewise.
70435         * string/bits/string2.h: Likewise.
70436         * string/string.h: Likewise.
70437         * string/strings.h: Likewise.
70438         * sunrpc/rpc/auth.h: Likewise.
70439         * sunrpc/rpc/auth_des.h: Likewise.
70440         * sunrpc/rpc/clnt.h: Likewise.
70441         * sunrpc/rpc/netdb.h: Likewise.
70442         * sunrpc/rpc/pmap_clnt.h: Likewise.
70443         * sunrpc/rpc/xdr.h: Likewise.
70444         * sysdeps/generic/inttypes.h: Likewise.
70445         * sysdeps/generic/net/if.h: Likewise.
70446         * sysdeps/generic/sys/swap.h: Likewise.
70447         * sysdeps/gnu/net/if.h: Likewise.
70448         * sysdeps/gnu/utmpx.h: Likewise.
70449         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
70450         * sysdeps/i386/i486/bits/string.h: Likewise.
70451         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
70452         * sysdeps/s390/bits/string.h: Likewise.
70453         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
70454         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
70455         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
70456         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
70457         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
70458         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
70459         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
70460         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
70461         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
70462         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
70463         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
70464         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
70465         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
70466         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
70467         * sysdeps/unix/sysv/linux/readv.c: Likewise.
70468         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
70469         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
70470         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
70471         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
70472         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
70473         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70474         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
70475         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
70476         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
70477         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
70478         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
70479         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
70480         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70481         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
70482         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
70483         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
70484         * sysvipc/sys/ipc.h: Likewise.
70485         * sysvipc/sys/msg.h: Likewise.
70486         * sysvipc/sys/sem.h: Likewise.
70487         * sysvipc/sys/shm.h: Likewise.
70488         * termios/termios.h: Likewise.
70489         * time/sys/time.h: Likewise.
70490         * time/time.h: Likewise.
70491         * wcsmbs/bits/wchar2.h: Likewise.
70492         * wcsmbs/uchar.h: Likewise.
70493         * wcsmbs/wchar.h: Likewise.
70494         * wctype/wctype.h: Likewise.
70495
70496         [BZ #13551]
70497         * Makeconfig: Remove all but ELF support including AIX support.
70498         * Makerules: Likewise.
70499         * config.h.in: Likewise.
70500         * config.make.in: Likewise.
70501         * configure: Likewise.
70502         * configure.in: Likewise.
70503         * csu/Makefile: Likewise.
70504         * csu/version.c: Likewise.
70505         * debug/Makefile: Likewise.
70506         * dlfcn/Makefile: Likewise.
70507         * elf/Makefile: Likewise.
70508         * extra-lib.mk: Likewise.
70509         * iconv/Makefile: Likewise.
70510         * include/libc-symbols.h: Likewise.
70511         * include/shlib-compat.h: Likewise.
70512         * resolv/Makefile: Likewise.
70513         * resolv/res_libc.c: Likewise.
70514         * rt/Makefile: Likewise.
70515         * sysdeps/i386/asm-syntax.h: Likewise.
70516         * sysdeps/i386/sysdep.h: Likewise.
70517         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70518         * sysdeps/mach/sysdep.h: Likewise.
70519         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70520         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
70521         * sysdeps/s390/asm-syntax.h: Likewise.
70522         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70523         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70524         * sysdeps/sh/sysdep.h: Likewise.
70525         * sysdeps/unix/sparc/sysdep.h: Likewise.
70526         * sysdeps/wordsize-32/divdi3.c: Likewise.
70527         * sysdeps/x86_64/sysdep.h: Likewise.
70528
70529         * argp/Versions: Remove _argp_unlock_xxx.
70530
70531         [BZ #13559]
70532         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
70533         * abilist/libBrokenLocale.abilist: Likewise.
70534         * abilist/libanl.abilist: Likewise.
70535         * abilist/libc.abilist: Likewise.
70536         * abilist/libcrypt.abilist: Likewise.
70537         * abilist/libdl.abilist: Likewise.
70538         * abilist/libm.abilist: Likewise.
70539         * abilist/libnsl.abilist: Likewise.
70540         * abilist/libpthread.abilist: Likewise.
70541         * abilist/libresolv.abilist: Likewise.
70542         * abilist/librt.abilist: Likewise.
70543         * abilist/libthread_db.abilist: Likewise.
70544         * abilist/libutil.abilist: Likewise.
70545         * abilist/libnss_db.abilist: New file.
70546
70547         * scripts/abilist.awk: Add support for indirect functions.
70548
70549         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
70550
70551         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
70552
70553         * shlib-versions: Remove entries for ports architectures.
70554
70555         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
70556         files in ports.
70557         * elf/stackguard-macros.h: Remove support for IA-64.
70558         * elf/tst-auditmod1.c: Likewise.
70559         * sysdeps/generic/ldsodefs.h: Likewise.
70560
70561         * sysdeps/unix/sysv/linux/configure.in: Ports should define
70562         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
70563         configure files.
70564
70565         [BZ #13552]
70566         * configure.in: Remove --enable-omitfp support.
70567         * FAQ.in: Adjust.
70568         * config.make.in: Likewise.
70569         * Makeconfig: Likewise.
70570         * manual/install.texi: Likewise.
70571
70572         In case anyone cares, the IA-64 architecture could move to ports.
70573         * sysdeps/ia64/*: Removed.
70574         * sysdeps/unix/sysv/linux/ia64/*: Removed.
70575         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
70576
70577         [BZ #13555]
70578         * configure.in: Remove entries for unsupported architectures.
70579
70580         [BZ #13533]
70581         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
70582         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
70583         routines.
70584         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
70585         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
70586         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
70587         fall back to using wcrtomb.
70588         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
70589         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
70590         renaming.
70591         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
70592         * wcsmbs/tst-c16c32-1.c: New file.
70593
70594         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
70595         local variable.
70596
70597         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
70598
70599         * elf/tst-unique3.cc: Add explicit declaration of gets.
70600         * elf/tst-unique3lib.cc: Likewise.
70601         * elf/tst-unique3lib2.cc: Likewise.
70602         * elf/tst-unique4.cc: Likewise.
70603
70604         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
70605
70606 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
70607
70608         [BZ #13566]
70609         * assert/assert.h (static_assert): Don't define for C++.
70610         * libio/stdio.h (gets): Do declare for C++ <= C++11.
70611         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
70612
70613 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
70614
70615         * iconv/loop.c (single loop): Fix assertion in storing of
70616         remaining bytes.
70617
70618         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
70619
70620 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
70621
70622         * posix/getconf.c: Update copyright year.
70623         * nss/getent.c: Likewise.
70624         * nss/makedb.c: Likewise.
70625         * iconv/iconvconfig.c: Likewise.
70626         * iconv/iconv_prog.c: Likewise.
70627         * elf/ldconfig.c: Likewise.
70628         * elf/pldd.c: Likewise.
70629         * elf/sotruss.ksh: Likewise.
70630         * catgets/gencat.c: Likewise.
70631         * csu/version.c: Likewise.
70632         * elf/ldd.bash.in: Likewise.
70633         * elf/sprof.c (print_version): Likewise.
70634         * locale/programs/locale.c: Likewise.
70635         * locale/programs/localedef.c: Likewise.
70636         * login/programs/pt_chown.c: Likewise.
70637         * nscd/nscd.c (print_version): Likewise.
70638         * debug/xtrace.sh: Likewise.
70639         * malloc/memusage.sh: Likewise.
70640         * malloc/mtrace.pl: Likewise.
70641         * debug/catchsegv.sh: Likewise.
70642
70643 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70644
70645         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70646         pure attribute.
70647
70648 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70649
70650         [BZ #13533]
70651         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70652         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70653         transformations.
70654         * iconv/gconv_int.h: Likewise.
70655         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70656         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70657         from libc for GLIBC_2.16.
70658         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70659         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70660         * wcsmbs/uchar.h: Really define mbstate_t.
70661         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70662         * wcsmbs/c16rtomb.c: New file.
70663         * wcsmbs/mbrtoc16.c: New file.
70664         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70665         for C/POSIX locale.
70666         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70667         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70668
70669         * wcsmbs/wchar.h: Add missing __restrict.
70670
70671 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70672
70673         [BZ #13532]
70674         * time/Makefile (routines): Add timespec_get.
70675         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70676         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70677         timespec for ISO C11.
70678         * time/timespec_get.c: New file.
70679         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70680         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70681
70682         [BZ #13531]
70683         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70684         * stdlib/stdlib.h: Declare aligned_alloc.
70685         * Versions.def: Add GLIBC_2.16 for libc.
70686         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70687
70688         [BZ 13527]
70689         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70690         ISO C11.
70691
70692         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70693         code.
70694
70695         [BZ #13528]
70696         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70697
70698         [BZ #13529]
70699         * assert/assert.h (static_assert): Define.
70700
70701         * version.h: Update for 2.16 development version.
70702
70703         [BZ #13526]
70704         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70705         _ISOC11_SOURCE.
70706
70707         * version.h (RELEASE): Bump for 2.15 release.
70708         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70709
70710         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70711         Patch by Marek Polacek <mpolacek@redhat.com>.
70712
70713         * bits/byteswap.h: Protect long long constants with __extension__.
70714         * sysdeps/i386/bits/byteswap.h: Likewise.
70715         * sysdeps/ia64/bits/byteswap.h: Likewise.
70716         * sysdeps/s390/bits/byteswap.h: Likewise.
70717         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70718
70719 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70720
70721         [BZ #13540]
70722         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70723         destination buffer.
70724         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70725
70726 2011-12-23  Marek Polacek  <polacek@redhat.com>
70727
70728         * elf/dl-addr.c (determine_info): Add inline keyword.
70729         * elf/tst-auditmod4b.c (check_avx): Likewise.
70730         * elf/tst-auditmod6b.c (check_avx): Likewise.
70731         * elf/tst-auditmod6c.c (check_avx): Likewise.
70732         * elf/tst-auditmod7b.c (check_avx): Likewise.
70733
70734 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70735
70736         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70737         !__SSE_MATH__.
70738
70739 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70740
70741         [BZ #13540]
70742         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70743         processing for last bytes.
70744
70745 2011-08-06  Bruno Haible  <bruno@clisp.org>
70746
70747         [BZ #13061]
70748         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70749         U+0385, not to U+1FEE.
70750
70751         [BZ #13062]
70752         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70753         entry for U+00A5 U+0301.
70754
70755 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70756
70757         [BZ #13166]
70758         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70759         buffer for the output is too small.
70760
70761         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70762         optimization.
70763
70764         [BZ #13185]
70765         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70766         SSE flags if possible.
70767
70768 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70769
70770         [BZ #13540]
70771         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70772         processing for last bytes.
70773
70774 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70775
70776         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70777         (syscall-list-default-options, syscall-list-default-condition)
70778         (syscall-list-includes): Define.
70779         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70780         list of ABIs and options and #if conditions for each ABI.  Do not
70781         handle common syscalls between ABIs specially.
70782         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70783         Remove.
70784         (syscall-list-variants, syscall-list-32bit-options)
70785         (syscall-list-32bit-condition, syscall-list-64bit-options)
70786         (syscall-list-64bit-condition): Define.
70787         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70788         (syscall-list-variants, syscall-list-32bit-options)
70789         (syscall-list-32bit-condition, syscall-list-64bit-options)
70790         (syscall-list-64bit-condition): Define.
70791         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70792         Remove.
70793         (syscall-list-variants, syscall-list-32bit-options)
70794         (syscall-list-32bit-condition, syscall-list-64bit-options)
70795         (syscall-list-64bit-condition): Define.
70796         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70797         Remove.
70798         (syscall-list-variants, syscall-list-32bit-options)
70799         (syscall-list-32bit-condition, syscall-list-64bit-options)
70800         (syscall-list-64bit-condition): Define.
70801
70802 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70803
70804         * locale/iso-639.def: Add brx entry.
70805
70806         [BZ #13328]
70807         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70808         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70809
70810         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70811         __feraiseexcept_renamed.
70812
70813 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70814
70815         [BZ #13538]
70816         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70817         EPOLLET with unsigned values.
70818         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70819         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70820
70821         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70822         to large cancellation.
70823         * math/s_cacoshf.c: Likewise.
70824         * math/s_cacoshl.c: Likewise.
70825
70826 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70827
70828         [BZ #13305]
70829         [BZ #12786]
70830         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70831         * math/s_cacoshf.c: Likewise.
70832         * math/s_cacoshl.c: Likewise.
70833
70834 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70835
70836         [BZ #13439]
70837         * iconv/gconv.h: Define __GCONV_SWAP.
70838         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70839         * iconvdata/utf-16.c: Likewise.
70840         * iconvdata/utf-32.c: Likewise.
70841
70842 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70843
70844         [BZ #13524]
70845         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70846         numerator after shifting it by one limb.
70847
70848 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70849
70850         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70851         under [__USE_EXTERN_INLINES].
70852
70853 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70854
70855         [BZ #13446]
70856         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70857
70858 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70859
70860         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70861         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70862         optimized code.
70863         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70864         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70865         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70866         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70867         for strncasecmp/strncasecmp_l compilation.
70868         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70869         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70870
70871 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70872
70873         [BZ #13484]
70874         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70875         of __asm__.
70876
70877 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70878
70879         [BZ #13506]
70880         * time/tzfile.c (__tzfile_read): Check values from file header.
70881
70882 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70883
70884         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70885         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70886         * powerpc/powerpc32/dl-start.S: Likewise.
70887         * powerpc/powerpc32/elf/start.S: Likewise.
70888         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70889         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70890         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70891         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70892         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70893         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70894         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70895         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70896         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70897         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70898         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70899         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70900         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70901         * powerpc/powerpc32/memset.S: Likewise.
70902         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70903         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70904         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70905         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70906         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70907         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70908         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70909         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70910         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70911         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70912         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70913         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70914         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70915
70916 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70917
70918         * math/libm-test.inc: Added more nearbyint tests.
70919         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70920         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70921         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70922         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70923
70924 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70925
70926         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70927         FD_CLOEXEC.
70928
70929 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70930
70931         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70932         Add wcscpy-ssse3 wcscpy-c.
70933         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70934         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70935         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70936         * sysdeps/x86_64/wcschr.S: New file.
70937         * sysdeps/x86_64/wcsrchr.S: New file.
70938         * string/test-strcmp.c: Remove checking of wcscmp function for
70939         wrong alignments.
70940         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70941         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70942         wcsrchr-sse2 wcsrchr-c.
70943         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70944         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70945         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70946         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70947         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70948         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70949         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70950         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70951         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70952         * wcsmbc/wcschr.c (WCSCHR): New macro.
70953
70954 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70955
70956         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70957         * wcsmbs/test-wcsrchr.c: New file.
70958         * string/test-strrchr.c: Add wcsrchr support.
70959         (WIDE): New macro.
70960         * wcsmbs/test-wcscpy.c: New file.
70961         * string/test-strcpy.c: Add wcscpy support.
70962         (WIDE): New macro.
70963
70964 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70965
70966         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70967         the inner loop.
70968
70969 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70970
70971         [BZ #13472]
70972         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70973
70974 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70975
70976         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70977         Minor optimizations.
70978
70979         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70980         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70981         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70982
70983 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70984
70985         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70986         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70987         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70988         for gcc to avoid warnings.
70989         * inet/Makefile (tests): Add tst-checks.
70990         * inet/tst-checks.c: New file.
70991
70992         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70993         warning.
70994
70995         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70996         __wmemcmp_sse2.
70997
70998         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70999         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
71000
71001         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
71002
71003 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
71004
71005         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
71006         problem.
71007
71008         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
71009
71010 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
71011
71012         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
71013         conditional on GCC version.
71014         (__arch_compare_and_exchange_val_8_acq)
71015         (__arch_compare_and_exchange_val_16_acq)
71016         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
71017         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
71018         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
71019
71020 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
71021
71022         * sysdeps/sh/backtrace.c: New file.
71023
71024 2011-12-02  Andreas Schwab  <schwab@redhat.com>
71025
71026         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
71027         parenthesis.
71028
71029 2011-12-01  Andreas Schwab  <schwab@redhat.com>
71030
71031         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
71032         falling back to utime.
71033
71034 2011-11-30  Andreas Schwab  <schwab@redhat.com>
71035
71036         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
71037         expectations for float.
71038
71039 2011-11-29  Andreas Schwab  <schwab@redhat.com>
71040
71041         * locale/weight.h (findidx): Add parameter len.
71042         * locale/weightwc.h (findidx): Likewise.
71043         * posix/fnmatch_loop.c (FCT): Adjust caller.
71044         * posix/regcomp.c (build_equiv_class): Likewise.
71045         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
71046         * posix/regexec.c (check_node_accept_bytes): Likewise.
71047         * string/strcoll_l.c (STRCOLL): Likewise.
71048         * string/strxfrm_l.c (STRXFRM): Likewise.
71049
71050 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
71051
71052         * Makefile.in: Remove CVSOPT handling.
71053         * configure.in: Remove use of AC_REVISION.
71054         * iconvdata/Makefile (distribute): No need to filter out CVS.
71055         * scripts/list-sources.sh: Remove CVS, subversion and monotone
71056         handling.
71057
71058 2011-11-16  Andreas Schwab  <schwab@redhat.com>
71059
71060         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
71061         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
71062         [USE_AS_STRNCASECMP_L]: Likewise.
71063         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
71064         NO_TLS_DIRECT_SEG_REFS.
71065         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
71066         Fix argument offsets for non-PIC.
71067         [USE_AS_STRNCASECMP_L]: Likewise.
71068         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
71069         NO_TLS_DIRECT_SEG_REFS.
71070
71071 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
71072
71073         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
71074         O_CLOEXEC.
71075         * locale/loadlocale.c (_nl_load_locale): Likewise.
71076
71077 2011-11-15  Andreas Schwab  <schwab@redhat.com>
71078
71079         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
71080         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
71081         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
71082         (SYSCALL_GETTIME): Set errno on error.
71083
71084         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
71085         count references to noai6ai_cached.
71086
71087 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
71088
71089         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
71090
71091         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
71092         FD_CLOEXEC for /proc/self/maps.
71093
71094         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
71095         FD_CLOEXEC for /proc/meminfo.
71096
71097         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
71098         gai.conf.
71099
71100         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
71101         FD_CLOEXEC for given file.
71102
71103         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
71104
71105         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
71106         FD_CLOEXEC for /etc/hosts.
71107         (_gethtent): Likewise.
71108
71109         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
71110
71111         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
71112         cancellation and set FD_CLOEXEC for /etc/netgroup.
71113
71114         * nss/nss_files/files-key.c (search): Don't allow cancellation when
71115         reading /etc/publickey.
71116
71117         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
71118         allow cancellation when reading /etc/group.
71119
71120         * nss/nss_files/files-alias.c (internal_setent): Don't allow
71121         cancellation.
71122         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
71123
71124         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
71125         when using data file.
71126
71127         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
71128
71129         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
71130         (write_nis_obj): Use "c" and "e" in fopen.
71131
71132         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
71133
71134         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
71135
71136         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
71137
71138         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
71139
71140         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
71141         locale.alias.
71142
71143         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
71144
71145         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
71146
71147         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
71148
71149         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
71150         file parsing and set FD_CLOEXEC.
71151
71152 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71153
71154         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
71155
71156 2011-11-14  Andreas Schwab  <schwab@redhat.com>
71157
71158         * malloc/arena.c (arena_get2): Don't call reused_arena when
71159         _int_new_arena failed.
71160
71161 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71162
71163         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
71164         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
71165         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
71166         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
71167         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
71168         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
71169         to compile strcasecmp and strncasecmp.
71170         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
71171         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
71172
71173         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
71174
71175 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
71176
71177         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
71178         locale-defines.sym to gen-as-const-headers.
71179         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
71180         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
71181         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
71182         to compile strcasecmp and strncasecmp.
71183         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
71184         strcasecmp_l and strncasecmp_l.
71185         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
71186         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
71187         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
71188         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
71189         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
71190         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
71191         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
71192         * sysdeps/i386/i686/multiarch/strncase.S: New file.
71193         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
71194         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
71195         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
71196
71197 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
71198
71199         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
71200         result of SYSDEP_GETTIME_CPU to retval.
71201         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
71202         parameter list to macro.  Remove trailing semicolon.  Adjust users.
71203
71204         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
71205         variable.
71206
71207         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
71208         mantissa words.
71209         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
71210
71211         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
71212         from unused variable.
71213
71214         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
71215         DWARF definitions.
71216         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
71217         for assembling.
71218
71219         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
71220         over namespaces.
71221
71222         * sunrpc/rpc_prot.c (rejected): Fix case value.
71223
71224         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
71225         unsigned long long int to avoid warnings in shift.
71226
71227         * posix/regex_internal.c (re_string_reconstruct): Actually use result
71228         of use of trans.
71229         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
71230         variable tmp.
71231
71232         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
71233         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
71234         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
71235
71236         * nis/nis_table.c (nis_list): Use variable of correct type for
71237         result of __follow_path call.
71238
71239 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71240
71241         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
71242         of math functions ceil, trunc, floor, round, and sqrt, when
71243         avaliable on the platform.
71244         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
71245         name clash.
71246         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71247         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71248         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71249
71250 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
71251
71252         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
71253         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
71254
71255 2011-11-11  Roland McGrath  <roland@hack.frob.com>
71256
71257         * include/unistd.h: Fix __readlink return type.
71258         Reported by Chris Metcalf <cmetcalf@tilera.com>.
71259
71260 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
71261
71262         * stdlib/ucontext.h: Undo last change for makecontext.
71263
71264 2011-11-11  Andreas Schwab  <schwab@redhat.com>
71265
71266         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
71267
71268         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
71269         * setjmp/setjmp.h: Mark functions as non-leaf.
71270         * setjmp/bits/setjmp2.h: Likewise.
71271         * stdlib/ucontext.h: Likewise.
71272
71273 2011-11-10  Andreas Schwab  <schwab@redhat.com>
71274
71275         * malloc/arena.c (_int_new_arena): Don't increment narenas.
71276         (reused_arena): Don't check arena limit.
71277         (arena_get2): Atomically check arena limit.
71278
71279 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
71280
71281         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
71282         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
71283
71284         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
71285         instructions.
71286
71287 2011-11-07  Andreas Schwab  <schwab@redhat.com>
71288
71289         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
71290         handler when locking.
71291
71292         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
71293         Fix size of allocated buffer.
71294
71295 2011-11-04  Andreas Schwab  <schwab@redhat.com>
71296
71297         [BZ #10103]
71298         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
71299         declarations for long double functions.
71300         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
71301
71302         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
71303
71304 2011-11-03  Andreas Schwab  <schwab@redhat.com>
71305
71306         * nscd/nscd.c (main): Don't start AVC thread until credentials are
71307         installed.
71308
71309         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
71310         is disabled.
71311
71312 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
71313
71314         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
71315
71316 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
71317
71318         * include/alloca.h (stackinfo_alloca_round): Define.
71319         (extend_alloca): Use it.
71320         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
71321         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
71322         here.
71323
71324         * scripts/check-local-headers.sh: Ignore libaudit.h.
71325
71326         * nscd/Makefile (extra-objs): Make recursively expanded.
71327
71328 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
71329
71330         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
71331         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
71332
71333         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
71334         * posix/tst-rfc3484-2.c: Likewise.
71335         * posix/tst-rfc3484-3.c: Likewise.
71336
71337         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
71338         process_vm_writev.
71339         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
71340         process_vm_writev.
71341         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
71342         process_vm_writev from libc using GLIBC_2.15 version.
71343
71344         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
71345
71346 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
71347
71348         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
71349         stack usage.
71350
71351 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
71352
71353         [BZ #13367]
71354         * nss/getent.c (initgroups_keys): Show error message in case no group
71355         names are given.
71356
71357         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
71358         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
71359         __bump_nl_timestamp.
71360         * nscd/connections (nscd_init): When host database is served open
71361         netlink socket and request notification about configuration changes.
71362         (main_loop_poll): Track netlink file descriptor and bump timestamp
71363         in case data becomes available.
71364         (main_loop_epoll): Likewise.
71365         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
71366         (database_pers_head): Add extra_data fileds.
71367         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
71368         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
71369         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
71370         Adjust caller.
71371         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
71372         in6ai data, call __free_in6ai.
71373         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
71374         Add -DHAVE_NETLINK.
71375         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
71376         interface information.  Reuse previous data if netlink timestamp
71377         is not changed.
71378         (__bump_nl_timestamp): New function.
71379         (__free_in6ai): New function.
71380
71381 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
71382
71383         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
71384         close_not_cancel_no_status here.
71385         (__check_pf): Reorganize code a bit to not call close twice if OOM.
71386
71387 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71388
71389         [BZ #13276]
71390         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
71391         return value.
71392
71393         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
71394         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
71395         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
71396
71397 2011-07-03  Andreas Jaeger  <aj@suse.de>
71398
71399         [BZ #10709]
71400         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
71401         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
71402         * math/libm-test.inc (sin_test): Add test case.
71403
71404 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71405
71406         [BZ #13337]
71407         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
71408         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71409
71410         * elf/chroot_canon.c (chroot_canon): Cleanups.
71411
71412         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
71413
71414         [BZ #13335]
71415         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
71416         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71417
71418         * string/test-strchr.c: Make usable for strchrnul testing.
71419         * string/test-strchrnul.c: New file.
71420         * string/Makefile (strop-tests): Add strchrnul.
71421
71422         * po/it.po: Update from translation team.
71423         * po/es.po: Likewise.
71424
71425 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
71426
71427         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
71428         the three constants needed as parameters.  Drop the others.
71429         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
71430         __m128i_strloadu_tolower.
71431         Create and initialize variable zero and use it in all the places
71432         where _mm_setzero_si128 was used.
71433
71434         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
71435         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
71436         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
71437         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
71438         anymore.
71439         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
71440         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
71441         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
71442         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
71443         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
71444         __mpranred, __mptan.
71445         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
71446         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
71447         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
71448         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
71449         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
71450         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
71451         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
71452         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
71453         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
71454
71455 2011-10-28  Andreas Schwab  <schwab@redhat.com>
71456
71457         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
71458         redefine if SHARED.
71459         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
71460
71461         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
71462         wide char related routines to wcsmbs subdir.
71463
71464 2011-10-27  Andreas Schwab  <schwab@redhat.com>
71465
71466         [BZ #13344]
71467         * misc/sys/cdefs.h (__THROWNL): Define.
71468         * posix/unistd.h: Use __THREADNL instead of __THREAD
71469         for memory synchronization functions.
71470
71471 2011-10-26  Roland McGrath  <roland@hack.frob.com>
71472
71473         [BZ #13349]
71474         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
71475         doesn't exist.
71476         * manual/stdio.texi (Obstack Streams): Node removed.
71477
71478 2011-10-26  Andreas Schwab  <schwab@redhat.com>
71479
71480         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
71481         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71482         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71483
71484         * math/math_private.h (math_force_eval): Allow non-addressable
71485         arguments.
71486         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
71487
71488 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71489
71490         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
71491         file is not needed.
71492
71493         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
71494         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
71495         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
71496         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
71497         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
71498         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
71499         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
71500         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
71501         Add AVX variants.
71502         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
71503         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
71504         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
71505         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
71506         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
71507         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
71508         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
71509         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
71510         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
71511         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
71512         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
71513         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
71514         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
71515         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
71516         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
71517         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
71518         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
71519         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
71520         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
71521
71522         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
71523         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
71524
71525         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
71526         place.  Use VEX encoding when compiling for AVX.
71527
71528 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71529
71530         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
71531         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
71532
71533         * string/test-strchr.c (do_test): Don't generate NUL bytes.
71534
71535 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71536
71537         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
71538         useless if() expression.
71539         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71540         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
71541         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
71542         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71543         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
71544         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71545         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71546         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71547         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
71548         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71549         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71550         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71551         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71552         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71553         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71554         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71555         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71556         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71557         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71558
71559         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
71560
71561 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71562
71563         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
71564         condition.
71565         * elf/dl-fini.c (_dl_sort_fini): Likewise.
71566
71567 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71568
71569         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
71570         .text section.  Avoid duplicate constants.
71571         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
71572         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71573         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71574         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71575         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71576         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71577         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71578         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71579         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
71580         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
71581         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
71582         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
71583         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
71584         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
71585         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
71586         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
71587         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
71588         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
71589         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
71590         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71591         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
71592         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
71593         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
71594         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
71595         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
71596         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
71597         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
71598         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
71599         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
71600         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
71601         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
71602         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
71603         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
71604         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
71605         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
71606         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
71607         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
71608         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
71609         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
71610         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
71611         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
71612         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
71613         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
71614         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
71615         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
71616
71617 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
71618
71619         * sysdeps/x86_64/dla.h: Move to ...
71620         * sysdeps/x86_64/fpu/dla.h: ...here.
71621         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71622         situations.  Use __builtin_fma only for gcc 4.6 and up.
71623
71624         * config.make.in: Add have-mfma4 entry.
71625         * configure.in: Substitute libc_cv_cc_fma4.
71626         * math/Makefile (dbl-only-routines): Add sincostab.
71627         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71628         Use __sincostab not sincos.
71629         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71630         name is a macro.
71631         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71632         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71633         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71634         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71635         using __copysign.
71636         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71637         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71638         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71639         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71640         and __inv.
71641         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71642         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71643         __copysign.
71644         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71645         define aliases when function name is a macro.
71646         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71647         sysdeps/ieee754/dbl-64/sincos.tbl.
71648         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71649         fma4-enabled routines.
71650         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71651         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71652         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71653         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71654         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71655         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71656         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71657         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71658         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71659         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71660         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71661         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71662         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71663         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71664         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71665         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71666         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71667         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71668         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71669         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71670         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71671         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71672         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71673         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71674         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71675         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71676         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71677         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71678         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71679         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71680
71681         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71682         rename.
71683         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71684         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71685         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71686         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71687         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71688         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71689         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71690         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71691
71692 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71693
71694         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71695
71696 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71697
71698         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71699
71700         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71701         prediction.
71702         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71703
71704         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71705         Remove unused variable magic_bits.
71706         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71707
71708         * string/strnlen.c: Define and use STRNLEN macro.
71709         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71710         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71711         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71712         * wcsmbs/wcslen.c: Define and use WCSLEN.
71713         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71714         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71715         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71716         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71717         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71718         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71719         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71720
71721 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71722
71723         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71724         strnlen-sse2-no-bsf.
71725         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71726         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71727         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71728         Add strnlen support.
71729         (USE_AS_STRNLEN): New macro.
71730         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71731         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71732         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71733         * sysdeps/x86_64/wcslen.S: New file.
71734
71735 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71736
71737         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71738         XMM-moves are used for copying on small sizes.
71739
71740 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71741
71742         * wcsmbs/Makefile (strop-tests): Add wcschr.
71743         * wcsmbs/test-wcschr.c: New file.
71744         * string/test-strchr.c: Update.
71745         Add wcschr support.
71746         (WIDE): New macro.
71747
71748 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71749
71750         * wcsmbs/Makefile (strop-tests): Add wcslen.
71751         * wcsmbs/test-wcslen.c: New file.
71752         * string/test-strlen.c: Update.
71753         Add wcslen support.
71754         (WIDE): New macro.
71755
71756 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71757
71758         * po/it.po: Update from translation team.
71759
71760 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71761
71762         * sysdeps/x86_64/wcscmp.S: Update.
71763         Fix wrong comparison semantics.
71764         wcscmp shall use signed comparison not unsigned.
71765         Don't use substraction to avoid overflow bug.
71766         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71767         * wcsmbc/wcscmp.c: Likewise.
71768         * string/test-strcmp.c: Likewise.
71769         Add new tests to check cases with negative values.
71770
71771 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71772
71773         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71774         * sysdeps/x86_64/dla.h: ...here.  New file.
71775         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71776         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71777         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71778         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71779         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71780         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71781         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71782         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71783         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71784
71785 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71786
71787         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71788         __ynl_finite aliases.
71789
71790 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71791
71792         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71793
71794         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71795         define DLA_FMA.
71796         [DLA_FMA] (EMULV): Use DLA_FMA.
71797         [DLA_FMA] (MUL12): Use EMULV.
71798         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71799         that are not needed.
71800         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71801         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71802         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71803         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71804         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71805         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71806         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71807
71808 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71809
71810         * math/s_nan.c: Undef __nan.
71811         * math/s_nanf.c: Undef __nanf.
71812         * math/s_nanl.c: Undef __nanl.
71813         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71814         "math_private.h".
71815
71816 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71817
71818         * math/s_catan.c: Add branch predictions.
71819         * math/s_catanf.c: Likewise.
71820         * math/s_catanh.c: Likewise.
71821         * math/s_catanhf.c: Likewise.
71822         * math/s_catanhl.c: Likewise.
71823         * math/s_catanl.c: Likewise.
71824         * math/s_cexp.c: Likewise.
71825         * math/s_cexpf.c: Likewise.
71826         * math/s_cexpl.c: Likewise.
71827         * math/s_clog.c: Likewise.
71828         * math/s_clog10.c: Likewise.
71829         * math/s_clog10f.c: Likewise.
71830         * math/s_clog10l.c: Likewise.
71831         * math/s_clogf.c: Likewise.
71832         * math/s_clogl.c: Likewise.
71833         * math/s_csqrt.c: Likewise.
71834         * math/s_csqrtf.c: Likewise.
71835         * math/s_csqrtl.c: Likewise.
71836         * math/s_ctanf.c: Likewise.
71837         * math/s_ctanh.c: Likewise.
71838         * math/s_ctanhf.c: Likewise.
71839         * math/s_ctanhl.c: Likewise.
71840         * math/s_ctanl.c: Likewise.
71841
71842         * math/math_private.h: Define __nan, __nanf, __nanl.
71843         * math/s_cacosh.c: Include <math_private.h>.
71844         * math/s_cacoshl.c: Likewise.
71845         * math/s_casinh.c: Likewise.
71846         * math/s_casinhf.c: Likewise.
71847         * math/s_casinhl.c: Likewise.
71848         * math/s_ccos.c: Rely entire on ccosh.
71849         * math/s_ccosf.c: Rely entire on ccoshf.
71850         * math/s_ccosl.c: Rely entirely on ccoshl.
71851         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71852         Remove tests for FE_INVALID.
71853         * math/s_ccoshf.c: Likewise.
71854         * math/s_ccoshl.c: Likewise.
71855         * math/s_csin.c: Likewise.
71856         * math/s_csinf.c: Likewise.
71857         * math/s_csinh.c Likewise.
71858         * math/s_csinhf.c: Likewise.
71859         * math/s_csinhl.c: Likewise.
71860         * math/s_csinl.c: Likewise.
71861         * math/s_ctan.c: Likewise.
71862         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71863         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71864         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71865
71866 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71867
71868         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71869         compilation problems.
71870
71871         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71872         __builtin_expect.
71873
71874 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71875
71876         * sysdeps/i386/configure.in: Test for -mfma4 option.
71877         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71878         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71879         COMMON_CPUID_INDEX_80000001.
71880         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71881         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71882         use it if FMA3 is not supported.
71883         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71884
71885         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71886         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71887
71888 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71889
71890         [BZ #12892]
71891         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71892         it would create a cycle with a link time dependency.
71893
71894 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71895
71896         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71897         instruction.
71898         * string/Makefile (strop-tests): Add rawmemchr.
71899         * string/test-rawmemchr.c: New file.
71900
71901         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71902         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71903         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71904         when compiling str{,n}casecmp and when AVX is available.  Hook up
71905         new optimized code in initializers.
71906
71907 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71908
71909         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71910         __feraiseexcept instead of feraiseexcept.
71911
71912 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71913
71914         * math/math_private.h: Define defaults for libc_fetestexcept and
71915         libc_feupdateenv.
71916         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71917         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71918         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71919         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71920         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71921         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71922         libc_fetestexcept and libc_feupdateenv.
71923
71924         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71925         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71926         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71927         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71928         libc_feholdexcept_setround.
71929
71930         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71931         Add s_nearbyint-c and s_nearbyintf-c.
71932         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71933         nearbyintf inlines.
71934         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71935         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71936         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71937         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71938
71939         * math/math_private.h: Define defaults for libc_fegetround,
71940         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71941         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71942         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71943         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71944         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71945         standard functions.
71946         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71947         Remove comments and hacks for old compiler versions.
71948         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71949         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71950         libc_feholdexceptl.
71951
71952 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71953
71954         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71955         (__feraiseexcept_renamed): Add __NTH.
71956         (feraiseexcept): Add __NTH.  Rename local variables to fix
71957         namespace violations.
71958
71959 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71960
71961         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71962
71963         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71964
71965         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71966         recently added interfaces.
71967         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71968
71969         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71970         about macro parameter expansion.
71971
71972         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71973         __NO_MATH_INLINES is defined.  Cleanups.
71974
71975         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71976         and __floorf is target has SSE4.1.
71977         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71978         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71979         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71980         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71981
71982         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71983         name.
71984         (floorf): Likewise.
71985
71986         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71987
71988 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71989
71990         * misc/sys/cdefs.h: Fix last change.
71991
71992         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71993         database lookup.
71994
71995 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71996
71997         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71998
71999         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
72000         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
72001         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
72002         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
72003         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
72004         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
72005         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
72006         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
72007         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
72008         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
72009         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
72010         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
72011         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
72012         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
72013         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
72014         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
72015         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
72016         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
72017         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
72018         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
72019         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
72020         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
72021
72022         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
72023         ceil, ceilf, floor, floorf.
72024
72025         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
72026         Perform IRELATIVE relocations last.
72027
72028         * elf/do-rel.h: Add another parameter nrelative, replacing the
72029         local variable with the same name.  Change name of the function
72030         to end in Rel or Rela (uppercase).
72031         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
72032         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
72033         elf_dynamic_do_##reloc function.
72034
72035 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
72036
72037         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
72038         is sufficient, at least on modern CPUs.
72039
72040         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
72041
72042         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
72043         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
72044
72045         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
72046         __expl_finite.
72047         * math/bits/math-finite.h: Add entries for exp.
72048         * math/e_expl.c: Add __*_finite alias.
72049         * sysdeps/i386/fpu/e_exp.S: Likewise.
72050         * sysdeps/i386/fpu/e_expf.S: Likewise.
72051         * sysdeps/i386/fpu/e_expl.c: Likewise.
72052         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
72053         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
72054         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
72055         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
72056         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
72057         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
72058         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
72059
72060         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
72061         is sufficient, at least on modern CPUs.
72062
72063         * ctype/ctype-info.c (__ctype_init): Define.
72064         * include/ctype.h (__ctype_init): Declare.
72065         (__ctype_b_loc): The variable is always initialized.
72066         (__ctype_toupper_loc): Likewise.
72067         (__ctype_tolower_loc): Likewise.
72068         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
72069         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
72070
72071 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
72072
72073         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
72074
72075         * configure.in: Also look in $cxxmachine/include for C++ system
72076         headers.
72077
72078 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72079
72080         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
72081         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
72082         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
72083         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
72084         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
72085         (USE_AS_WMEMCMP): New macro.
72086         Fixing indents.
72087         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
72088         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
72089         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
72090         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
72091         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72092         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
72093         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
72094         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
72095         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
72096         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
72097         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
72098         (USE_AS_WMEMCMP): New macro.
72099         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
72100         * sysdeps/string/test-memcmp.c: Update.
72101         Fix simple_wmemcmp.
72102         Add new tests.
72103         * wcsmbs/wmemcmp.c: Update.
72104         (WMEMCMP): New macro.
72105         Fix overflow bug.
72106
72107 2011-10-12  Andreas Jaeger  <aj@suse.de>
72108
72109         [BZ #13268]
72110         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
72111
72112 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
72113
72114         * libio/iofwide.c (do_length): Avoid warning.
72115
72116         * ctype/ctype.h (__isctype_f): Add missing __THROW.
72117
72118 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
72119
72120         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
72121
72122         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
72123         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
72124         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
72125         * sysdeps/i386/i686/fpu/e_log.S: New file.
72126         * sysdeps/i386/i686/fpu/e_logf.S: New file.
72127         * sysdeps/i386/i686/fpu/e_logl.S: New file.
72128
72129         * ctype/ctype.h: Add support for inlined isXXX functions when
72130         compiling C++ code.
72131
72132 2011-10-14  Andreas Schwab  <schwab@redhat.com>
72133
72134         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72135
72136         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
72137
72138 2011-10-13  Roland McGrath  <roland@hack.frob.com>
72139
72140         [BZ #13291]
72141         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
72142
72143 2011-10-13  Andreas Schwab  <schwab@redhat.com>
72144
72145         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
72146         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
72147         feraiseexcept.
72148
72149         * sysdeps/x86_64/memrchr.S: Check for zero size.
72150
72151         * string/stratcliff.c: Add memrchr tests.
72152
72153 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72154
72155         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72156         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
72157         rawmemchr-sse2 rawmemchr-sse2-bsf.
72158         * sysdeps/i386/i686/multiarch/memchr.S: New file.
72159         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
72160         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
72161         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
72162         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
72163         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
72164         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
72165         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
72166         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
72167         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
72168         * string/memrchr.c (MEMRCHR): New macro.
72169
72170 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
72171
72172         Add integration with gcc's -ffinite-math-only and optimize wrapper
72173         functions in libm.
72174         * Versions.def: Define GLIBC_2.15 version for libm.
72175         * math/Makefile (headers): Add bits/math-finite.h.
72176         * math/bits/math-finite.h: New file.
72177         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
72178         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
72179         * math/e_acoshl.c: Add __*_finite alias.
72180         * math/e_acosl.c: Likewise.
72181         * math/e_asinl.c: Likewise.
72182         * math/e_atan2l.c: Likewise.
72183         * math/e_atanhl.c: Likewise.
72184         * math/e_coshl.c: Likewise.
72185         * math/e_exp10.c: Likewise.
72186         * math/e_exp10f.c: Likewise.
72187         * math/e_exp10l.c: Likewise.
72188         * math/e_exp2l.c: Likewise.
72189         * math/e_fmodl.c: Likewise.
72190         * math/e_gammal_r.c: Likewise.
72191         * math/e_hypotl.c: Likewise.
72192         * math/e_j0l.c: Likewise.
72193         * math/e_j1l.c: Likewise.
72194         * math/e_jnl.c: Likewise.
72195         * math/e_lgammal_r.c: Likewise.
72196         * math/e_log10l.c: Likewise.
72197         * math/e_log2l.c: Likewise.
72198         * math/e_logl.c: Likewise.
72199         * math/e_powl.c: Likewise.
72200         * math/e_sinhl.c: Likewise.
72201         * math/e_sqrtl.c: Likewise.
72202         * math/e_scalb.c: Completely rewritten and optimized.
72203         * math/e_scalbf.c: Likewise.
72204         * math/e_scalbl.c: Likewise.
72205         * math/w_acos.c: Likewise.
72206         * math/w_acosf.c: Likewise.
72207         * math/w_acosl.c: Likewise.
72208         * math/w_acosh.c: Likewise.
72209         * math/w_acoshf.c: Likewise.
72210         * math/w_acoshl.c: Likewise.
72211         * math/w_asin.c: Likewise.
72212         * math/w_asinf.c: Likewise.
72213         * math/w_asinl.c: Likewise.
72214         * math/w_atan2.c: Likewise.
72215         * math/w_atan2f.c: Likewise.
72216         * math/w_atan2l.c: Likewise.
72217         * math/w_atanh.c: Likewise.
72218         * math/w_atanhf.c: Likewise.
72219         * math/w_atanhl.c: Likewise.
72220         * math/w_exp10.c: Likewise.
72221         * math/w_exp10f.c: Likewise.
72222         * math/w_exp10l.c: Likewise.
72223         * math/w_fmod.c: Likewise.
72224         * math/w_fmodf.c: Likewise.
72225         * math/w_fmodl.c: Likewise.
72226         * math/w_j0.c: Likewise.
72227         * math/w_j0f.c: Likewise.
72228         * math/w_j0l.c: Likewise.
72229         * math/w_j1.c: Likewise.
72230         * math/w_j1f.c: Likewise.
72231         * math/w_j1l.c: Likewise.
72232         * math/w_jn.c: Likewise.
72233         * math/w_jnf.c: Likewise.
72234         * math/w_log.c: Likewise.
72235         * math/w_logf.c: Likewise.
72236         * math/w_logl.c: Likewise.
72237         * math/w_log10.c: Likewise.
72238         * math/w_log10f.c: Likewise.
72239         * math/w_log10l.c: Likewise.
72240         * math/w_log2.c: Likewise.
72241         * math/w_log2f.c: Likewise.
72242         * math/w_log2l.c: Likewise.
72243         * math/w_pow.c: Likewise.
72244         * math/w_powf.c: Likewise.
72245         * math/w_powl.c: Likewise.
72246         * math/w_remainder.c: Likewise.
72247         * math/w_remainderf.c: Likewise.
72248         * math/w_remainderl.c: Likewise.
72249         * math/w_scalb.c: Likewise.
72250         * math/w_scalbf.c: Likewise.
72251         * math/w_scalbl.c: Likewise.
72252         * math/w_sqrt.c: Likewise.
72253         * math/w_sqrtf.c: Likewise.
72254         * math/w_sqrtl.c: Likewise.
72255         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
72256         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
72257         used.
72258         * math/math_private.h: Declare __kernel_standard_f.
72259         * math/w_cosh.c: Remove cruft and optimize a bit.
72260         * math/w_coshf.c: Likewise.
72261         * math/w_coshl.c: Likewise.
72262         * math/w_exp2.c: Likewise.
72263         * math/w_exp2f.c: Likewise.
72264         * math/w_exp2l.c: Likewise.
72265         * math/w_hypot.c: Likewise.
72266         * math/w_hypotf.c: Likewise.
72267         * math/w_hypotl.c: Likewise.
72268         * math/w_lgamma.c: Likewise.
72269         * math/w_lgamma_r.c: Likewise.
72270         * math/w_lgammaf.c: Likewise.
72271         * math/w_lgammaf_r.c: Likewise.
72272         * math/w_lgammal.c: Likewise.
72273         * math/w_lgammal_r.c: Likewise.
72274         * math/w_sinh.c: Likewise.
72275         * math/w_sinhf.c: Likewise.
72276         * math/w_sinhl.c: Likewise.
72277         * math/w_tgamma.c: Likewise.
72278         * math/w_tgammaf.c: Likewise.
72279         * math/w_tgammal.c: Likewise.
72280         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
72281         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
72282         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
72283         Minor optimizations.  Pretty printing.  Remove cruft.
72284         * sysdeps/i386/fpu/e_acosf.S: Likewise.
72285         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72286         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72287         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72288         * sysdeps/i386/fpu/e_acosl.c: Likewise.
72289         * sysdeps/i386/fpu/e_asin.S: Likewise.
72290         * sysdeps/i386/fpu/e_asinf.S: Likewise.
72291         * sysdeps/i386/fpu/e_atan2.S: Likewise.
72292         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
72293         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
72294         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72295         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72296         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72297         * sysdeps/i386/fpu/e_exp10.S: Likewise.
72298         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
72299         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
72300         * sysdeps/i386/fpu/e_exp2.S: Likewise.
72301         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
72302         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
72303         * sysdeps/i386/fpu/e_fmod.S: Likewise.
72304         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
72305         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
72306         * sysdeps/i386/fpu/e_hypot.S: Likewise.
72307         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
72308         * sysdeps/i386/fpu/e_log.S: Likewise.
72309         * sysdeps/i386/fpu/e_log10.S: Likewise.
72310         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72311         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72312         * sysdeps/i386/fpu/e_log2.S: Likewise.
72313         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72314         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72315         * sysdeps/i386/fpu/e_logf.S: Likewise.
72316         * sysdeps/i386/fpu/e_logl.S: Likewise.
72317         * sysdeps/i386/fpu/e_pow.S: Likewise.
72318         * sysdeps/i386/fpu/e_powf.S: Likewise.
72319         * sysdeps/i386/fpu/e_powl.S: Likewise.
72320         * sysdeps/i386/fpu/e_remainder.S: Likewise.
72321         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
72322         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
72323         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72324         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72325         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72326         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
72327         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
72328         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
72329         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
72330         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
72331         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
72332         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
72333         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
72334         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
72335         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
72336         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
72337         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
72338         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
72339         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
72340         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
72341         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
72342         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
72343         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
72344         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
72345         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
72346         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
72347         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
72348         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
72349         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
72350         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
72351         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
72352         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
72353         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
72354         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
72355         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
72356         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
72357         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
72358         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
72359         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
72360         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
72361         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72362         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
72363         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
72364         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
72365         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
72366         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
72367         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
72368         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
72369         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
72370         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
72371         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
72372         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
72373         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
72374         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
72375         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
72376         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
72377         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
72378         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
72379         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
72380         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
72381         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
72382         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72383         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
72384         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
72385         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
72386         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
72387         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
72388         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
72389         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
72390         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
72391         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
72392         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
72393         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
72394         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
72395         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
72396         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
72397         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
72398         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
72399         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
72400         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
72401         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
72402         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
72403         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
72404         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
72405         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
72406         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
72407         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
72408         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
72409         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
72410         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
72411         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
72412         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
72413         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
72414         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
72415         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72416         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
72417         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
72418         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
72419         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
72420         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
72421         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
72422         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
72423         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
72424         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
72425         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
72426         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
72427         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
72428         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
72429         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
72430         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
72431         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
72432         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
72433         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72434         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72435         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72436         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72437         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
72438         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72439         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
72440         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
72441         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
72442         (__isnanf): Likewise.
72443         (__isinf_ns): Likewise.
72444         (__isinf_nsf): Likewise.
72445         (__finite): Likewise.
72446         (__finitef): Likewise.
72447         (__ieee754_sqrt): Define as macro.
72448         (__ieee754_sqrtf): Define as macro.
72449         (__ieee754_sqrtl): Define as macro.
72450         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
72451         inlined copy.
72452         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
72453         __FINITE_MATH_ONLY__ consistent.
72454         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
72455
72456 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
72457
72458         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
72459         of rawmemchr.
72460
72461         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
72462
72463 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
72464
72465         * po/ja.po: Update from translation team.
72466
72467 2011-10-08  Roland McGrath  <roland@hack.frob.com>
72468
72469         * locale/programs/locarchive.c (prepare_address_space): New function.
72470         (create_archive, enlarge_archive, open_archive): Use it.
72471
72472         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
72473         inside [SHARED], where it is used.
72474
72475         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
72476
72477         * nss/getent.c (netgroup_keys): Remove unused variable.
72478         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
72479
72480 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
72481
72482         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
72483         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
72484         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
72485         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
72486         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
72487         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
72488         * math/Makefile (libm-calls): Add s_isinf_ns.
72489         * math/divtc3.c: Use __isinf_nsl instead of isinf.
72490         * math/multc3.c: Likewise.
72491         * math/s_casin.c: Likewise.
72492         * math/s_casinf.c: Likewise.
72493         * math/s_casinl.c: Likewise.
72494         * math/s_ccos.c: Likewise.
72495         * math/s_ccosf.c: Likewise.
72496         * math/s_ccosl.c: Likewise.
72497         * math/s_ctan.c: Likewise.
72498         * math/s_ctanf.c: Likewise.
72499         * math/s_ctanh.c: Likewise.
72500         * math/s_ctanhf.c: Likewise.
72501         * math/s_ctanhl.c: Likewise.
72502         * math/s_ctanl.c: Likewise.
72503         * math/w_fmod.c: Likewise.
72504         * math/w_fmodf.c: Likewise.
72505         * math/w_fmodl.c: Likewise.
72506         * math/w_remainder.c: Likewise.
72507         * math/w_remainderf.c: Likewise.
72508         * math/w_remainderl.c: Likewise.
72509         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
72510         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
72511         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
72512         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
72513         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
72514         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
72515         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
72516         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
72517
72518         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
72519         of the number.
72520         * stdio-common/printf_fphex.c: Likewise.
72521         * stdio-common/printf_size.c: Likewise.
72522
72523         * math/e_exp10.c: Include math_private.h using <...> not "...".
72524         * math/e_exp10f.c: Likewise.
72525         * math/e_exp10l.c: Likewise.
72526         * math/e_exp2l.c: Likewise.
72527         * math/e_j0l.c: Likewise.
72528         * math/e_j1l.c: Likewise.
72529         * math/e_jnl.c: Likewise.
72530         * math/e_lgammal_r.c: Likewise.
72531         * math/e_rem_pio2l.c: Likewise.
72532         * math/e_scalb.c: Likewise.
72533         * math/e_scalbf.c: Likewise.
72534         * math/e_scalbl.c: Likewise.
72535         * math/k_cosl.c: Likewise.
72536         * math/k_sinl.c: Likewise.
72537         * math/k_tanl.c: Likewise.
72538         * math/s_cacoshf.c: Likewise.
72539         * math/s_catan.c: Likewise.
72540         * math/s_catanf.c: Likewise.
72541         * math/s_catanh.c: Likewise.
72542         * math/s_catanhf.c: Likewise.
72543         * math/s_catanhl.c: Likewise.
72544         * math/s_catanl.c: Likewise.
72545         * math/s_ccosh.c: Likewise.
72546         * math/s_ccoshf.c: Likewise.
72547         * math/s_ccoshl.c: Likewise.
72548         * math/s_cexp.c: Likewise.
72549         * math/s_cexpf.c: Likewise.
72550         * math/s_cexpl.c: Likewise.
72551         * math/s_clog.c: Likewise.
72552         * math/s_clog10.c: Likewise.
72553         * math/s_clog10f.c: Likewise.
72554         * math/s_clog10l.c: Likewise.
72555         * math/s_clogf.c: Likewise.
72556         * math/s_clogl.c: Likewise.
72557         * math/s_csin.c: Likewise.
72558         * math/s_csinf.c: Likewise.
72559         * math/s_csinh.c: Likewise.
72560         * math/s_csinhf.c: Likewise.
72561         * math/s_csinhl.c: Likewise.
72562         * math/s_csinl.c: Likewise.
72563         * math/s_csqrt.c: Likewise.
72564         * math/s_csqrtf.c: Likewise.
72565         * math/s_csqrtl.c: Likewise.
72566         * math/s_ctan.c: Likewise.
72567         * math/s_ctanf.c: Likewise.
72568         * math/s_ctanh.c: Likewise.
72569         * math/s_ctanhf.c: Likewise.
72570         * math/s_ctanhl.c: Likewise.
72571         * math/s_ctanl.c: Likewise.
72572         * math/s_ldexp.c: Likewise.
72573         * math/s_ldexpf.c: Likewise.
72574         * math/s_ldexpl.c: Likewise.
72575         * math/s_significand.c: Likewise.
72576         * math/s_significandf.c: Likewise.
72577         * math/s_significandl.c: Likewise.
72578         * math/w_acos.c: Likewise.
72579         * math/w_acosf.c: Likewise.
72580         * math/w_acosh.c: Likewise.
72581         * math/w_acoshf.c: Likewise.
72582         * math/w_acoshl.c: Likewise.
72583         * math/w_acosl.c: Likewise.
72584         * math/w_asin.c: Likewise.
72585         * math/w_asinf.c: Likewise.
72586         * math/w_asinl.c: Likewise.
72587         * math/w_atan2.c: Likewise.
72588         * math/w_atan2f.c: Likewise.
72589         * math/w_atan2l.c: Likewise.
72590         * math/w_atanh.c: Likewise.
72591         * math/w_atanhf.c: Likewise.
72592         * math/w_atanhl.c: Likewise.
72593         * math/w_cosh.c: Likewise.
72594         * math/w_coshf.c: Likewise.
72595         * math/w_coshl.c: Likewise.
72596         * math/w_dremf.c: Likewise.
72597         * math/w_exp10.c: Likewise.
72598         * math/w_exp10f.c: Likewise.
72599         * math/w_exp10l.c: Likewise.
72600         * math/w_exp2.c: Likewise.
72601         * math/w_exp2f.c: Likewise.
72602         * math/w_fmod.c: Likewise.
72603         * math/w_fmodf.c: Likewise.
72604         * math/w_fmodl.c: Likewise.
72605         * math/w_hypot.c: Likewise.
72606         * math/w_hypotf.c: Likewise.
72607         * math/w_hypotl.c: Likewise.
72608         * math/w_j0.c: Likewise.
72609         * math/w_j0f.c: Likewise.
72610         * math/w_j0l.c: Likewise.
72611         * math/w_j1.c: Likewise.
72612         * math/w_j1f.c: Likewise.
72613         * math/w_j1l.c: Likewise.
72614         * math/w_jn.c: Likewise.
72615         * math/w_jnf.c: Likewise.
72616         * math/w_jnl.c: Likewise.
72617         * math/w_lgamma.c: Likewise.
72618         * math/w_lgamma_r.c: Likewise.
72619         * math/w_lgammaf.c: Likewise.
72620         * math/w_lgammaf_r.c: Likewise.
72621         * math/w_lgammal.c: Likewise.
72622         * math/w_lgammal_r.c: Likewise.
72623         * math/w_log.c: Likewise.
72624         * math/w_log10.c: Likewise.
72625         * math/w_log10f.c: Likewise.
72626         * math/w_log10l.c: Likewise.
72627         * math/w_log2.c: Likewise.
72628         * math/w_log2f.c: Likewise.
72629         * math/w_log2l.c: Likewise.
72630         * math/w_logf.c: Likewise.
72631         * math/w_logl.c: Likewise.
72632         * math/w_pow.c: Likewise.
72633         * math/w_powf.c: Likewise.
72634         * math/w_powl.c: Likewise.
72635         * math/w_remainder.c: Likewise.
72636         * math/w_remainderf.c: Likewise.
72637         * math/w_remainderl.c: Likewise.
72638         * math/w_scalb.c: Likewise.
72639         * math/w_scalbf.c: Likewise.
72640         * math/w_scalbl.c: Likewise.
72641         * math/w_sinh.c: Likewise.
72642         * math/w_sinhf.c: Likewise.
72643         * math/w_sinhl.c: Likewise.
72644         * math/w_sqrt.c: Likewise.
72645         * math/w_sqrtf.c: Likewise.
72646         * math/w_sqrtl.c: Likewise.
72647         * math/w_tgamma.c: Likewise.
72648         * math/w_tgammaf.c: Likewise.
72649         * math/w_tgammal.c: Likewise.
72650
72651         * po/ja.po: Update from translation team.
72652
72653 2011-09-29  Andreas Jaeger  <aj@suse.de>
72654
72655         [BZ #13179]
72656         * sunrpc/netname.c (netname2host): Fix logic.
72657
72658         [BZ #6779]
72659         [BZ #6783]
72660         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72661         correctly.
72662         * math/w_remainder.c (__remainder): Likewise.
72663         * math/w_remainderf.c (__remainderf): Likewise.
72664         * math/libm-test.inc (remainder_test): Add test cases.
72665
72666 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72667
72668         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72669         sdiv_qrnnd.
72670
72671 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72672
72673         * string/test-memcmp.c: Avoid unncessary #defines.
72674         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72675
72676 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72677
72678         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72679         Use new sse2 version for core i3 - i7 as it's faster
72680         than sse42 version.
72681         (bit_Prefer_PMINUB_for_stringop): New.
72682         * sysdeps/x86_64/rawmemchr.S: Update.
72683         Replace with faster SSE2 version.
72684         * sysdeps/x86_64/memrchr.S: New file.
72685         * sysdeps/x86_64/memchr.S: Update.
72686         Replace with faster SSE2 version.
72687
72688 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72689
72690         * elf/dl-load.c (lose): Add cast to avoid warning.
72691
72692 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72693
72694         * po/ca.po: Update from translation team.
72695
72696         * inet/getnetgrent_r.c: Hook up nscd.
72697         * nscd/Makefile (routines): Add nscd_netgroup.
72698         (nscd-modules): Add netgroupcache.
72699         (CFLAGS-netgroupcache.c): Define.
72700         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72701         (cache_search): Add const to second parameter.
72702         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72703         INNETGR.
72704         (dbs): Add netgrdb entry.
72705         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72706         (verify_persistent_db): Handle netgrdb.
72707         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72708         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72709         GETFDNETGR.
72710         (netgroup_response_header): Define.
72711         (innetgroup_response_header): Define.
72712         (datahead): Add netgroup_response_header and innetgroup_response_header
72713         elements.
72714         * nscd/nscd.conf: Add entries for netgroup cache.
72715         * nscd/nscd.h (dbtype): Add netgrdb.
72716         (_PATH_NSCD_NETGROUP_DB): Define.
72717         (netgroup_iov_disabled): Declare.
72718         (xmalloc, xcalloc, xrealloc): Move declarations here.
72719         (cache_search): Adjust prototype.
72720         Add netgroup-related prototypes.
72721         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72722         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72723         (__nscd_innetgr): Declare.
72724         * nscd/selinux.c (perms): Use access_vector_t as element type and
72725         add netgroup-related initializers.
72726         * nscd/netgroupcache.c: New file.
72727         * nscd/nscd_netgroup.c: New file.
72728         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72729         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72730         For four parameters use innetgr.
72731         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72732         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72733         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72734         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72735
72736         * nscd/connections.c (register_traced_file): Don't register file
72737         for disabled databases.
72738
72739 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72740
72741         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72742
72743         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72744         from tree and freeing node.
72745
72746 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72747
72748         * nss/nsswitch.c (__nss_database_lookup): Handle
72749         nss_parse_service_list out of memory case.
72750
72751 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72752
72753         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72754         out of memory case.
72755
72756 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72757
72758         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72759         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72760         pass it down.
72761         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72762         elf_machine_rela, elf_machine_lazy_rel.
72763         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72764         (ELF_DYNAMIC_DO_REL): Likewise.
72765         (ELF_DYNAMIC_DO_RELA): Likewise.
72766         (ELF_DYNAMIC_RELOCATE): Likewise.
72767         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72768         to ELF_DYNAMIC_DO_REL.
72769         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72770         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72771         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72772         elf_machine_rela.
72773         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72774         skip_ifunc, don't call ifunc function if non-zero.
72775         (elf_machine_rela): Likewise.
72776         (elf_machine_lazy_rel): Likewise.
72777         (elf_machine_lazy_rela): Likewise.
72778         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72779         (elf_machine_lazy_rel): Likewise.
72780         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72781         Likewise.
72782         (elf_machine_lazy_rel): Likewise.
72783         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72784         Likewise.
72785         (elf_machine_lazy_rel): Likewise.
72786         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72787         (elf_machine_lazy_rel): Likewise.
72788         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72789         (elf_machine_lazy_rel): Likewise.
72790         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72791         (elf_machine_lazy_rel): Likewise.
72792         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72793         (elf_machine_lazy_rel): Likewise.
72794         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72795         (elf_machine_lazy_rel): Likewise.
72796         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72797         (elf_machine_lazy_rel): Likewise.
72798
72799 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72800
72801         * nss/nss_files/files-init.c (_nss_files_init): Use static
72802         initialization for all the *_traced_file variables.
72803
72804 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72805
72806         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72807
72808 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72809
72810         [BZ #13226]
72811         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72812
72813 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72814
72815         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72816         Reread the line before reparsing it.
72817
72818 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72819
72820         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72821
72822 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72823             Maxim Kuvyrkov  <maxim@codesourcery.com>
72824             Joseph Myers  <joseph@codesourcery.com>
72825
72826         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72827         if needed for __stack_chk_guard.
72828
72829 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72830
72831         * sysdeps/posix/spawni.c (script_execute): Always define it.
72832         It will be optimized away if unused.
72833         (maybe_script_execute): New function.
72834         (__spawni): Call it.
72835
72836         * Makerules: Don't include tls.make.
72837         (config-tls): Always set to thread.
72838         * tls.make.c: File removed.
72839
72840 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72841
72842         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72843         * config.make.in (CPPFLAGS-config): New substituted variable.
72844
72845 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72846
72847         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72848
72849         [BZ #13192]
72850         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72851         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72852
72853 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72854
72855         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72856         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72857         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72858         (CALL_FAIL): Likewise.
72859         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72860         (CALL_FAIL): Macro removed.
72861         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72862
72863 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72864
72865         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72866         for __FINITE_MATH_ONLY__ == 1.
72867
72868 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72869
72870         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72871         __ieee754_sqrt instead of sqrt.
72872         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72873         __ieee754_sqrtf instead of sqrtf.
72874         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72875         __floorf instead of floorf.
72876         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72877         __floorf, __truncf instead of floorf, truncf.
72878
72879 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72880
72881         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72882
72883         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72884         __extern_always_inline.
72885         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72886         32-bit.
72887
72888 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72889
72890         * elf/rtld.c (dl_main): Also relocate in dependency order when
72891         doing symbol dependency testing.
72892
72893 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72894
72895         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72896         Always define `refsym'.
72897
72898 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72899
72900         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72901         (__FD_ELT): Renamed from __FDELT.
72902         * misc/bits/select2.h (__FD_ELT): Likewise.
72903         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72904         __FD_MASK instead of __FDELT, __FDMASK.
72905         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72906         Likewise.
72907         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72908         Likewise.
72909
72910         * elf/Makefile (gen-ldd): Fix pattern.
72911
72912         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72913         (init_tls): Likewise.
72914
72915 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72916
72917         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72918
72919 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72920
72921         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72922         `struct cmsghdr *' instead of `void *'.
72923         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72924         Likewise.
72925
72926 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72927
72928         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72929         if non-absolute.
72930         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72931         ldd_rewrite_script.
72932
72933 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72934
72935         * configure.in: Remove --with-tls option.
72936         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72937         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72938         out in case it is missing.
72939         * sysdeps/ia64/elf/configure.in: Likewise.
72940         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72941         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72942         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72943         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72944         * sysdeps/sh/elf/configure.in: Likewise.
72945         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72946         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72947         * sysdeps/x86_64/elf/configure.in: Likewise.
72948         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72949         * sysdeps/mach/hurd/tls.h: Likewise.
72950
72951         [BZ #13067]
72952         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72953
72954         [BZ #13090]
72955         * configure.in: Fix use of AC_INIT.
72956
72957         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72958
72959 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72960
72961         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72962         __set_errno.
72963         * malloc/hooks.c: Likewise.
72964
72965         [BZ #11929]
72966         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72967         variables statically.
72968         (narenas): Initialize.
72969         (list_lock): Initialize.
72970         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72971         initializtion of main_arena and list_lock.  Small cleanups.
72972         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72973         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72974         Add initializers to main_arena and mp_.
72975         (malloc_state): Remove pagesize member.  Change all users to use
72976         GLRO(dl_pagesize).
72977
72978         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72979         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72980         is always initialized.
72981
72982         * malloc/malloc.c: Removed unused configurations and dead code.
72983         * malloc/arena.c: Likewise.
72984         * malloc/hooks.c: Likewise.
72985         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72986
72987         * include/tls.h: Removed.  USE___THREAD must always be defined.
72988         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72989         * elf/dl-libc.c: Likewise.
72990         * elf/dl-tsd.c: Likewise.
72991         * include/errno.h: Likewise.
72992         * include/netdb.h: Likewise.
72993         * include/resolv.h: Likewise.
72994         * inet/herrno-loc.c: Likewise.
72995         * inet/herrno.c: Likewise.
72996         * malloc/arena.c: Likewise.
72997         * malloc/hooks.c: Likewise.
72998         * malloc/malloc.c: Likewise.
72999         * resolv/res-state.c: Likewise.
73000         * resolv/res_libc.c: Likewise.
73001         * sysdeps/i386/dl-machine.h: Likewise.
73002         * sysdeps/ia64/dl-machine.h: Likewise.
73003         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
73004         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
73005         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
73006         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
73007         * sysdeps/sh/dl-machine.h: Likewise.
73008         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
73009         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
73010         * sysdeps/unix/i386/sysdep.S: Likewise.
73011         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
73012         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
73013         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
73014         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
73015         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
73016         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
73017         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
73018         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
73019         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
73020         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
73021         * sysdeps/unix/x86_64/sysdep.S: Likewise.
73022         * sysdeps/x86_64/dl-machine.h: Likewise.
73023         * tls.make.c: Likewise.
73024
73025         * configure.in: Remove --with-__thread option.  Make tests for
73026         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
73027         tls_model attribute fail if no support is available.  Remove
73028         USE_IN_LIBIO.
73029         * Makeconfig: Adjust for dropped configure option.  All features are
73030         now mandatory.
73031         * Makerules: Likewise.
73032         * Versions.def: Likewise.
73033         * argp/argp-fmtstream.c: Likewise.
73034         * argp/argp-fmtstream.h: Likewise.
73035         * argp/argp-help.c: Likewise.
73036         * assert/assert.c: Likewise.
73037         * config.h.in: Likewise.
73038         * config.make.in: Likewise.
73039         * configure: Likewise.
73040         * configure.in: Likewise.
73041         * csu/Versions: Likewise.
73042         * csu/init.c: Likewise.
73043         * elf/tst-audit2.c: Likewise.
73044         * elf/tst-tls10.c: Likewise.
73045         * elf/tst-tls10.h: Likewise.
73046         * elf/tst-tls11.c: Likewise.
73047         * elf/tst-tls12.c: Likewise.
73048         * elf/tst-tls14.c: Likewise.
73049         * elf/tst-tlsmod11.c: Likewise.
73050         * elf/tst-tlsmod12.c: Likewise.
73051         * elf/tst-tlsmod13.c: Likewise.
73052         * elf/tst-tlsmod13a.c: Likewise.
73053         * elf/tst-tlsmod14a.c: Likewise.
73054         * elf/tst-tlsmod15b.c: Likewise.
73055         * elf/tst-tlsmod16a.c: Likewise.
73056         * elf/tst-tlsmod16b.c: Likewise.
73057         * elf/tst-tlsmod7.c: Likewise.
73058         * elf/tst-tlsmod8.c: Likewise.
73059         * elf/tst-tlsmod9.c: Likewise.
73060         * gmon/gmon.c: Likewise.
73061         * grp/fgetgrent_r.c: Likewise.
73062         * grp/putgrent.c: Likewise.
73063         * hurd/fopenport.c: Likewise.
73064         * include/libc-symbols.h: Likewise.
73065         * include/tls.h: Likewise.
73066         * intl/gettextP.h: Likewise.
73067         * intl/loadinfo.h: Likewise.
73068         * locale/global-locale.c: Likewise.
73069         * locale/localeinfo.h: Likewise.
73070         * mach/devstream.c: Likewise.
73071         * malloc/arena.c: Likewise.
73072         * malloc/set-freeres.c: Likewise.
73073         * misc/err.c: Likewise.
73074         * misc/getttyent.c: Likewise.
73075         * misc/mntent_r.c: Likewise.
73076         * posix/getopt.c: Likewise.
73077         * posix/wordexp.c: Likewise.
73078         * pwd/fgetpwent_r.c: Likewise.
73079         * resolv/Versions: Likewise.
73080         * resolv/res_hconf.c: Likewise.
73081         * shadow/fgetspent_r.c: Likewise.
73082         * shadow/putspent.c: Likewise.
73083         * stdio-common/printf_fphex.c: Likewise.
73084         * stdio-common/tmpfile.c: Likewise.
73085         * stdlib/abort.c: Likewise.
73086         * stdlib/fmtmsg.c: Likewise.
73087         * sunrpc/auth_unix.c: Likewise.
73088         * sunrpc/clnt_perr.c: Likewise.
73089         * sunrpc/clnt_tcp.c: Likewise.
73090         * sunrpc/clnt_udp.c: Likewise.
73091         * sunrpc/clnt_unix.c: Likewise.
73092         * sunrpc/openchild.c: Likewise.
73093         * sunrpc/svc_simple.c: Likewise.
73094         * sunrpc/svc_tcp.c: Likewise.
73095         * sunrpc/svc_udp.c: Likewise.
73096         * sunrpc/svc_unix.c: Likewise.
73097         * sunrpc/xdr.c: Likewise.
73098         * sunrpc/xdr_array.c: Likewise.
73099         * sunrpc/xdr_rec.c: Likewise.
73100         * sunrpc/xdr_ref.c: Likewise.
73101         * sunrpc/xdr_stdio.c: Likewise.
73102
73103 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73104
73105         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
73106
73107 2011-07-03  Andreas Jaeger  <aj@suse.de>
73108
73109         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
73110         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
73111         regenerate with gen-libm-tests.pl.
73112
73113 2010-05-12  Petr Baudis  <pasky@suse.cz>
73114
73115         [BZ #11589]
73116         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
73117         around j0() zero points by switching to j1().
73118         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
73119         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
73120         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
73121         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
73122
73123 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73124
73125         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
73126         instead of 0.
73127         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
73128         instead of 0.
73129         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
73130         Patch in part by Pavel Roskin <proski@gnu.org>.
73131
73132         [BZ #13138]
73133         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
73134         realloc.
73135         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
73136         Free memory block if necessary.
73137
73138         [BZ #12847]
73139         * libio/genops.c (INTDEF): For string streams the _lock pointer can
73140         be NULL.  Don't lock in this case.
73141
73142 2011-09-09  Roland McGrath  <roland@hack.frob.com>
73143
73144         * elf/elf.h (ELFOSABI_GNU): New macro.
73145         (ELFOSABI_LINUX): Define to that.
73146
73147 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
73148
73149         * string/strncat.c (strncat): Undef the symbol in case it has been
73150         defined in bits/string.h.
73151
73152 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73153
73154         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
73155
73156         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
73157         link map.
73158
73159 2011-08-17  Andreas Jaeger  <aj@suse.de>
73160
73161         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
73162
73163 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
73164             Ian Lance Taylor  <iant@google.com>
73165
73166         * math/libm-test.inc (lround_test): New testcase.
73167         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
73168
73169 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
73170
73171         * Makefile: Remove support for automatic cvs check-ins.
73172         * Makerules: Likewise.
73173         * config.make.in: Likewise.
73174         * configure.in: Likewise.
73175         * intl/Makefile: Likewise.
73176         * locale/Makefile: Likewise.
73177         * po/Makefile: Likewise.
73178         * posix/Makefile: Likewise.
73179         * sysdeps/gnu/Makefile: Likewise.
73180         * sysdeps/mach/hurd/Makefile: Likewise.
73181         * sysdeps/sparc/sparc32/Makefile: Likewise.
73182
73183         [BZ #13118]
73184         * posix/Makefile (bug-regex32-ENV): Define.
73185         Patch by John Stanley <jpsinthemix@verizon.net>.
73186
73187         * misc/Makefile (headers): Add bits/select2.h.
73188         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
73189         * misc/bits/select2.h: New file.
73190         * include/bits/select2.h: New file.
73191         * debug/Makefile (routines): Add fdelt_chk.
73192         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
73193         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
73194         FD_ISSET.
73195         * debug/fdelt_chk.c: New file.
73196
73197         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
73198         * wcsmbs/test-wmemcmp.c: Likewise.
73199         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
73200         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
73201
73202 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73203
73204         * string/Makefile (strop-tests): Add memcmp.
73205         * string/test-wmemcmp.c: New file.
73206         * string/test-memcmp.c: Add wmemcmp support.
73207
73208 2011-09-08  Roland McGrath  <roland@hack.frob.com>
73209
73210         [BZ #13153]
73211         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
73212         2011-07-19 change.
73213
73214         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
73215         garbage value in a __mach_port_mod_refs call in the cases of the
73216         task-self and thread-self ports.
73217
73218 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
73219
73220         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
73221
73222 2011-09-08  Andreas Schwab  <schwab@redhat.com>
73223
73224         * elf/dl-load.c (lose): Check for non-null L.
73225
73226 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73227
73228         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
73229
73230         * elf/dl-libc.c (dlerror_run): Pass back error code from
73231         dl_catch_error.
73232
73233         [BZ #13123]
73234         * elf/dl-load.c (lose): Free l_origin if it is valid.
73235
73236         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
73237         names.
73238         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
73239         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73240         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73241         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73242         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
73243         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
73244
73245 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73246
73247         * sysdeps/powerpc/fpu/e_hypot.c: New file.
73248         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
73249         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
73250         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
73251         * sysdeps/powerpc/fpu/k_cosf.c: New file.
73252         * sysdeps/powerpc/fpu/k_sinf.c: New file.
73253         * sysdeps/powerpc/fpu/s_cosf.c: New file.
73254         * sysdeps/powerpc/fpu/s_sinf.c: New file.
73255         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
73256         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
73257
73258 2011-08-15  Alan Modra  <amodra@gmail.com>
73259
73260         [BZ #13092]
73261         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
73262         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
73263         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
73264         ppc_mcount to static-only-routines.
73265         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
73266         __mcount_internal.
73267         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
73268         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
73269
73270 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
73271
73272         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
73273         for finite and infinity parameters.
73274
73275 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
73276
73277         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
73278         and add nop instructions for throughput optimization.
73279         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
73280
73281 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
73282
73283         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
73284         aligned copy for power7 with vector-scalar instructions.
73285         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
73286
73287 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
73288
73289         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
73290         AVX check.
73291
73292 2011-09-07  Andreas Schwab  <schwab@redhat.com>
73293
73294         [BZ #13144]
73295         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
73296         last change.
73297
73298 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73299
73300         * sysdeps/unix/sysv/linux/x86_64/init-first.c
73301         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
73302         syscall wrapper around clock_gettime in __vdso_clock_gettime.
73303         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
73304         clock_gettime.
73305
73306 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73307
73308         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
73309         Forgot to demangle the pointer.
73310
73311         * sysdeps/i386/sysdep.h: Define atom_text_section.
73312         * sysdeps/x86_64/sysdep.h: Likewise.
73313         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
73314         section with atom_text_section.
73315         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73316         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73317         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
73318         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73319         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
73320
73321         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
73322         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
73323         already be defined.  Change to take two parameters and don't assign
73324         result to variable.  Adjust all users.
73325         Define INTERNAL_GETTIME if not already defined.
73326         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
73327         call.
73328         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
73329         HAVE_CLOCK_GETTIME_VSYSCALL.
73330         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
73331
73332         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
73333         gettimeofday vsyscall, just use time.
73334
73335 2011-09-06  Andreas Schwab  <schwab@redhat.com>
73336
73337         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
73338         <errno.h>.
73339
73340 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73341
73342         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
73343         syscall on x86-64.
73344         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
73345         syscall.
73346         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
73347         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
73348         syscall if possible.
73349
73350 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73351
73352         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
73353         e_ident.  Don't pass to find_mapsXX.
73354         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
73355
73356 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73357
73358         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73359         strchr-sse2-no-bsf strrchr-sse2-no-bsf
73360         * sysdeps/x86_64/multiarch/strchr.S: Update.
73361         Check bit_slow_BSF bit.
73362         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
73363         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
73364         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
73365
73366 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73367
73368         [BZ #13134]
73369         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
73370         before glibc 2.15.
73371         (tryshell): Define.
73372         (__spawni): Change last parameter to be flag.  Test
73373         SPAWN_XFLAGS_USE_PATH flag to use path or not.
73374         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
73375         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
73376         * posix/spawni.c: Likewise.
73377         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
73378         * posix/spawnp.c: Likewise.  Change normal version to use
73379         SPAWN_XFLAGS_USE_PATH.
73380         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
73381         SPAWN_XFLAGS_TRY_SHELL.
73382
73383         [BZ #13150]
73384         * posix/glob.h: Remove gcc 1.x support.
73385
73386         [BZ #13068]
73387         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
73388
73389 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73390
73391         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73392         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
73393         strrchr-sse2-bsf
73394         * sysdeps/i386/i686/multiarch/strchr.S: New file.
73395         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
73396         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
73397         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
73398         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
73399         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
73400
73401 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73402
73403         * sysdeps/x86_64/wcscmp.S: New file.
73404
73405         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
73406         wcscmp-c wcscmp-sse2
73407         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
73408         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
73409         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
73410         * wcsmbs/wcscmp.c: Allow renaming.
73411
73412 2011-09-05  David S. Miller  <davem@davemloft.net>
73413
73414         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
73415         stack slot, rather than the struct return pointer slot.
73416         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
73417         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
73418         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
73419         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
73420
73421 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73422
73423         * po/ja.po: Update from translation team.
73424
73425         [BZ #13144]
73426         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
73427         kernel in 64-bit binaries.
73428
73429 2011-09-01  David S. Miller  <davem@davemloft.net>
73430
73431         * elf/elf.h (HWCAP_SPARC_*): Move to..
73432         * sysdeps/sparc/sysdep.h: this new file and add new values.
73433         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
73434         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
73435         _DL_HWCAP_COUNT to 24.
73436         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
73437         entries.
73438         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
73439         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
73440         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
73441         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
73442         instead of magic constants.
73443         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73444
73445 2011-08-31  David S. Miller  <davem@davemloft.net>
73446
73447         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
73448         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
73449         Reimplement to do errno handling inline.
73450         (SYSCALL_ERROR_HANDLER): New macro.
73451         (__SYSCALL_STRING): Do not do errno handling in asm.
73452         (__CLONE_SYSCALL_STRING): Delete.
73453         (__INTERNAL_SYSCALL_STRING): Delete.
73454         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
73455         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
73456         (PSEUDO): Reimplement to do errno handling inline.
73457         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
73458         (SYSCALL_ERROR_HANDLER): New macro.
73459         (__SYSCALL_STRING): Do not do errno handling in asm.
73460         (__CLONE_SYSCALL_STRING): Delete.
73461         (__INTERNAL_SYSCALL_STRING): Delete.
73462         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
73463         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
73464         i386.
73465         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
73466         (inline_syscall*): Add 'err' argument.
73467         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
73468         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
73469         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
73470         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
73471
73472         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
73473         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
73474
73475 2011-08-30  Andreas Schwab  <schwab@redhat.com>
73476
73477         * elf/rtld.c (dl_main): Relocate objects in dependency order.
73478
73479 2011-08-29  Jiri Olsa <jolsa@redhat.com>
73480
73481         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
73482         directive.
73483
73484 2011-08-24  David S. Miller  <davem@davemloft.net>
73485
73486         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
73487
73488 2011-08-24  Andreas Schwab  <schwab@redhat.com>
73489
73490         * elf/Makefile: Add rules to build and run unload8 test.
73491         * elf/unload8.c: New file.
73492         * elf/unload8mod1.c: New file.
73493         * elf/unload8mod1x.c: New file.
73494         * elf/unload8mod2.c: New file.
73495         * elf/unload8mod3.c: New file.
73496
73497         * elf/dl-close.c (_dl_close_worker): Reset private search list if
73498         it wasn't used.
73499
73500 2011-08-23  David S. Miller  <davem@davemloft.net>
73501
73502         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
73503         subtract stack bias.
73504         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
73505         %sp not %fp in calculations.
73506         (_JMPBUF_UNWINDS_ADJ): Likewise.
73507
73508         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
73509         (aio_suspend): Call it to force an exception region around the
73510         AIO_MISC_WAIT() invocation.
73511
73512 2011-08-23  Andreas Schwab  <schwab@redhat.com>
73513
73514         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
73515         backslash.
73516
73517 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
73518
73519         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
73520         protection macro.
73521         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
73522         and <dl-machine.h>.
73523         (Elf64_FuncDesc): Remove.
73524
73525 2011-08-22  David S. Miller  <davem@davemloft.net>
73526
73527         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
73528         sigaltstack check, add missing cfi directives.
73529         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
73530         missing cfi directives, and sigaltstack handling.
73531
73532 2011-08-16  Andreas Schwab  <schwab@redhat.com>
73533
73534         [BZ #11724]
73535         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
73536         object is seen twice.
73537         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73538
73539         * elf/Makefile (distribute): Add tst-initorder2.c.
73540         (tests): Add tst-initorder2.
73541         (modules-names): Add tst-initorder2a tst-initorder2b
73542         tst-initorder2c tst-initorder2d.  Add rules to build them.
73543         ($(objpfx)tst-initorder2.out): New rule.
73544         * elf/tst-initorder2.c: New file.
73545         * elf/tst-initorder2.exp: New file.
73546
73547 2011-08-22  Andreas Schwab  <schwab@redhat.com>
73548
73549         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
73550
73551         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
73552         dependencies back to end of function.
73553
73554         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
73555         $(elfobjdir)/ld.so.
73556
73557 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
73558
73559         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
73560         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
73561         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
73562         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
73563         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
73564         of __vdso_gettimeofday.
73565         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
73566         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
73567         attribute_hidden.
73568         (_libc_vdso_platform_setup): Remove initialization of
73569         __vdso_gettimeofday and __vdso_time.
73570
73571 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73572
73573         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
73574         and fgetc_unlocked.
73575         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
73576         getc_unlocked.
73577
73578         * elf/dl-open.c (add_to_global): Report additions to the global scope
73579         for LD_DEBUG=scopes.
73580         (dl_open_worker): Also print scope of newly loaded dependencies.
73581         (_dl_show_scope): Indicate if there is no scope.
73582
73583         [BZ #13114]
73584         * stdio-common/Makefile (tests): Add bug24.
73585         * stdio-common/bug24.c: New file.
73586
73587 2011-08-19  Andreas Jaeger  <aj@suse.de>
73588
73589         [BZ #13114]
73590         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
73591         non-existant file when using close-on-exec mode.
73592
73593 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73594
73595         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
73596         the very first instruction.
73597
73598         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
73599         the CFI state in the end.
73600         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
73601         inclusion of dl-trampoline.h.
73602         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
73603
73604 2011-08-19  Andreas Schwab  <schwab@redhat.com>
73605
73606         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
73607         expectations for long double.
73608
73609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
73610         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
73611
73612 2011-08-14  David S. Miller  <davem@davemloft.net>
73613
73614         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
73615         artificual limit depends upon the system page size.
73616
73617 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73618
73619         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
73620         * resolv/Makefile: Define CFLAGS-libresolv.
73621
73622 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73623
73624         * nss/makedb.c (compute_tables): Make variables used in nested
73625         function static.
73626
73627 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73628
73629         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73630         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73631         if buffer was too small.
73632
73633         * elf/pldd.c (main): Attach to all threads in the process.
73634         Rewrite /proc handling to use *at functions.
73635
73636 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73637
73638         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73639         specifies first scope to show.
73640         (dl_open_worker): Update callers.  Move printing scope of new
73641         object to before the relocation.
73642         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73643         * sysdeps/generic/ldsodefs.h: Update declaration.
73644
73645         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73646         string for the scope number.
73647
73648 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73649
73650         * nscd/servicescache.c (cache_addserv): Make sure written is always
73651         initialized.
73652
73653 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73654
73655         * sysdeps/i386/i486/bits/atomic.h
73656         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73657         statement expression, so as to suppress "set but not used" warning.
73658         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73659
73660         * string/strncat.c (STRNCAT): Use prototype definition.
73661
73662         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73663         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73664         -Iprograms here.
73665         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73666         (localedef-modules): Add localedef.
73667         (locale-modules): Add locale.
73668
73669         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73670         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73671         to avoid a warning.
73672
73673 2011-08-14  David S. Miller  <davem@davemloft.net>
73674
73675         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73676         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73677
73678 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73679
73680         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73681         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73682         * elf/rtld.c (dl_main): Set l_name of vDSO.
73683         Call _dl_show_scope when DL_DEBUG_SCOPES.
73684         (process_dl_debug): Recognize scopes flag and also set it for all.
73685         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73686         Declare _dl_show_scope.
73687
73688         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73689         (do_dlopen): Pass caller_dlopen to dl_open.
73690         (__libc_dlopen_mode): Initialize caller_dlopen.
73691
73692         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73693         of libc.  Make tolower call locale-independent.  Optimize a bit by
73694         using isdigit instead of isalnum.
73695         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73696
73697 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73698
73699         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73700         was a dependency or dynamically loaded.
73701
73702 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73703
73704         * intl/l10nflist.c: Allow architecture-specific pop function.
73705         * sysdeps/x86_64/l10nflist.c: New file.
73706
73707         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73708         classification.
73709
73710 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73711
73712         * include/dirent.h: Add libc_hidden_proto for scandirat and
73713         scandirat64.  Don't declare __scandirat64.
73714         * dirent/scandirat.c: Add libc_hidden_def.
73715         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73716         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73717
73718 2011-08-10  David S. Miller  <davem@davemloft.net>
73719
73720         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73721         enum.
73722         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73723         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73724         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73725
73726 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73727
73728         * Versions.def [libc]: Add GLIBC_2.15.
73729         * dirent/Makefile (routines): Add scandirat and scandirat64.
73730         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73731         GLIBC_2.15.
73732         * dirent/dirent.h: Declare scandirat and scandirat64.
73733         * dirent/scandirat.c: New file.
73734         * dirent/scandirat64.c: New file.
73735         * sysdeps/wordsize-64/scandirat.c: New file.
73736         * sysdeps/wordsize-64/scandirat64.c: New file.
73737         * dirent/opendir.c: Define opendirat.
73738         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73739         using scandirat.
73740         * dirent/scandir64.c: Adjust for scandir.c change.
73741         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73742         __scandirat64, and __scandir_cancel_handler.
73743         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73744         additional parameter and use openat instead of open (outside of ld.so).
73745         Add new __opendir as wrapper around __opendirat.
73746         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73747         here without requiring old scandirat implementation.
73748
73749 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73750
73751         * dirent/scandir.c (cancel_handler): Renamed to
73752         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73753         defined.  Adjust users.
73754         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73755         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73756
73757 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73758
73759         * string/test-string.h (IMPL): Use __STRING to expand name and then
73760         stringify it.
73761
73762         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73763         of cleanups.
73764
73765 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73766
73767         * string/Makefile: Update.
73768         (strop-tests): Append strncat.
73769         * string/test-wcscmp.c: New file.
73770         New comprehensive test for wcscmp.
73771         * string/test-strcmp.c: Update.
73772         (WIDE): New define.
73773
73774 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73775
73776         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73777         line.
73778
73779 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73780
73781         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73782         encoding to ACE if AI_IDN.
73783
73784 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73785
73786         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73787         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73788
73789 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73790
73791         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73792         Fix overflow bug in strncat.
73793         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73794
73795         * string/test-strncat.c: Update.
73796         Add new tests for checking overflow bugs.
73797
73798 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73799
73800         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73801         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73802         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73803         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73804         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73805         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73806         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73807         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73808         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73809
73810         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73811         (USE_AS_STRCAT): Define.
73812         Add strcat and strncat support.
73813         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73814
73815 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73816
73817         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73818         __n bigger than INT_MAX+1.
73819         (__strncmp_g): Likewise.
73820
73821 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73822
73823         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73824         * libio/stido.h: Likewise.
73825
73826         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73827         (AF_NFC): Define.
73828         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73829         (AF_NFC): Define.
73830
73831         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73832         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73833         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73834         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73835         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73836
73837         [BZ #13021]
73838         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73839         installed.
73840
73841         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73842         typo.
73843         (_dl_x86_64_save_sse): Likewise.
73844
73845 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73846
73847         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73848         OSXSAVE.
73849         (_dl_x86_64_save_sse): Likewise.
73850
73851         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73852
73853         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73854
73855 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73856
73857         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73858         change.
73859         (_dl_x86_64_save_sse): Use correct AVX check.
73860
73861 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73862
73863         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73864         bug in strncpy/strncat.
73865         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73866
73867 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73868
73869         * string/tester.c (test_strcat): Add tests for different alignments
73870         of source and destination.
73871         (test_strncat): Likewise.
73872
73873 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73874
73875         [BZ #12852]
73876         * posix/glob.c (glob): Check passed in values before using them in
73877         expressions to avoid some overflows.
73878         (glob_in_dir): Likewise.
73879
73880         [BZ #13007]
73881         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73882         check for AVX enablement so that we don't crash with old kernels and
73883         new hardware.
73884         * elf/tst-audit4.c: Add same checks here.
73885         * elf/tst-audit6.c: Likewise.
73886
73887         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73888
73889 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73890
73891         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73892
73893 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73894
73895         * po/cs.po: Update from translation team.
73896         * po/bg.po: Likewise.
73897
73898 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73899
73900         * misc/sys/cdefs.h: Add support for const attribute.
73901         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73902         to gnu_dev_{major,minor,makedev} functions.
73903
73904 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73905
73906         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73907
73908 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73909
73910         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73911         strlen results.
73912
73913 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73914
73915         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73916         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73917         register in order to avoid conflicts with the soft frame pointer
73918         being held in r11 when necessary.
73919         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73920         (INTERNAL_VSYSCALL_NCS): Likewise.
73921
73922 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73923
73924         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73925         * elf/dl-fini.c (_dl_fini): Adjust caller.
73926         * elf/dl-close.c (_dl_close_worker): Likewise.
73927         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73928
73929 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73930
73931         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73932         "aux_cache->nlibs < 0".
73933
73934         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73935         in the reload-count case.
73936
73937 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73938
73939         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73940         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73941         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73942         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73943         * sysdeps/x86_64/multiarch/strcat.S: New file.
73944         * sysdeps/x86_64/multiarch/strncat.S: New file.
73945         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73946         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73947         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73948         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73949         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73950         (USE_AS_STRCAT): Define.
73951         Add strcat and strncat support.
73952         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73953         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73954         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73955         * string/strncat.c: Update.
73956         (USE_AS_STRNCAT): Define.
73957         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73958         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73959         and i7.
73960         * sysdeps/x86_64/multiarch/init-arch.h
73961         (bit_Prefer_PMINUB_for_stringop): New.
73962         (index_Prefer_PMINUB_for_stringop): Likewise.
73963         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73964         bit_Prefer_PMINUB_for_stringop.
73965
73966 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73967
73968         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73969         buffer64.
73970         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73971         of casting of buffer.
73972         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73973         buffer32 and buffer64.
73974         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73975         writes instead of casting of buffer.
73976         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73977         buffer32.
73978         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73979         casting of buffer.
73980
73981 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73982
73983         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73984
73985 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73986
73987         * nscd/nscd.c (termination_handler): Don't do anything for a database
73988         if it has not yet been initialized.
73989
73990 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73991
73992         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73993
73994 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73995
73996         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73997
73998 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73999
74000         * po/nl.po: Update from translation team.
74001         * po/sv.po: Likewise.
74002
74003 2011-07-16  Roland McGrath  <roland@hack.frob.com>
74004
74005         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
74006         now disallowed by GCC.
74007
74008         * configure.in (use-default-link): Default to yes if a test -shared
74009         link meets our qualifications.
74010         * configure: Regenerated.
74011
74012         * config.make.in (output-format): New variable.
74013         * configure.in: Check for ld --print-output-format support.
74014         * configure: Regenerated.
74015         * Makerules ($(common-objpfx)format.lds)
74016         [$(output-format) != unknown]: Just use $(output-format),
74017         instead of the linker-script munging.
74018
74019 2011-07-14  Roland McGrath  <roland@hack.frob.com>
74020
74021         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
74022         of $(common-objpfx)shlib.lds.
74023         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
74024
74025         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
74026         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
74027
74028         * configure.in (-z relro check): Adjust test code to add a large
74029         writable data section after it.
74030         * configure: Regenerated.
74031
74032 2011-07-11  Roland McGrath  <roland@hack.frob.com>
74033
74034         * configure.in (-z relro check): Fix test code to make the variable
74035         truly const.
74036         * configure: Regenerated.
74037
74038 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
74039
74040         * nscd/nscd.h (struct traced_file): Define.
74041         (struct database_dyn): Remove inotify_descr, reset_res, and filename
74042         elements.  Add traced_files.
74043         (inotify_fd): Declare.
74044         (register_traced_file): Declare.
74045         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
74046         (inotify_fd): Export.
74047         (resolv_conf_descr): Remove.
74048         (nscd_init): Move inotify descriptor creation to main.
74049         Don't register files for notification here.
74050         (register_traced_file): New function.
74051         (invalidate_cache): Don't use reset_res to determine whether to call
74052         res_init, go through the list of registered files.
74053         (main_loop_poll): The inotify descriptors are now stored in the
74054         structures for the traced files.
74055         (main_loop_epoll): Likewise.
74056         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
74057         to __nss_disable_nscd.
74058         * nscd/cache.c (prune_cache): There is no single inotify descriptor
74059         for a database anymore.  Check the records for all the registered
74060         files instead.
74061         * nss/Makefile (libnss_files-routines): Add files-init.
74062         (libnss_db-routines): Add db-init.
74063         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
74064         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
74065         * nss/nss_db/db-init.c: New file.
74066         * nss/nss_files/files-init.c: New file.
74067         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
74068         __nss_lookup_function.
74069         (__nss_lookup_function): Call nss_load_library.
74070         (nss_load_all_libraries): New function.
74071         (__nss_disable_nscd): Take parameter with callback function for files
74072         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
74073         used for the cached services.
74074         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
74075         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
74076         options for features to all the files in nscd.
74077
74078         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
74079
74080 2011-07-10  Roland McGrath  <roland@hack.frob.com>
74081
74082         * csu/elf-init.c (__libc_csu_init): Comment typo.
74083
74084 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
74085
74086         * po/pl.po: Update from translation team.
74087         * po/ja.po: Likewise.
74088         * po/ru.po: Likewise.
74089         * po/ko.po: Likewise.
74090         * po/fr.po: Likewise.
74091
74092 2011-07-09  Roland McGrath  <roland@hack.frob.com>
74093
74094         * configure.in (.ctors/.dtors header and trailer check):
74095         Use an empirical test on a built program.
74096         * configure: Regenerated.
74097
74098         * configure.in (-z relro check): Use an empirical test on a built DSO.
74099         Detect, but do not require, on ia64.
74100         * configure: Regenerated.
74101
74102         * configure.in (READELF): Find it with AC_CHECK_TOOL.
74103         Update tests that use readelf to use $READELF instead.
74104         * configure: Regenerated.
74105
74106 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
74107
74108         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
74109         if the result is not used.
74110
74111 2011-07-05  Andreas Jaeger  <aj@suse.de>
74112
74113         [BZ#9696]
74114         * stdlib/tst-strtod.c: Add testcase.
74115
74116 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
74117
74118         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
74119         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
74120         The latter has a higher limit.  Take additional parameter to pass to
74121         the new function.
74122         (__pathconf): Pass file to __statfs_link_max.
74123         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
74124         __statfs_link_max.
74125         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
74126         __statfs_link_max.
74127
74128         [BZ #12868]
74129         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
74130         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
74131         Handle Lustre.
74132         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
74133         (__statfs_filesize_max): Likewise.
74134         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
74135
74136 2011-07-05  Andreas Jaeger  <aj@suse.de>
74137
74138         * resolv/res_comp.c (dn_skipname): Remove unused variable.
74139
74140 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
74141
74142         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
74143         `status' variable.
74144         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
74145         Likewise.
74146
74147 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
74148
74149         * Makefile (strop-tests): Add strncat.
74150         * string/test-strncat.c: New file.
74151
74152 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
74153
74154         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
74155
74156 2011-06-21  Andreas Jaeger  <aj@suse.de>
74157
74158         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
74159         Copy rule from iconvdata/Makefile.
74160
74161 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74162
74163         [BZ #12922]
74164         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
74165         but no long options are defined, just return 'W'.
74166
74167 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
74168
74169         [BZ #9696]
74170         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
74171
74172 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74173
74174         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
74175         netgroups to read.
74176         (innetgr): Likewise.
74177
74178 2011-07-05  Roland McGrath  <roland@hack.frob.com>
74179
74180         * config.make.in (install_root): Default to $(DESTDIR).
74181
74182 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
74183
74184         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
74185
74186 2011-07-02  Roland McGrath  <roland@hack.frob.com>
74187
74188         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
74189
74190         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
74191         containing directory rather than embedding absolute directory names.
74192
74193         * scripts/check-local-headers.sh: Rewritten using awk.
74194         Match by word, not by line.  Print error messages for matches.
74195         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
74196
74197         * Makerules [shlib-lds-flags empty]:
74198         ($(common-objpfx)libc_pic.opts): New target.
74199         ($(common-objpfx)libc_pic.os.clean): New target.
74200         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
74201
74202         * config.make.in (OBJCOPY): New variable.
74203         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
74204         * configure: Regenerated.
74205
74206         * config.make.in (use-default-link): New variable.
74207         * configure.in (use_default_link): Grok --with-default-link to set it.
74208         * configure: Regenerated.
74209         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
74210         (shlib-lds, shlib-lds-flags): Define to empty.
74211
74212         * Makerules (shlib-lds): New variable.
74213         (shlib-lds-flags): New variable.
74214         (build-shlib, build-moduile, build-module-asneeded): Use it.
74215         ($(common-objpfx)libc.so): Use $(shlib-lds).
74216         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
74217         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
74218
74219         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
74220         DT_FLAGS/DT_FLAGS_1 with zero flags.
74221
74222         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
74223         linker script munging.
74224
74225 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
74226
74227         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
74228         as 128-bit value.
74229         * crypt/sha512.c (sha512_process_block): Perform total addition using
74230         128-bit if possible.
74231         (__sha512_finish_ctx): Likewise.
74232         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
74233         as 64-bit value.
74234         * crypt/sha256.c (SWAP64): Define.
74235         (sha256_process_block): Perform total addition using 64-bit if
74236         possible.
74237         (__sha256_finish_ctx): Likewise.
74238
74239 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
74240
74241         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
74242         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74243         * nscd/hstcache.c (cache_addhst): Likewise.
74244         * nscd/grpcache.c (cache_addgr): Likewise.
74245         * nscd/aicache.c (addhstaiX): Likewise.
74246         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
74247
74248 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
74249
74250         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
74251         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74252         * nscd/hstcache.c (cache_addhst): Likewise.
74253         * nscd/grpcache.c (cache_addgr): Likewise.
74254         * nscd/aicache.c (addhstaiX): Likewise.
74255
74256 2011-07-01  Andreas Schwab  <schwab@redhat.com>
74257
74258         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
74259         domain only when needed.
74260
74261 2011-06-30  Andreas Schwab  <schwab@redhat.com>
74262
74263         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
74264         is always restored.
74265
74266 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
74267
74268         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
74269         are re-adding the entry.
74270         * nscd/servicescache.c (cache_addserv): Likewise.
74271
74272 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
74273
74274         * sysdeps/generic/dl-irel.h: fix protection against multiple
74275         inclusions.
74276         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
74277
74278 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
74279
74280         [BZ #12935]
74281         * malloc/memusage.sh: Fix quoting in message.
74282         * debug/xtrace.sh: Likewise.
74283
74284         * configure.in: Remove support for --experimental-malloc option, make
74285         it the default.
74286         * config.make.in: Likewise.
74287         * malloc/Makefile: Likewise.
74288
74289 2011-06-27  Andreas Schwab  <schwab@redhat.com>
74290
74291         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
74292         two-byte characters.
74293
74294 2011-06-27  Roland McGrath  <roland@hack.frob.com>
74295
74296         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
74297         AC_CACHE_CHECK invocation.
74298         * configure: Regenerated.
74299
74300         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
74301
74302 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
74303
74304         [BZ #12350]
74305         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
74306         bit from old_res_options.
74307
74308         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
74309
74310         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
74311         value type for setfct.
74312
74313 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
74314
74315         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74316         __gettimeofday instead of gettimeofday.
74317
74318 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
74319
74320         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
74321
74322 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
74323
74324         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
74325
74326         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
74327         info.
74328
74329 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74330
74331         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
74332         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74333         strcpy-sse2-unaligned strncpy-sse2-unaligned
74334         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
74335         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
74336         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
74337         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
74338         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
74339         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
74340         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
74341         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
74342         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
74343         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
74344         (STRCPY): Support SSE2 and SSSE3 versions.
74345
74346 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
74347
74348         [BZ #12874]
74349         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
74350         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
74351         kernels which artificially limit size of requests.
74352
74353 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74354
74355         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
74356         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74357         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
74358         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
74359         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
74360         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
74361         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
74362         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
74363         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
74364         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
74365         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
74366         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
74367         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
74368         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
74369         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
74370         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74371         Enable unaligned load optimization for Intel Core i3, i5 and i7
74372         processors.
74373         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
74374         Define.
74375         (index_Fast_Unaligned_Load): Define.
74376         (HAS_FAST_UNALIGNED_LOAD): Define.
74377
74378 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
74379
74380         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
74381
74382 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74383
74384         [BZ #12907]
74385         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
74386         until it is clear that the information is realy needed.
74387         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
74388
74389 2011-06-22  Andreas Schwab  <schwab@redhat.com>
74390
74391         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
74392
74393 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74394
74395         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74396         /sys/devices/system/cpu/online if it is usable.
74397
74398         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
74399         reading the information from the /proc filesystem to once a second.
74400
74401 2011-06-21  Andreas Jaeger  <aj@suse.de>
74402
74403         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
74404         NULL after inclusion of kernel headers.
74405
74406 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
74407
74408         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
74409         calls to internal_setent.
74410
74411         [BZ #12885]
74412         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
74413         addresses using gethostbyname4_r ignore IPv4 addresses.
74414
74415         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
74416         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
74417
74418         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
74419
74420 2011-06-20  David S. Miller  <davem@davemloft.net>
74421
74422         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
74423         inclusions.
74424         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
74425
74426         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
74427         (elf_irel): Use it.
74428         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
74429         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
74430         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
74431         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
74432         * sysdeps/x86_64/dl-irel.h: Likewise.
74433
74434         * elf/dl-runtime.c: Use elf_ifunc_invoke.
74435         * elf/dl-sym.c: Likewise.
74436
74437 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74438
74439         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
74440         need to dereference resplen2.
74441
74442 2011-06-14  Andreas Schwab  <schwab@redhat.com>
74443
74444         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
74445
74446 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74447
74448         * Makeconfig: Define vardbdir and inst_vardbdir.
74449         * nss/Makefile: Add rules to install db-Makefile.
74450
74451         * nss/nss_db/db-XXX.c: Cleanup.
74452
74453         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
74454         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
74455         GLIBC_PRIVATE.
74456         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
74457         * nss/makedb.c: Implement -g option to specify that value strings
74458         are generated and should not be added to table iterated over for
74459         get*ent calls.
74460         * nss/nss_db/db-initgroups.c: New file.
74461
74462         * nss/getent.c: Add support for initgroups lookups through getgrouplist
74463         interface.
74464
74465         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
74466         (internal_getgrouplist): Adjust to name change.
74467         Update use_initgroups_entry if this is not the first call.
74468         * nss/databases.def: Add initgroups entry.
74469
74470         * nss/makedb.c (compute_tables): Check result of multiple hash table
74471         sizes to minimize maximum chain length.
74472
74473 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
74474
74475         * Versions.def: Add entry for libnss_db.
74476         * shlib-versions: Likewise.
74477         * nss/Makefile: Add rules to build libnss_db.
74478         * nss/Versions: Add libnss_db information.  Organize libnss_files
74479         entries better.
74480         * nss/db-Makefile: Add gshadow support.  Change rules for the new
74481         makedb progra.  Some minor improvements to generate smaller files.
74482         * nss/nss_db/nss_db.h: Move NSS database header data structures to
74483         here from...
74484         * nss/makedb.c: ...here.
74485         Improve database format to be smaller and require less memory at
74486         runtime.
74487         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
74488         db anymore.
74489         * nss/nss_db/db-netgrp.c: Likewise.
74490         * nss/nss_db/db-open.c: Likewise.
74491         * nss/nss_files/flies-XXX.x: Adjust comments.
74492         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
74493         * nss/nss_files/files-grp.c: Likewise.
74494         * nss/nss_files/files-hosts.c: Likewise.
74495         * nss/nss_files/files-network.c: Likewise.
74496         * nss/nss_files/files-proto.c: Likewise.
74497         * nss/nss_files/files-pwd.c: Likewise.
74498         * nss/nss_files/files-rpc.c: Likewise.
74499         * nss/nss_files/files-service.c: Likewise.
74500         * nss/nss_files/files-sgrp.c: Likewise.
74501         * nss/nss_files/files-spwd.c: Likewise.
74502         * nss/nss_db/db-alias.c: Removed.
74503         * nss/nss_db/dummy-db.h: Removed.
74504
74505 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
74506
74507         * nss/makedb.c: Rewritten to not use database library.
74508         * nss/Makefile: Update to build new makedb program.
74509
74510 2011-06-14  Andreas Jaeger  <aj@suse.de>
74511
74512         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
74513         memset declaration.
74514
74515 2011-06-10  Andreas Schwab  <schwab@redhat.com>
74516
74517         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
74518         tmpbuf.
74519
74520 2011-06-10  Roland McGrath  <roland@hack.frob.com>
74521
74522         * Makerules (shlib.lds): Fail if the linker script comes out empty.
74523         * elf/Makefile ($(objpfx)ld.so): Likewise.
74524
74525         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
74526         Don't list ld.so twice in dependencies.
74527
74528         * posix/bug-regex31.c: Include <stdlib.h>.
74529
74530         * nscd/hstcache.c (cache_addhst): Remove unused variable.
74531
74532         * nis/nss_compat/compat-spwd.c
74533         (getspent_next_nss_netgr): Remove unused variable.
74534         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
74535
74536         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
74537         nonmembers" output to use the right array.
74538
74539         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
74540
74541         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
74542
74543         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
74544         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
74545         * catgets/gencat.c (read_input_file): Likewise.
74546         * locale/programs/locarchive.c (enlarge_archive): Likewise.
74547
74548         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
74549         variable definition inside #if's controlling its use.
74550
74551         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
74552
74553         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
74554
74555         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
74556
74557         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
74558         unreachable code.
74559
74560         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
74561
74562         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
74563         * configure: Regenerated.
74564
74565         * Makerules: Revert last change.
74566         * elf/Makefile: Likewise.
74567
74568 2011-06-09  Roland McGrath  <roland@hack.frob.com>
74569
74570         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
74571         * elf/Makefile ($(objpfx)librtld.os): Likewise.
74572         (reloc-link): Likewise.
74573
74574 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
74575
74576         * elf/Makefile: Add rules to build pldd.
74577         * elf/pldd.c: New file.
74578         * elf/pldd-xx.c: New file.
74579
74580 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
74581
74582         * version.h: Update for 2.15 development version.
74583
74584 2011-06-07  David S. Miller  <davem@davemloft.net>
74585
74586         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
74587         ifuncs.
74588         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
74589         elf_machine_lazy_rel): Likewise.
74590         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
74591         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
74592         elf_machine_lazy_rel): Likewise.
74593         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
74594         dl_hwcap via passed in argument.
74595         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
74596         Likewise.
74597
74598 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74599
74600         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
74601
74602 2011-06-06  Roland McGrath  <roland@hack.frob.com>
74603
74604         [BZ #12849]
74605         * manual/fdl-1.1.texi: New file, verbatim from:
74606         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
74607         * manual/lgpl-2.1.texi: New file, verbatim from:
74608         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
74609         * manual/Makefile (licenses): New variable, list those new file names.
74610         (texis): Use it.
74611         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
74612
74613         * manual/fdl.texi: File removed.
74614         * manual/lesser.texi: File removed.
74615         * manual/libc.texinfo (Copying, Documentation License):
74616         Use new @include file names, put @appendix directive before @include.
74617
74618 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
74619
74620         [BZ #12841]
74621         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74622         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74623         (mq_open): Add __NTH.
74624
74625 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74626
74627         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74628         Assume Intel Core i3/i5/i7 processor if AVX is available.
74629
74630 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74631
74632         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74633         typo.
74634
74635 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74636
74637         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74638         memory.  Use alloca_account.  Fix memory leak when retrying.
74639
74640 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74641
74642         * version.h (RELEASE): Bump for 2.14 release.
74643         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74644
74645         * config.make.in (RANLIB): Remove entry.
74646
74647 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74648
74649         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74650         (libc.pot): Work around missing support for .ksh extension in xgettext.
74651
74652         [BZ #12684]
74653         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74654         if both request failed.
74655         (send_dg): In case of server errors clear resplen or *resplen2.
74656
74657         [BZ #12454]
74658         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74659         when there are multiple maps.
74660         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74661         (_dl_fini): Remove test here.
74662
74663         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74664
74665 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74666
74667         [BZ #12350]
74668         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74669         bit from old_res_options.
74670         (gaih_inet): Likewise.
74671
74672         [BZ #11099]
74673         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74674         as signed.
74675
74676         * resolv/res_init.c (res_setoptions): Make the code more compact.
74677
74678         [BZ #11558]
74679         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74680         set RES_USEVC.
74681
74682         [BZ #11634]
74683         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74684
74685         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74686
74687         [BZ #11781]
74688         * malloc/malloc.h: Declare malloc hook variables as volatile.
74689
74690         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74691         in last patch.
74692
74693         [BZ #11799]
74694         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74695         raise in the comment.
74696         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74697         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74698         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74699
74700 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74701
74702         [BZ #12811]
74703         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74704         grow the buffers more if it already has to be sufficient.
74705         (build_wcs_upper_buffer): Likewise.
74706         * posix/regexec.c (check_matching): Likewise.
74707         (clean_state_log_if_needed): Likewise.
74708         (extend_buffers): Don't enlarge buffers beyond size of the input
74709         buffer.
74710         Patches mostly by Emil Wojak <emil@wojak.eu>.
74711         * posix/bug-regex32.c: New file.
74712         * posix/Makefile (tests): Add bug-regex32.
74713
74714         * locale/findlocale.c (_nl_find_locale): Return right away if
74715         _nl_explode_name failed.
74716         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74717
74718         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74719
74720         * debug/xtrace.sh: Unify messages.
74721         * malloc/memusage.sh: Likewise.
74722
74723         [BZ #12813]
74724         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74725         time symbol from vDSO.  Substitute with vsyscall if not available.
74726         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74727         __vdso_time.
74728
74729         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74730         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74731         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74732         Add sendmmsg and internal_sendmmsg.
74733         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74734         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74735         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74736
74737         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74738         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74739         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74740
74741 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74742
74743         [BZ #12813]
74744         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74745         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74746         available.
74747         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74748         __vdso_getcpu.
74749
74750         [BZ #12814]
74751         * iconvdata/Makefile (tests): Add bug-iconv9.
74752         * iconvdata/bug-iconv9.c: New file.
74753
74754 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74755
74756         [BZ #12814]
74757         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74758
74759 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74760
74761         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74762         (struct user_regs_struct): Change intcs field back to cs.
74763
74764 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74765
74766         * po/ja.po: Update from translation team.
74767
74768 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74769
74770         [BZ #12795]
74771         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74772         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74773
74774 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74775
74776         * stdlib/longlong.h: Update from GCC.
74777
74778 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74779
74780         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74781         parameter name.
74782         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74783         Add parameter name.
74784         (__sysconf): Pass it down.
74785
74786 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74787
74788         [BZ #12671]
74789         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74790         some situations.
74791         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74792         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74793         add in in __libc_use_alloca calls.  Adjust callers.
74794         (glob): Use malloc in some situations.
74795
74796         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74797         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74798         pltexit.
74799
74800 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74801
74802         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74803         and CLOCK_BOOTTIME_ALARM.
74804
74805         [BZ #12782]
74806         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74807         is returned.
74808
74809         * string/_strerror.c (__strerror_r): Print negative errors as signed
74810         numbers.
74811
74812         [BZ #12777]
74813         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74814         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74815         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74816
74817         * configure.in: Fix typo in redirection and correct removal of test
74818         files in two cases.
74819
74820         [BZ #12788]
74821         * locale/setlocale.c (new_composite_name): Fix test to check for
74822         identical name of all categories.
74823
74824         [BZ #12792]
74825         * libio/filedoalloc.c (local_isatty): New function.
74826         (_IO_file_doallocate): Use local_isatty.
74827         * stdio-common/perror.c (perror): In case a new stream is used
74828         forward the stream error.
74829         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74830         error flag.
74831
74832 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74833
74834         [BZ #11884]
74835         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74836         alloca.
74837         * include/alloca.h (extend_alloca_account): Define.
74838
74839         [BZ #11857]
74840         * posix/regex.h: Fix comments with documentation of user-accessible
74841         fields after compilation and describe correct free'ing of pattern
74842         after re_compile_pattern.
74843         Patch by Reuben Thomas <rrt@sc3d.org>.
74844
74845 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74846
74847         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74848         and -mno-altivec to prevent the compiler from using Altivec and/or
74849         VSX instructions when the corresponding registers are not available.
74850
74851 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74852
74853         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74854
74855 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74856
74857         * libio/freopen.c (freopen): Use __dup2, not dup2.
74858         * libio/freopen64.c (freopen64): Likewise.
74859
74860 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74861
74862         [BZ #12775]
74863         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74864         * math/Makefile (tests): Add test-powl.
74865         (CFLAGS-test-powl.c): Define.
74866         * math/test-powl.c: New file.
74867
74868 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74869
74870         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74871
74872 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74873
74874         [BZ #11837]
74875         * iconvdata/gb18030.c: Update to GB18020-2005.
74876
74877 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74878
74879         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74880         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74881         Patch by Aharon Robbins <arnold@skeeve.com>.
74882
74883         [BZ #11892]
74884         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74885         on the stack.
74886
74887         [BZ #11895]
74888         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74889         through underflows.
74890
74891         [BZ #12766]
74892         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74893         point to strings before performing equality test for error_one_per_line
74894         mode.
74895
74896         [BZ #11697]
74897         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74898
74899         [BZ #11820]
74900         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74901         (struct user_fpregs_struct): Avoid __uint*_t types.
74902
74903         [BZ #6420]
74904         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74905         symbol info.  Use it instead of calling _dl_addr locally.
74906         (lock_and_info): New function.
74907         (tr_freehook): Call lock_and_info and pass symbol info as additional
74908         parameter to tr_where.
74909         (tr_mallochook): Likewise.
74910         (tr_reallochook): Likewise.
74911         (tr_memalignhook): Likewise.
74912
74913         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74914         used and couldn't be at all thread-safe.
74915
74916 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74917
74918         * libio/freopen.c (freopen): Don't close old file descriptor
74919         before the new one is opened.  Instead dup the new file descriptor
74920         to the old one after the new stream is created.
74921         * libio/freopen64.c (freopen64): Likewise.
74922         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74923         * libio/fileops.c (_IO_new_file_close_it): Handle new
74924         _IO_FLAGS2_NOCLOSE flag.
74925         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74926         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74927         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74928         _IO_FLAGS2_NOCLOSE flag.
74929         * include/unistd.h: Add hidden_proto for dup3.
74930         Define __have_dup3.
74931         * io/dup3.c: Define hidden symbol.
74932         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74933
74934         [BZ #7101]
74935         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74936         when an incomplete long option is used.
74937         * posix/tst-getopt_long1.c: New file.
74938         * posix/Makefile (tests): Add tst-getopt_long1.
74939
74940         [BZ #10138]
74941         * scripts/config.guess: Update from autoconf-2.68.
74942         * scripts/config.sub: Likewise.
74943
74944         [BZ #10157]
74945         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74946         tests into ...
74947         (has_cpuclock): ...this.  New function.
74948         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74949         macro here based on has_cpuclock code.
74950
74951         [BZ #10149]
74952         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74953         First byte (not low byte) is now always NUL.
74954         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74955
74956         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74957         Use non-cancelable interfaces.
74958
74959         [BZ #9809]
74960         * locale/iso-639.def: Add entry for Sorani.
74961
74962         [BZ #11901]
74963         * include/stdlib.h: Move include protection to the right place.
74964         Define abort_msg_s.  Declare __abort_msg with it.
74965         * stdlib/abort.c (__abort_msg): Adjust type.
74966         * assert/assert.c (__assert_fail_base): New function.  Majority
74967         of code from __assert_fail.  Allocate memory for __abort_msg with
74968         mmap.
74969         (__assert_fail): Now call __assert_fail_base.
74970         * assert/assert-perr.c: Remove bulk of implementation.  Use
74971         __assert_fail_base.
74972         * include/assert.hL Declare __assert_fail_base.
74973         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74974         mmap.
74975         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74976
74977 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74978
74979         [BZ #11952]
74980         [BZ #12453]
74981         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74982         until all modules are registered in the DTV.
74983         * elf/Makefile: Add rules to build and run tst-tls19.
74984         * elf/tst-tls19.c: New file.
74985         * elf/tst-tls19mod1.c: New file.
74986         * elf/tst-tls19mod2.c: New file.
74987         * elf/tst-tls19mod3.c: New file.
74988         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74989
74990         [BZ #12083]
74991         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74992         correctly.
74993
74994         [BZ #12601]
74995         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74996         two-byte sequence errors.
74997         * iconvdata/Makefile (tests): Add bug-iconv8.
74998         * iconvdata/bug-iconv8.c: New file.
74999
75000         [BZ #12626]
75001         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
75002         buf2 definition.
75003
75004         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
75005
75006         [BZ #12432]
75007         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
75008         (dummy_getcfa): New function.
75009         (init): Get _Unwind_GetCFA address, use dummy if not found.
75010         (backtrace_helper): In recursion check, also check whether CFA changes.
75011         (__backtrace): Completely initialize arg.
75012
75013         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
75014         storing incomplete byte sequence in state object.  Avoid testing for
75015         guaranteed too small input if we know there is enough data available.
75016
75017 2011-05-11  Andreas Schwab  <schwab@redhat.com>
75018
75019         * Makeconfig (+link-pie): Indent.
75020         * Rules (binaries-pie): Define if $(have-fpie) and
75021         $(build-shared).
75022         (binaries-shared): Also filter out $(binaries-pie).
75023         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
75024         * nscd/Makefile (others-pie): Add nscd.
75025         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
75026         ($(objpfx)nscd): Remove command override.
75027         * login/Makefile (others-pie): Add pt_chown.
75028         ($(objpfx)pt_chown): Remove command override.
75029         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
75030         remove command overrides.
75031
75032 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
75033
75034         * libio/tst_putwc.c: Fix error messages.
75035
75036         [BZ #12724]
75037         * libio/fileops.c (_IO_new_file_close_it): Always flush when
75038         currently writing and seek to current position when not.
75039         * libio/Makefile (tests): Add bug-fclose1.
75040         * libio/bug-fclose1.c: New file.
75041
75042 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
75043
75044         [BZ #12511]
75045         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
75046         don't set DF_1_NODELETE here.
75047         (do_lookup_x): When entering new entry test for copy relocation
75048         and if necessary set DF_1_NODELETE flag.
75049         * elf/tst-unique4.cc: New file.
75050         * elf/tst-unique4.h: New file.
75051         * elf/tst-unique4lib.cc: New file.
75052         * elf/Makefile: Add rules to build and run tst-unique4.
75053         Patch by Piotr Bury <pbury@goahead.com>.
75054
75055 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
75056
75057         [BZ #12052]
75058         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
75059
75060         [BZ #12625]
75061         * misc/mntent_r.c (addmntent): Flush the stream after the output
75062
75063         [BZ #12393]
75064         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
75065         (is_trusted_path_normalize): Skip initial colon.  Append slash
75066         to empty buffer.  Duplicate is_trusted_path code but allow
75067         constructed patch to be prefix.
75068         (is_dst): Allow $ORIGIN followed by /.
75069         (_dl_dst_substitute): Correct clearing of check_for_trusted.
75070         Correct testing of result of is_trusted_path_normalize
75071         (decompose_rpath): Fix warning.
75072
75073 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
75074
75075         [BZ #11257]
75076         * grp/initgroups.c (internal_getgrouplist): When we found the service
75077         list through the initgroups entry in nsswitch.conf do not always
75078         continue on a successful lookup.  Don't always use the
75079         __nss_group_database value if it is set.
75080         * nss/nsswitch.conf (initgroups): Change action for successful db
75081         lookup to continue for compatibility.
75082
75083 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
75084
75085         [BZ #11532]
75086         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
75087         and CP774 modules.
75088         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
75089         and CP774 modules.
75090         * iconvdata/tst-tables.sh: Likewise.
75091         * iconvdata/cp770.c: New file.
75092         * iconvdata/cp771.c: New file.
75093         * iconvdata/cp772.c: New file.
75094         * iconvdata/cp773.c: New file.
75095         * iconvdata/cp774.c: New file.
75096         * iconvdata/testdata/CP770: New file.
75097         * iconvdata/testdata/CP770..UTF8: New file.
75098         * iconvdata/testdata/CP771: New file.
75099         * iconvdata/testdata/CP771..UTF8: New file.
75100         * iconvdata/testdata/CP772: New file.
75101         * iconvdata/testdata/CP772..UTF8: New file.
75102         * iconvdata/testdata/CP773: New file.
75103         * iconvdata/testdata/CP773..UTF8: New file.
75104         * iconvdata/testdata/CP774: New file.
75105         * iconvdata/testdata/CP774..UTF8: New file.
75106
75107         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
75108         END CHARMAP line.
75109         * iconvdata/gen-8bit-gap.sh: Likewise.
75110         * iconvdata/gen-8bit.sh: Likewise.
75111
75112         * locale/iso-639.def: Add ary entry.
75113
75114         [BZ #11258]
75115         * locale/C-translit.h.in: Add U20A1 transliteration.
75116
75117         [BZ #12178]
75118         * locale/iso-639.def: Add wae entry.
75119         Patch by Kevin Bortis <bortis@translate-wae.ch>.
75120
75121         [BZ #12545]
75122         * locale/programs/localedef.c (construct_output_path): Use ssize_t
75123         for n.
75124
75125         [BZ #12711]
75126         * locale/C-translit.h.in: Add entry for U20B9.
75127         Patch by pravin.d.s@gmail.com.
75128
75129 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
75130
75131         [BZ #12713]
75132         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
75133         ENAMETOOLONG use generic getcwd.
75134         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
75135         in rtld.  Use *stat64.
75136         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
75137         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
75138         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
75139         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
75140         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
75141         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
75142         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
75143         __fstatat64 macros.
75144         * include/dirent.h: Add libc_hidden_proto for rewinddir.
75145         * dirent/rewinddir.c: Add libc_hidden_def.
75146         * sysdeps/mach/hurd/rewinddir.c: Likewise.
75147         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
75148
75149         * include/dirent.h (__alloc_dir): Add flags parameter.
75150         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
75151         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
75152         __alloc_dir.
75153         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
75154         from fdopendir if O_CLOEXEC is already set.
75155
75156 2011-03-15  Alan Modra  <amodra@gmail.com>
75157
75158         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
75159         l_tls_firstbyte_offset non-zero.  Save padding offset in
75160         l_tls_firstbyte_offset for later use.
75161         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
75162         freeing static tls block.
75163
75164 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
75165
75166         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
75167         where #ifdef was intended.  The intent is to prevent ARG_MAX from
75168         being defined by the kernel headers.
75169
75170 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
75171
75172         [BZ #12734]
75173         * resolv/resolv.h: Define RES_NOTLDQUERY.
75174         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
75175         no-tld-query and set RES_NOTLDQUERY.
75176         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
75177         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
75178         modern BIND to search name as TLD unless forbidden.
75179
75180 2011-05-07  Petr Baudis  <pasky@suse.cz>
75181             Ulrich Drepper  <drepper@gmail.com>
75182
75183         [BZ #12393]
75184         * elf/dl-load.c (fillin_rpath): Move trusted path check...
75185         (is_trusted_path): ...to here.
75186         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
75187         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
75188         using is_trusted_path_normalize() in setuid scripts.
75189
75190 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
75191
75192         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
75193         __BEGIN/__END_DECLS.
75194
75195 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
75196
75197         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
75198         NSS_STATUS_NOTFOUND if no record was found.
75199
75200 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75201
75202         * sunrpc/Makefile (headers): Add rpc/netdb.h.
75203         (headers-not-in-tirpc): Remove rpc/netdb.h
75204         * resolv/netdb.h: Revert last change.
75205
75206 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
75207
75208         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
75209         circular dependency between libgcc.a and libc.a.
75210
75211 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75212
75213         * resolv/netdb.h: Don't include <rpc/netdb.h>.
75214         * nis/Makefile: Don't install rpcsvc/*.
75215         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
75216         instead of <rpc/types.h>.
75217         (MAXHOSTNAMELEN): Define.
75218
75219 2011-05-03  Andreas Schwab  <schwab@redhat.com>
75220
75221         * elf/ldconfig.c (add_dir): Don't crash on empty path.
75222
75223 2011-04-28  Maciej Babinski  <mbabinski@google.com>
75224
75225         [BZ #12714]
75226         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
75227         gethostbyname4_r when IPv6 results are possible.
75228
75229 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
75230
75231         [BZ #12723]
75232         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
75233         _PC_PIPE_BUF handling.
75234
75235 2011-04-30  Bruno Haible  <bruno@clisp.org>
75236
75237         [BZ #12717]
75238         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
75239         * resolv/netdb.h (getnameinfo): Change type of flags parameter
75240         to 'int'.
75241         * inet/getnameinfo.c (getnameinfo): Likewise.
75242
75243 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
75244
75245         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
75246         to groups setting in database lookup.
75247         * nss/nsswitch.conf: Add initgroups entry.
75248
75249 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
75250
75251         [BZ #12685]
75252         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
75253         mode string.
75254         Patch by Eric Blake <eblake@redhat.com>.
75255
75256 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
75257
75258         * sunrpc/Makefile (need-export-routines): Add svc_run.
75259         (routines): Remove svc_run.
75260         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
75261         * sunrpc/clnt_perr.c (clnt_perrno): Export.
75262         * sunrpc/svc_run.c (svc_run): Likewise.
75263         * sunrpc/svc_udp.c (svcudp_create): Likewise.
75264
75265 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
75266
75267         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
75268         problem in reallocation in last patch.
75269
75270 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
75271
75272         * sunrpc/Makefile: Move inclusion of Rules.
75273
75274 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75275
75276         * nss/nss_files/files-initgroups.c: New file.
75277         * nss/Makefile (libnss_files-routines): Add files-initgroups.
75278         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
75279         _nss_files_initgroups_dyn.
75280
75281 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
75282
75283         * elf/elf.h (R_ARM_IRELATIVE): Define.
75284
75285 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75286
75287         * po/ru.po: Update from translation team.
75288
75289 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75290
75291         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
75292         dependencies.
75293
75294 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
75295
75296         [BZ #12653]
75297         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
75298         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
75299         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75300         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
75301         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
75302
75303 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
75304
75305         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
75306         differing bytes.
75307         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
75308         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
75309         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
75310
75311 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75312
75313         [BZ #12420]
75314         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
75315         storing it.
75316         * stdlib/bug-getcontext.c: New file.
75317         * stdlib/Makefile: Add rules to build and run bug-getcontext.
75318
75319 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75320
75321         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
75322         instructions into .machine "z9-109".
75323         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
75324         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
75325
75326 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75327
75328         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
75329         between environment variables and auxiliary vector.
75330
75331 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
75332
75333         * Makefile: Add rules to build linkobj/libc.so.
75334         * include/libc-symbols.h: Define libc_hidden_nolink.
75335         * include/rpc/auth.h: Mark functions which are to be hidden.
75336         * include/rpc/auth_des.h: Likewise.
75337         * include/rpc/auth_unix.h: Likewise.
75338         * include/rpc/clnt.h: Likewise.
75339         * include/rpc/des_crypt.h: Likewise.
75340         * include/rpc/key_prot.h: Likewise.
75341         * include/rpc/pmap_clnt.h: Likewise.
75342         * include/rpc/pmap_prot.h: Likewise.
75343         * include/rpc/pmap_rmt.h: Likewise.
75344         * include/rpc/rpc_msg.h: Likewise.
75345         * include/rpc/svc.h: Likewise.
75346         * include/rpc/svc_auth.h: Likewise.
75347         * include/rpc/xdr.h: Likewise.
75348         * nis/Makefile: Link all DSOs against linkobj/libc.so.
75349         * nss/Makefile: Likewise.
75350         * sunrpc/Makefile: Don't install headers.  Build library with normal
75351         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
75352         * sunrpc/auth_des.c: Hide exported symbols by default, export some
75353         for the compat linking library.  Remove use of INTDEF/INTUSE.
75354         * sunrpc/auth_none.c: Likewise.
75355         * sunrpc/auth_unix.c: Likewise.
75356         * sunrpc/authdes_prot.c: Likewise.
75357         * sunrpc/authuxprot.c: Likewise.
75358         * sunrpc/clnt_gen.c: Likewise.
75359         * sunrpc/clnt_perr.c: Likewise.
75360         * sunrpc/clnt_raw.c: Likewise.
75361         * sunrpc/clnt_simp.c: Likewise.
75362         * sunrpc/clnt_tcp.c: Likewise.
75363         * sunrpc/clnt_udp.c: Likewise.
75364         * sunrpc/clnt_unix.c: Likewise.
75365         * sunrpc/des_crypt.c: Likewise.
75366         * sunrpc/des_soft.c: Likewise.
75367         * sunrpc/get_myaddr.c: Likewise.
75368         * sunrpc/key_call.c: Likewise.
75369         * sunrpc/key_prot.c: Likewise.
75370         * sunrpc/netname.c: Likewise.
75371         * sunrpc/pm_getmaps.c: Likewise.
75372         * sunrpc/pm_getport.c: Likewise.
75373         * sunrpc/pmap_clnt.c: Likewise.
75374         * sunrpc/pmap_prot.c: Likewise.
75375         * sunrpc/pmap_prot2.c: Likewise.
75376         * sunrpc/pmap_rmt.c: Likewise.
75377         * sunrpc/publickey.c: Likewise.
75378         * sunrpc/rpc_cmsg.c: Likewise.
75379         * sunrpc/rpc_common.c: Likewise.
75380         * sunrpc/rpc_dtable.c: Likewise.
75381         * sunrpc/rpc_prot.c: Likewise.
75382         * sunrpc/rpc_thread.c: Likewise.
75383         * sunrpc/rtime.c: Likewise.
75384         * sunrpc/svc.c: Likewise.
75385         * sunrpc/svc_auth.c: Likewise.
75386         * sunrpc/svc_authux.c: Likewise.
75387         * sunrpc/svc_raw.c: Likewise.
75388         * sunrpc/svc_run.c: Likewise.
75389         * sunrpc/svc_simple.c: Likewise.
75390         * sunrpc/svc_tcp.c: Likewise.
75391         * sunrpc/svc_udp.c: Likewise.
75392         * sunrpc/svc_unix.c: Likewise.
75393         * sunrpc/svcauth_des.c: Likewise.
75394         * sunrpc/xcrypt.c: Likewise.
75395         * sunrpc/xdr.c: Likewise.
75396         * sunrpc/xdr_array.c: Likewise.
75397         * sunrpc/xdr_float.c: Likewise.
75398         * sunrpc/xdr_intXX_t.c: Likewise.
75399         * sunrpc/xdr_mem.c: Likewise.
75400         * sunrpc/xdr_rec.c: Likewise.
75401         * sunrpc/xdr_ref.c: Likewise.
75402         * sunrpc/xdr_sizeof.c: Likewise.
75403         * sunrpc/xdr_stdio.c: Likewise.
75404
75405 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
75406
75407         [BZ #12650]
75408         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
75409         * sysdeps/ia64/dl-tls.h: Likewise.
75410         * sysdeps/powerpc/dl-tls.h: Likewise.
75411         * sysdeps/s390/dl-tls.h: Likewise.
75412         * sysdeps/sh/dl-tls.h: Likewise.
75413         * sysdeps/sparc/dl-tls.h: Likewise.
75414         * sysdeps/x86_64/dl-tls.h: Likewise.
75415         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
75416
75417 2011-03-14  Andreas Schwab  <schwab@redhat.com>
75418
75419         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
75420         rpath element also skip the following colon.
75421         (expand_dynamic_string_token): Add is_path parameter and pass
75422         down to DL_DST_REQUIRED and _dl_dst_substitute.
75423         (decompose_rpath): Call expand_dynamic_string_token with
75424         non-zero is_path.  Ignore empty rpaths.
75425         (_dl_map_object_from_fd): Call expand_dynamic_string_token
75426         with zero is_path.
75427
75428 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
75429
75430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
75431         Make cancelable.
75432
75433 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
75434
75435         [BZ #12655]
75436         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
75437         Patch by Filipe David Manana <fdmanana@apache.org>.
75438
75439 2011-04-07  Andreas Schwab  <schwab@redhat.com>
75440
75441         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
75442         Maintain aligned stack.
75443         (CHECK_RSP): Remove unused macro.
75444
75445 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
75446
75447         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
75448         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
75449
75450 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
75451
75452         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
75453
75454         * include/features.h: Mention __USE_XOPEN2K8 in comment.
75455
75456 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
75457
75458         [BZ #12518]
75459         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
75460         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
75461         * sysdeps/x86_64/memmove.c: New file.
75462         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
75463         (memcpy): Renamed to ...
75464         (__new_memcpy): This.
75465         (memcpy): Provide GLIBC_2_14 memcpy.
75466         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
75467         (memcpy): Provide GLIBC_2_2_5 memcpy.
75468
75469 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75470
75471         [BZ #12631]
75472         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
75473
75474 2011-03-30  Andreas Schwab  <schwab@redhat.com>
75475
75476         * misc/syncfs.c: New file.
75477         * misc/Makefile (routines): Add syncfs.
75478         * posix/unistd.h: Declare syncfs.
75479         * sysdeps/unix/syscalls.list: Add syncfs.
75480
75481 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75482
75483         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
75484         open_by_handle_at.
75485         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
75486         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75487         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75488         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75489         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75490         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
75491         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75492
75493 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75494
75495         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
75496         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75497         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75498         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75499         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75500         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75501         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75502
75503         * io/Makefile: Compile fallocate.c, fallocate64.c, and
75504         sync_file_range.c with -fexceptions.
75505         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
75506         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
75507         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
75508         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
75509         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
75510         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
75511         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
75512         sync_file_range as cancellation point
75513         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
75514         now a wrapper around __call_sync_file_range with cancellation handling.
75515         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
75516         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
75517         function name to __call_sync_file_range.
75518         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
75519         Add call_sync_file_range.
75520
75521 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75522
75523         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75524         bits/timex.h.
75525
75526 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75527
75528         * iconv/iconv.h: Fix typo in comment.
75529         * io/fcntl.h: Likewise.
75530         * libio/stdio.h: Likewise.
75531         * posix/spawn.h: Likewise.
75532         * posix/unistd.h: Likewise.
75533         * stdlib/stdlib.h: Likewise.
75534         * time/time.h: Likewise.
75535         * wcsmbs/wchar.h: Likewise.
75536
75537         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
75538         open_by_handle): Add.
75539         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
75540         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
75541         Augment a few comments.
75542         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75543         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75544         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75545         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75546         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75547         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
75548         open_by_handle.
75549
75550         * io/fcntl.h (AT_EMPTY_PATH): Define.
75551
75552 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
75553
75554         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
75555         * sysdeps/unix/sysv/linux/bits/time.h: New file.
75556         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
75557         to...
75558         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
75559         * Versions.def: Add GLIBC_2.14.
75560         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
75561         Export.
75562
75563 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
75564
75565         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
75566         round counter.
75567         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75568
75569 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
75570
75571         [BZ #12597]
75572         * string/test-strncmp.c (do_page_test): New function.
75573         (check2): Likewise.
75574         (test_main): Call check2.
75575         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
75576
75577 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
75578
75579         [BZ #12587]
75580         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
75581         Handle cache information in CPU leaf 4.
75582         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75583
75584 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
75585
75586         [BZ #12583]
75587         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
75588         character representation.
75589         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
75590
75591 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
75592
75593         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
75594         END(__isnan) to END(__isnanf) to match function entry point/label
75595         EALIGN(__isnanf,...).
75596
75597 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
75598
75599         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
75600
75601 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
75602
75603         [BZ #12510]
75604         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
75605         copy from the symbol referenced in the relocation to initialize the
75606         used variable.
75607         Patch by Piotr Bury <pbury@goahead.com>.
75608         * elf/Makefile: Add rules to build and tst-unique3.
75609         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
75610         * elf/tst-unique3.cc: New file.
75611         * elf/tst-unique3.h: New file.
75612         * elf/tst-unique3lib.cc: New file.
75613         * elf/tst-unique3lib2.cc: New file.
75614
75615         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
75616
75617 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
75618
75619         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
75620         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
75621         to _start.
75622
75623 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75624
75625         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75626         to-be-loaded object along a path to loader is ld.so.
75627
75628 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75629             Ulrich Drepper  <drepper@gmail.com>
75630
75631         * sysdeps/x86_64/memset.S: After aligning destination, code
75632         branches to different locations depending on the value of
75633         misalignment, when multiarch is enabled. Fix this.
75634
75635 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75636
75637         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75638         Set _x86_64_preferred_memory_instruction for AMD processsors.
75639         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75640         Set bit_Prefer_SSE_for_memop for AMD processors.
75641
75642 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75643
75644         * libio/fmemopen.c (fmemopen): Optimize a bit.
75645
75646 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75647
75648         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75649
75650 2011-03-03  Roland McGrath  <roland@redhat.com>
75651
75652         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75653
75654 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75655
75656         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75657         __bzero_ultra1 instead of __memset_ultra1.
75658
75659 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75660             Ulrich Drepper  <drepper@gmail.com>
75661
75662         [BZ #12509]
75663         * include/link.h (struct link_map): Add l_orig_initfini.
75664         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75665         returning unsuccessfully.
75666         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75667         close of a file loaded at startup, restore the original l_initfini
75668         list.
75669         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75670         list, store the pointer.
75671         * elf/Makefile ($(objpfx)noload-mem): New rule.
75672         (noload-ENV): Define.
75673         (tests): Add $(objpfx)noload-mem.
75674         * elf/noload.c: Include <memcheck.h>.
75675         (main): Call mtrace.  Close all opened handles.
75676
75677 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75678
75679         [BZ #12454]
75680         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75681         dependencies are missing.
75682
75683 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75684
75685         Fix __if_freereq crash: Unlike the generic version which uses free,
75686         Hurd needs munmap.
75687         * sysdeps/mach/hurd/ifreq.h: New file.
75688
75689 2011-01-27  Petr Baudis  <pasky@suse.cz>
75690             Ulrich Drepper  <drepper@gmail.com>
75691
75692         [BZ 12445]#
75693         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75694         to extend_alloca().
75695         * stdio-common/bug23.c: New file.
75696         * stdio-common/Makefile (tests): Add bug23.
75697
75698 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75699             Ulrich Drepper  <drepper@gmail.com>
75700
75701         [BZ #12489]
75702         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75703         before performing relro protection.  At old place add assertion
75704         to make sure nothing changed.
75705
75706 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75707             Glauber de Oliveira Costa  <glommer@gmail.com>
75708
75709         * elf/elf.h: Add new ARM TLS relocs.
75710
75711 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75712
75713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75714         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75715         cast from r3.
75716         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75717         'tests' variable.
75718         * sysdeps/wordsize-64/tst-writev.c: New file.
75719
75720 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75721
75722         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75723         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75724         insns in _dl_start to prevent a TOC reference before relocs are
75725         resolved.
75726
75727 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75728
75729         [BZ #12469]
75730         * Makeconfig: Remove RANLIB definition.
75731         * Makerules: Don't use RANLIB.
75732         * aclocal.m4: Remove ranlib test.
75733         * configure.in: No need to check for ranlib.
75734         * elf/rtld-Rules: Don't use RANLIB.
75735
75736 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75737
75738         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75739         protection macro.
75740         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75741         inclusion protection macro.
75742
75743         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75744         SIGRTMIN and SIGRTMAX and print information in that case only when
75745         SIGRTMIN is defined.
75746
75747 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75748
75749         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75750         arginfo fn returning -1.
75751
75752         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75753         and thousands string is zero terminated.
75754
75755 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75756
75757         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75758         sysdeps/unix/sysv/linux/bits/socket.h.
75759
75760 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75761
75762         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75763         (__CPU_COUNT): Remove old macros.
75764         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75765         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75766         (__CPU_ALLOC, __CPU_FREE): Add macros.
75767         (__sched_cpualloc, __sched_cpufree): Add declarations.
75768
75769 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75770
75771         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75772         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75773         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75774         (readdhstai): Return value of addhstaiX call.
75775         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75776         (addgrbyX): Return value returned by cache_addgr.
75777         (readdgrbyname): Return value returned by addgrbyX.
75778         (readdgrbygid): Likewise.
75779         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75780         (addpwbyX): Return value returned by cache_addpw.
75781         (readdpwbyname): Return value returned by addhstbyX.
75782         (readdpwbyuid): Likewise.
75783         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75784         (addservbyX): Return value returned by cache_addserv.
75785         (readdservbyname): Return value returned by addservbyX:
75786         (readdservbyport): Likewise.
75787         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75788         (addhstbyX): Return value returned by cache_addhst.
75789         (readdhstbyname): Return value returned by addhstbyX.
75790         (readdhstbyaddr): Likewise.
75791         (readdhstbynamev6): Likewise.
75792         (readdhstbyaddrv6): Likewise.
75793         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75794         (readdinitgroups): Return value returned by addinitgroupsX.
75795         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75796         (prune_cache): Keep track of timeout value of re-added entries.
75797         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75798         * nscd/nscd.h: Adjust prototypes of readd* functions.
75799
75800 2011-02-04  Roland McGrath  <roland@redhat.com>
75801
75802         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75803         (nis_stats): Likewise.
75804         * nis/nis_modify.c (nis_modify): Likewise.
75805         * nis/nis_remove.c (nis_remove): Likewise.
75806         * nis/nis_add.c (nis_add): Likewise.
75807
75808         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75809
75810         * posix/fnmatch_loop.c: Add some consts.
75811
75812         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75813
75814 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75815
75816         [BZ #12460]
75817         * config.make.in (config-cflags-novzeroupper): Define.
75818         * configure.in: Substitute libc_cv_cc_novzeroupper.
75819         * elf/Makefile (AVX-CFLAGS): Define.
75820         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75821         (CFLAGS-tst-auditmod4a.c): Likewise.
75822         (CFLAGS-tst-auditmod4b.c): Likewise.
75823         (CFLAGS-tst-auditmod6b.c): Likewise.
75824         (CFLAGS-tst-auditmod6c.c): Likewise.
75825         (CFLAGS-tst-auditmod7b.c): Likewise.
75826         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75827
75828 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75829
75830         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75831         function to the callback.
75832         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75833
75834 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75835
75836         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75837         of errno.
75838
75839 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75840
75841         [BZ #11724]
75842         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75843         of constructors.
75844         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75845         of destructors.
75846         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75847
75848         [BZ #11724]
75849         * elf/Makefile: Add rules to build and run new test.
75850         * elf/tst-initorder.c: New file.
75851         * elf/tst-initorder.exp: New file.
75852         * elf/tst-initordera1.c: New file.
75853         * elf/tst-initordera2.c: New file.
75854         * elf/tst-initordera3.c: New file.
75855         * elf/tst-initordera4.c: New file.
75856         * elf/tst-initorderb1.c: New file.
75857         * elf/tst-initorderb2.c: New file.
75858         * elf/tst-order-a1.c: New file.
75859         * elf/tst-order-a2.c: New file.
75860         * elf/tst-order-a3.c: New file.
75861         * elf/tst-order-a4.c: New file.
75862         * elf/tst-order-b1.c: New file.
75863         * elf/tst-order-b2.c: New file.
75864         * elf/tst-order-main.c: New file.
75865         New test case by George Gensure <werkt0@gmail.com>.
75866
75867 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75868
75869         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75870         decoding ACE if AI_CANONIDN.
75871
75872 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75873
75874         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75875
75876 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75877
75878         * version.h (RELEASE): Bump for 2.13 release.
75879         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75880
75881         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75882
75883         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75884         MADV_NOHUGEPAGE.
75885         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75886         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75887         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75888         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75889         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75890         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75891
75892         * posix/getconf.c: Update copyright year.
75893         * catgets/gencat.c: Likewise.
75894         * csu/version.c: Likewise.
75895         * debug/catchsegv.sh: Likewise.
75896         * debug/xtrace.sh: Likewise.
75897         * elf/ldconfig.c: Likewise.
75898         * elf/ldd.bash.in: Likewise.
75899         * elf/sprof.c (print_version): Likewise.
75900         * iconv/iconv_prog.c: Likewise.
75901         * iconv/iconvconfig.c: Likewise.
75902         * locale/programs/locale.c: Likewise.
75903         * locale/programs/localedef.c: Likewise.
75904         * malloc/memusage.sh: Likewise.
75905         * malloc/mtrace.pl: Likewise.
75906         * nscd/nscd.c (print_version): Likewise.
75907         * nss/getent.c: Likewise.
75908
75909         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75910         PF_CAIF, and PF_ALG.
75911         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75912
75913 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75914
75915         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75916         (modules-names): Use them.
75917         (ifunc-test-modules, ifunc-pie-tests): Define.
75918         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75919         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75920         (test-extras): Likewise.
75921         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75922         $(compile-command.c).
75923         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75924         (all-built-dso): Define.
75925         (check-textrel.out, check-execstack.out): Depend on it.
75926
75927         * configure.in: Don't override --enable-multi-arch.
75928
75929 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75930
75931         [BZ #6812]
75932         * nscd/hstcache.c (tryagain): Define.
75933         (cache_addhst): Return tryagain not notfound for temporary errors.
75934         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75935         failed.
75936
75937 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75938
75939         [BZ #10563]
75940         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75941         to make the syscall.
75942         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75943
75944         [BZ #12378]
75945         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75946         and fall back to matching as normal character if the string ends before
75947         the matching ']' is found.  This is what POSIX requires.
75948         * posix/testfnm.c: Adjust test result.
75949         * posix/globtest.sh: Adjust test result.  Add new test.
75950         * posix/tst-fnmatch.input: Likewise.
75951         * posix/tst-fnmatch2.c: Add new test.
75952
75953 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75954
75955         * elf/Makefile (check-execstack): Revert last change.  Depend on
75956         check-execstack.h.
75957         (check-execstack.h): New target.
75958         (generated): Add check-execstack.h.
75959         * elf/check-execstack.c: Include "check-execstack.h".
75960         (main): Revert last change.
75961         (handle_file): Return zero if GNU_STACK is absent and
75962         DEFAULT_STACK_PERMS doesn't include PF_X.
75963
75964 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75965
75966         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75967         in child fails because the descriptor is already closed.
75968         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75969         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75970         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75971
75972         [BZ #12397]
75973         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75974         syscall.
75975
75976         [BZ #10484]
75977         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75978         temporary buffer used to handle multi lookups locally.
75979         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75980
75981 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75982
75983         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75984         loader is ld.so.
75985
75986 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75987
75988         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75989         alignment for SSE2.
75990
75991 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75992
75993         [BZ #12394]
75994         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75995         characters.  When rounding increased number of integer digits recompute
75996         number of groups.
75997         * stdio-common/tst-grouping.c: New file.
75998         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75999
76000 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
76001
76002         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
76003         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
76004
76005         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
76006         void.
76007         * bits/select.h: Likewise.
76008
76009 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
76010
76011         * po/ja.po: Update from translation team.
76012
76013 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
76014
76015         [BZ #11155]
76016         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
76017         implementation just like for lxstat, fxstatat, et al.
76018
76019 2010-12-27  Jim Meyering  <meyering@redhat.com>
76020
76021         [BZ #12348]
76022         * posix/regexec.c (build_trtable): Return failure indication upon
76023         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
76024
76025 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
76026
76027         [BZ #12201]
76028         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
76029         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
76030         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
76031         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
76032
76033         [BZ #12207]
76034         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
76035
76036         [BZ #12204]
76037         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
76038         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
76039
76040 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
76041
76042         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
76043         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
76044         script has SORT_BY_INIT_PRIORITY.
76045         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
76046         NO_CTORS_DTORS_SECTIONS is defined.
76047         * elf/soinit.c: Likewise.
76048         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
76049         NO_CTORS_DTORS_SECTIONS is defined.
76050         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
76051         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
76052         * sysdeps/sh/init-first.c: Likewise.
76053         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
76054
76055 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
76056
76057         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
76058         always use the slow path.
76059
76060 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
76061
76062         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
76063         similar rule which adds the sysdep directories to the header search in
76064         order to pick up the correct platform stackinfo.h.
76065         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
76066         perform test if it is, otherwise return successfully without testing.
76067         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
76068         DEFAULT_STACK_PERMS define in stackinfo.h.
76069         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
76070         defined in stackinfo.h.
76071         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
76072         DEFAULT_STACK_PERMS defined in stackinfo.h.
76073         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
76074         * sysdeps/ia64/stackinfo.h: Likewise.
76075         * sysdeps/s390/stackinfo.h: Likewise.
76076         * sysdeps/sh/stackinfo.h: Likewise.
76077         * sysdeps/sparc/stackinfo.h: Likewise.
76078         * sysdeps/x86_64/stackinfo.h: Likewise.
76079         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
76080         PF_X for powerpc64.  Retain PF_X for powerpc32.
76081
76082 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
76083
76084         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
76085         accurately.
76086         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
76087         GETDENTS_64BIT_ALIGNED.
76088
76089 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
76090
76091         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
76092
76093 2010-12-10  Andreas Schwab  <schwab@redhat.com>
76094
76095         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
76096         _GNU_SOURCE.
76097
76098         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
76099         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
76100         Remove __restrict.
76101         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
76102         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
76103
76104 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
76105
76106         [BZ #11655]
76107         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
76108         are initialized.
76109
76110 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
76111
76112         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
76113
76114 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
76115
76116         * po/it.po: Update from translation team.
76117
76118 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
76119
76120         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
76121         unused codes.
76122
76123 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
76124
76125         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
76126
76127 2010-11-24  Andreas Schwab  <schwab@redhat.com>
76128
76129         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
76130         specially.
76131         (gaih_getanswer_slice): Likewise.
76132
76133 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
76134
76135         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
76136
76137 2010-05-31  Petr Baudis  <pasky@suse.cz>
76138
76139         [BZ #11149]
76140         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
76141         silently even in the chroot mode.
76142
76143 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
76144
76145         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
76146         last patch a bit.  Pretty printing
76147
76148 2010-05-31  Petr Baudis <pasky@suse.cz>
76149
76150         [BZ #10085]
76151         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
76152         initialization of skip_initgroups_dyn.
76153
76154 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
76155
76156         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
76157         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
76158
76159 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
76160
76161         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
76162
76163 2010-11-11  Andreas Schwab  <schwab@redhat.com>
76164
76165         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
76166         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
76167         (tst-fnmatch-ENV): Set MALLOC_TRACE.
76168         ($(objpfx)tst-fnmatch-mem): New rule.
76169         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
76170         * posix/tst-fnmatch.c (main): Call mtrace.
76171
76172 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
76173
76174         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76175         Support Intel processor model 6 and model 0x2c.
76176
76177 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
76178
76179         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
76180           signed comparison.
76181
76182 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
76183
76184         [BZ #12205]
76185         * string/test-strncasecmp.c (check_result): New function.
76186         (do_one_test): Use it.
76187         (check1): New function.
76188         (test_main): Use it.
76189         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
76190         Support strcasecmp and strncasecmp.
76191
76192 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
76193
76194         [BZ #12194]
76195         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
76196         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76197
76198 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
76199
76200         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
76201         IFUNC support.
76202         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76203         memset-x86-64.
76204         * sysdeps/x86_64/multiarch/bzero.S: New file.
76205         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
76206         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
76207         * sysdeps/x86_64/multiarch/memset.S: New file.
76208         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
76209         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76210         Set bit_Prefer_SSE_for_memop for Intel processors.
76211         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
76212         Define.
76213         (index_Prefer_SSE_for_memop): Define.
76214         (HAS_PREFER_SSE_FOR_MEMOP): Define.
76215
76216 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
76217
76218         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
76219         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
76220
76221 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
76222
76223         [BZ #12191]
76224         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76225         (__x86_64_raw_data_cache_size_half): Likewise.
76226         (__x86_64_raw_shared_cache_size): Likewise.
76227         (__x86_64_raw_shared_cache_size_half): Likewise.
76228
76229         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76230         (__x86_64_raw_data_cache_size_half): Likewise.
76231         (__x86_64_raw_shared_cache_size): Likewise.
76232         (__x86_64_raw_shared_cache_size_half): Likewise.
76233         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
76234         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
76235         and __x86_64_raw_shared_cache_size_half.  Round
76236         __x86_64_data_cache_size_half, __x86_64_data_cache_size
76237         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
76238         to multiple of 256 bytes.
76239
76240 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
76241
76242         [BZ #12167]
76243         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
76244         of inacessible symlinks.  Verify result of symlink before returning it.
76245         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
76246         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
76247
76248 2010-10-28  Erich Ritz  <erichritz@gmail.com>
76249
76250         * math/math.h (isinf): Fix typo in comment.
76251
76252 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
76253
76254         * po/da.po: Update from translation team.
76255
76256 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
76257
76258         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
76259         is added to the list.
76260
76261 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76262             Ulrich Drepper  <drepper@gmail.com>
76263
76264         * elf/dl-object.c (_dl_new_object): Don't append the new object to
76265         the global list here.  Move code to...
76266         (_dl_add_to_namespace_list): ...here.  New function.
76267         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
76268         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
76269         * elf/dl-load.c (lose): Don't remove the element from the list.
76270         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
76271         (_dl_map_object): Likewise.
76272
76273 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
76274
76275         [BZ #12159]
76276         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
76277         into all bytes of SSE register.
76278         Patch by Richard Li <richardpku@gmail.com>.
76279
76280 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
76281
76282         [BZ #12140]
76283         * malloc/malloc.c (_int_free): Fill correct number of bytes when
76284         perturbing.
76285
76286 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
76287
76288         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
76289         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
76290         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
76291         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
76292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
76293         submachine.
76294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
76295
76296 2010-10-22  Andreas Schwab  <schwab@redhat.com>
76297
76298         * include/dlfcn.h (__RTLD_SECURE): Define.
76299         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
76300         mode & __RTLD_SECURE instead.
76301         (open_path): Rename preloaded parameter to secure.
76302         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
76303         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
76304         * elf/dl-deps.c (openaux): Likewise.
76305         * elf/rtld.c (struct map_args): Remove is_preloaded.
76306         (map_doit): Don't use it.
76307         (dl_main): Likewise.
76308         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
76309         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
76310
76311 2010-09-09  Andreas Schwab  <schwab@redhat.com>
76312
76313         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
76314         (sysd-rules-targets): Remove duplicates.
76315         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
76316         rtld-%.$o dependency.
76317
76318 2010-10-18  Andreas Schwab  <schwab@redhat.com>
76319
76320         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
76321         _dl_map_object do it.
76322
76323 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
76324
76325         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
76326         fast fma builtins, define the macros in the C99 standard.
76327         (FP_FAST_FMAF): Likewise.
76328         (FP_FAST_FMAL): Likewise.
76329         * sysdeps/x86_64/bits/mathdef.h: Likewise.
76330
76331         * bits/mathdef.h: Update copyright year.
76332         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76333
76334 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
76335
76336         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
76337         builtins, define the macros in the C99 standard.
76338         (FP_FAST_FMAF): Likewise.
76339         (FP_FAST_FMAL): Likewise.
76340         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
76341         multiply/add.
76342         (FP_FAST_FMAF): Likewise.
76343
76344 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
76345
76346         [BZ #3268]
76347         * math/libm-test.inc (fma_test): Some new testcases.
76348         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
76349         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
76350         y and infinite z.  Do multiplication by C already in long double.
76351         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
76352         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
76353         y and infinite z.  Do bitwise or of inexact bit into u.d.
76354         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
76355         * sysdeps/i386/fpu/s_fmaf.S: Removed.
76356         * sysdeps/i386/fpu/s_fma.S: Removed.
76357         * sysdeps/i386/fpu/s_fmal.S: Removed.
76358
76359 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
76360
76361         [BZ #3268]
76362         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
76363         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
76364         computation is not scheduled after fetestexcept.  Fix value
76365         of minimum denormal long double.
76366
76367 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
76368
76369         [BZ #3268]
76370         * math/libm-test.inc (fma_test): Add some more tests.
76371         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
76372         correctly.
76373
76374 2010-10-15  Andreas Schwab  <schwab@redhat.com>
76375
76376         * scripts/data/localplt-s390-linux-gnu.data: New file.
76377         * scripts/data/localplt-s390x-linux-gnu.data: New file.
76378
76379 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
76380
76381         [BZ #3268]
76382         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
76383         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
76384         instead of dbl-64.
76385         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
76386         inlines.
76387         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
76388         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
76389         if one of x and y is very large and the other is subnormal.
76390         * sysdeps/s390/fpu/s_fmaf.c: New file.
76391         * sysdeps/s390/fpu/s_fma.c: New file.
76392         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
76393         * sysdeps/powerpc/fpu/s_fma.S: New file.
76394         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
76395         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
76396         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
76397
76398 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
76399
76400         [BZ #3268]
76401         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
76402         fma tests.
76403         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
76404         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
76405         * sysdeps/i386/i686/multiarch/s_fma.c: Include
76406         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
76407         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
76408         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
76409         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
76410
76411 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
76412
76413         [BZ #12078]
76414         * posix/regcomp.c (parse_branch): One more memory leak plugged.
76415         * posix/bug-regex31.input: Add test case.
76416
76417 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76418
76419         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
76420         * posix/bug-regex31.input: New file.
76421
76422         [BZ #12078]
76423         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
76424         (parse_sub_exp): Fix last change, use postorder.
76425
76426         * posix/bug-regex31.c: New file.
76427         * posix/Makefile: Add rules to build and run bug-regex31.
76428
76429         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
76430
76431         [BZ #12078]
76432         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
76433
76434         [BZ #12108]
76435         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
76436         to have entries in sys_siglist.
76437
76438         [BZ #12093]
76439         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
76440         be NULL.
76441
76442 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
76443
76444         [BZ #3268]
76445         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
76446         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
76447         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
76448         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
76449         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
76450         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
76451         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
76452         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
76453         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
76454         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
76455         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
76456         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
76457         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
76458         * math/ftestexcept.c (fetestexcept): Likewise.
76459         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
76460         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
76461         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
76462         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
76463         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
76464         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
76465         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
76466
76467 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76468
76469         [BZ #12107]
76470         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
76471         newline.
76472
76473 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
76474
76475         * string/bug-strstr1.c: New file.
76476         * string/Makefile: Add rules to build and run bug-strstr1.
76477
76478 2010-10-05  Eric Blake  <eblake@redhat.com>
76479
76480         [BZ #12092]
76481         * string/str-two-way.h (two_way_long_needle): Always clear memory
76482         when skipping input due to the shift table.
76483
76484 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
76485
76486         [BZ #12005]
76487         * malloc/mcheck.c: Handle large requests.
76488
76489         [BZ #12077]
76490         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
76491         for strncmp and strncasecmp.
76492         * string/stratcliff.c: Add tests for strcmp and strncmp.
76493         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
76494
76495 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
76496
76497         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
76498         __set_fpscr.
76499
76500 2010-09-30  Andreas Jaeger  <aj@suse.de>
76501
76502         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
76503         (CGROUP_SUPER_MAGIC): Define.
76504         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76505         Handle btrfs and cgroup file systems.
76506         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
76507         Likewise.
76508
76509 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
76510
76511         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
76512         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
76513
76514 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76515
76516         [BZ #12067]
76517         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
76518         trying to locate the ELF header.
76519
76520 2010-09-27  Andreas Schwab  <schwab@redhat.com>
76521
76522         [BZ #11611]
76523         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
76524         Mask out sign-bit copies when constructing f_fsid.
76525
76526 2010-09-24  Petr Baudis <pasky@suse.cz>
76527
76528         * debug/stack_chk_fail_local.c: Add missing licence exception.
76529         * debug/warning-nop.c: Likewise.
76530
76531 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
76532
76533         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
76534         implementing getdents64 using getdents syscall, set d_type if
76535         __ASSUME_GETDENTS32_D_TYPE.
76536
76537 2010-09-16  Andreas Schwab  <schwab@redhat.com>
76538
76539         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
76540         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
76541
76542 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
76543
76544         [BZ #12037]
76545         * posix/unistd.h: Undo change of feature selection for ftruncate from
76546         2010-01-11.
76547
76548 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
76549
76550         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
76551         detection.
76552
76553 2010-09-20  Andreas Schwab  <schwab@redhat.com>
76554
76555         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
76556         fanotify_mark.
76557         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76558
76559 2010-09-14  Andreas Schwab  <schwab@redhat.com>
76560
76561         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
76562         variables after CHECK_SP call.
76563         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
76564
76565 2010-09-13  Andreas Schwab  <schwab@redhat.com>
76566             Ulrich Drepper  <drepper@redhat.com>
76567
76568         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
76569         re-relocationg ld.so.
76570         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
76571         _dl_init_paths call.
76572         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
76573         here anymore.
76574
76575 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
76576
76577         * resolv/res_init.c (__res_vinit): Count the default server we added.
76578
76579 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
76580             Ulrich Drepper  <drepper@redhat.com>
76581
76582         [BZ #11968]
76583         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76584         (____longjmp_chk): Use %ebx for saving value across system call.
76585         Add unwind info.
76586
76587 2010-09-06  Andreas Schwab  <schwab@redhat.com>
76588
76589         * manual/Makefile: Don't mix pattern rules with normal rules.
76590
76591 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
76592
76593         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
76594         operation.
76595         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
76596         * libio/iofopncook.c (_IO_cookie_init): Likewise.
76597         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
76598         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
76599         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76600         Likewise.
76601
76602 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
76603
76604         [BZ #11979]
76605         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
76606         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
76607
76608 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
76609
76610         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
76611         * sysdeps/x86_64/addmul_1.S: Likewise.
76612         * sysdeps/x86_64/lshift.S: Likewise.
76613         * sysdeps/x86_64/mul_1.S: Likewise.
76614         * sysdeps/x86_64/rshift.S: Likewise.
76615         * sysdeps/x86_64/sub_n.S: Likewise.
76616         * sysdeps/x86_64/submul_1.S: Likewise.
76617
76618 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76619
76620         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
76621         Define __sched_param instead of SCHED_* and sched_param when
76622         <bits/sched.h> is included with __need_schedparam defined.
76623         * bits/sched.h [__need_schedparam]
76624         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76625         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76626         (__defined_schedparam): Define to 1.
76627         (__sched_param): New structure, identical to sched_param.
76628         (__need_schedparam): Undefine.
76629
76630 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76631
76632         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76633         (epoll_create1): Declare.
76634
76635         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76636
76637 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76638
76639         [BZ #7066]
76640         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76641         shifting retval into place.
76642
76643 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76644
76645         * nis/rpcsvc/nis.h: Update copyright notice.
76646         * nis/rpcsvc/nis.x: Likewise.
76647         * nis/rpcsvc/nis_callback.h: Likewise.
76648         * nis/rpcsvc/nis_callback.x: Likewise.
76649         * nis/rpcsvc/nis_object.x: Likewise.
76650         * nis/rpcsvc/nis_tags.h: Likewise.
76651         * nis/rpcsvc/yp.h: Likewise.
76652         * nis/rpcsvc/yp.x: Likewise.
76653         * nis/rpcsvc/ypupd.h: Likewise.
76654         * nis/yp_xdr.c: Likewise.
76655         * nis/ypupdate_xdr.c: Likewise.
76656
76657         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76658         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76659         (pmap_getport): Use __libc_rpc_getport.
76660         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76661         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76662         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76663
76664 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76665
76666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76667         fanotify_mark.
76668
76669 2010-08-27  Roland McGrath  <roland@redhat.com>
76670
76671         * sysdeps/i386/i686/multiarch/Makefile
76672         (CFLAGS-varshift.c): New variable.
76673
76674 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76675
76676         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76677         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76678
76679         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76680
76681         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76682
76683 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76684
76685         * sysdeps/x86_64/strlen.S: Unroll the loop.
76686         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76687         strlen-sse2 strlen-sse2-bsf.
76688         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76689         __strlen_no_bsf if bit_Slow_BSF is set.
76690         (__strlen_sse42): Removed.
76691         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76692         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76693
76694 2010-08-25  Roland McGrath  <roland@redhat.com>
76695
76696         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76697         * sysdeps/x86_64/multiarch/varshift.c: New file.
76698         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76699         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76700         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76701         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76702
76703 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76704
76705         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76706         strlen-sse2 strlen-sse2-bsf.
76707         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76708         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76709         (__strlen_sse2): Removed.
76710         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76711         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76712         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76713         bit_Slow_BSF for Atom.
76714         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76715         (index_Slow_BSF): Define.
76716         (HAS_SLOW_BSF): Define.
76717
76718 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76719
76720         [BZ #10851]
76721         * resolv/res_init.c (__res_vinit): When no server address at all
76722         is given default to loopback.
76723
76724 2010-08-24  Roland McGrath  <roland@redhat.com>
76725
76726         * configure.in: Remove config-name.h generation.
76727         * configure: Regenerated.
76728         * config-name.in: File removed.
76729         * scripts/config-uname.sh: New file.
76730         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76731         ($(objdir)config-name.h): New target.
76732
76733         * sunrpc/rpc_parse.h: Avoid nested comment.
76734
76735 2010-08-24  Richard Henderson  <rth@redhat.com>
76736             Ulrich Drepper  <drepper@redhat.com>
76737             H.J. Lu  <hongjiu.lu@intel.com>
76738
76739         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76740         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76741         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76742         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76743         _mm_alignr_epi8 with _mm_loadu_si128.
76744         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76745         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76746         (__m128i_shift_right): Removed.
76747         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76748         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76749         * sysdeps/x86_64/multiarch/varshift.h: New file.
76750         * sysdeps/x86_64/multiarch/varshift.S: New file.
76751
76752 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76753
76754         * configure.in: Move assembler checks to before sysdep dir checking.
76755
76756 2010-08-20  Petr Baudis  <pasky@suse.cz>
76757
76758         * LICENSES: Sync the sunrpc license.
76759
76760 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76761
76762         * sunrpc/auth_des.c: Update copyright notice once again.
76763         * sunrpc/auth_none.c: Likewise.
76764         * sunrpc/auth_unix.c: Likewise.
76765         * sunrpc/authdes_prot.c: Likewise.
76766         * sunrpc/authuxprot.c: Likewise.
76767         * sunrpc/bindrsvprt.c: Likewise.
76768         * sunrpc/clnt_gen.c: Likewise.
76769         * sunrpc/clnt_perr.c: Likewise.
76770         * sunrpc/clnt_raw.c: Likewise.
76771         * sunrpc/clnt_simp.c: Likewise.
76772         * sunrpc/clnt_tcp.c: Likewise.
76773         * sunrpc/clnt_udp.c: Likewise.
76774         * sunrpc/clnt_unix.c: Likewise.
76775         * sunrpc/des_crypt.c: Likewise.
76776         * sunrpc/des_soft.c: Likewise.
76777         * sunrpc/get_myaddr.c: Likewise.
76778         * sunrpc/getrpcport.c: Likewise.
76779         * sunrpc/key_call.c: Likewise.
76780         * sunrpc/key_prot.c: Likewise.
76781         * sunrpc/openchild.c: Likewise.
76782         * sunrpc/pm_getmaps.c: Likewise.
76783         * sunrpc/pm_getport.c: Likewise.
76784         * sunrpc/pmap_clnt.c: Likewise.
76785         * sunrpc/pmap_prot.c: Likewise.
76786         * sunrpc/pmap_prot2.c: Likewise.
76787         * sunrpc/pmap_rmt.c: Likewise.
76788         * sunrpc/rpc/auth.h: Likewise.
76789         * sunrpc/rpc/auth_unix.h: Likewise.
76790         * sunrpc/rpc/clnt.h: Likewise.
76791         * sunrpc/rpc/des_crypt.h: Likewise.
76792         * sunrpc/rpc/key_prot.h: Likewise.
76793         * sunrpc/rpc/netdb.h: Likewise.
76794         * sunrpc/rpc/pmap_clnt.h: Likewise.
76795         * sunrpc/rpc/pmap_prot.h: Likewise.
76796         * sunrpc/rpc/pmap_rmt.h: Likewise.
76797         * sunrpc/rpc/rpc.h: Likewise.
76798         * sunrpc/rpc/rpc_des.h: Likewise.
76799         * sunrpc/rpc/rpc_msg.h: Likewise.
76800         * sunrpc/rpc/svc.h: Likewise.
76801         * sunrpc/rpc/svc_auth.h: Likewise.
76802         * sunrpc/rpc/types.h: Likewise.
76803         * sunrpc/rpc/xdr.h: Likewise.
76804         * sunrpc/rpc_clntout.c: Likewise.
76805         * sunrpc/rpc_cmsg.c: Likewise.
76806         * sunrpc/rpc_common.c: Likewise.
76807         * sunrpc/rpc_cout.c: Likewise.
76808         * sunrpc/rpc_dtable.c: Likewise.
76809         * sunrpc/rpc_hout.c: Likewise.
76810         * sunrpc/rpc_main.c: Likewise.
76811         * sunrpc/rpc_parse.c: Likewise.
76812         * sunrpc/rpc_parse.h: Likewise.
76813         * sunrpc/rpc_prot.c: Likewise.
76814         * sunrpc/rpc_sample.c: Likewise.
76815         * sunrpc/rpc_scan.c: Likewise.
76816         * sunrpc/rpc_scan.h: Likewise.
76817         * sunrpc/rpc_svcout.c: Likewise.
76818         * sunrpc/rpc_tblout.c: Likewise.
76819         * sunrpc/rpc_util.c: Likewise.
76820         * sunrpc/rpc_util.h: Likewise.
76821         * sunrpc/rpcinfo.c: Likewise.
76822         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76823         * sunrpc/rpcsvc/key_prot.x: Likewise.
76824         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76825         * sunrpc/rpcsvc/mount.x: Likewise.
76826         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76827         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76828         * sunrpc/rpcsvc/rex.x: Likewise.
76829         * sunrpc/rpcsvc/rstat.x: Likewise.
76830         * sunrpc/rpcsvc/rusers.x: Likewise.
76831         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76832         * sunrpc/rpcsvc/spray.x: Likewise.
76833         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76834         * sunrpc/rtime.c: Likewise.
76835         * sunrpc/svc.c: Likewise.
76836         * sunrpc/svc_auth.c: Likewise.
76837         * sunrpc/svc_authux.c: Likewise.
76838         * sunrpc/svc_raw.c: Likewise.
76839         * sunrpc/svc_run.c: Likewise.
76840         * sunrpc/svc_simple.c: Likewise.
76841         * sunrpc/svc_tcp.c: Likewise.
76842         * sunrpc/svc_udp.c: Likewise.
76843         * sunrpc/svc_unix.c: Likewise.
76844         * sunrpc/svcauth_des.c: Likewise.
76845         * sunrpc/xcrypt.c: Likewise.
76846         * sunrpc/xdr.c: Likewise.
76847         * sunrpc/xdr_array.c: Likewise.
76848         * sunrpc/xdr_float.c: Likewise.
76849         * sunrpc/xdr_mem.c: Likewise.
76850         * sunrpc/xdr_rec.c: Likewise.
76851         * sunrpc/xdr_ref.c: Likewise.
76852         * sunrpc/xdr_sizeof.c: Likewise.
76853         * sunrpc/xdr_stdio.c: Likewise.
76854
76855         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76856         handling.
76857
76858 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76859
76860         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76861
76862 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76863
76864         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76865         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76866         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76867         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76868         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76869         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76870         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76871         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76872         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76873         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76874         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76875         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76876         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76877         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76878
76879 2010-07-26  Anton Blanchard  <anton@samba.org>
76880
76881         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76882         * malloc/arena.c (heap_trim): Likewise.
76883
76884 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76885
76886         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76887         here.  Not...
76888         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76889         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76890
76891 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76892
76893         * sysdeps/i386/elf/Makefile: New file.
76894
76895 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76896
76897         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76898         from fanotify_init.
76899         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76900         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76901
76902 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76903
76904         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76905         of strncasecmp_l.
76906         * sysdeps/multiarch/strcmp.S: Likewise.
76907
76908 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76909
76910         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76911         strncase_l-nonascii.
76912         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76913         Add strncase_l-ssse3.
76914         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76915         * sysdeps/x86_64/strcmp.S: Likewise.
76916         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76917         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76918         * sysdeps/x86_64/strncase.S: New file.
76919         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76920         * sysdeps/x86_64/strncase_l.S: New file.
76921         * string/Makefile (strop-tests): Add strncasecmp.
76922         * string/test-strncasecmp.c: New file.
76923
76924         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76925         warning.
76926
76927         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76928         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76929
76930 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76931
76932         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76933
76934 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76935
76936         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76937         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76938         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76939
76940 2010-05-01  Alan Modra  <amodra@gmail.com>
76941
76942         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76943         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76944         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76945         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76946         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76947         tidying.  Don't tail-call __sigjmp_save for static lib.
76948         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76949         save location.
76950         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76951         (CALL_MCOUNT): Add eh info, and nop after bl.
76952         (TAIL_CALL_SYSCALL_ERROR): New macro.
76953         (PSEUDO_RET): Use it.
76954         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76955         Correct save location of integer regs and cr.
76956         (_dl_profile_resolve): Correct cr save location.  Delete nops
76957         after bl when SHARED.  Reduce cfi size a little by better
76958         placement of cfi directives.
76959         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76960         make a stack frame.  Instead use parm save area as a temp.
76961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76962         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76964         Don't make a stack frame for parent, use parm save area.
76965         Increase child stack frame to 112 bytes.  Don't save unused reg,
76966         and adjust reg usage.  Set up cfi on error recovery and
76967         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76969         (__makecontext): Add dummy nop after jump to exit.
76970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76971         Use correct parm save area and cr save, reduce stack frame.
76972         Correct cfi for possible PSEUDO_RET frame setup.
76973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76974         Branch to local label emitted by PSEUDO_RET rather than
76975         __syscall_error.
76976
76977 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76978
76979         [BZ #11904]
76980         * locale/programs/locale.c (print_assignment): New function.
76981         (show_locale_vars): Use it.
76982
76983 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76984
76985         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76986         field.
76987         (struct statfs64): Likewise.
76988         (_STATFS_F_FLAGS): Define.
76989         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76990         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76991         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76992         (ST_VALID): Define locally.
76993         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76994         __statvfs_getflags, use the provided value.
76995         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76996         __ASSUME_STATFS_F_FLAGS.
76997
76998         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76999
77000         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
77001         Add sys/fanotify.h.
77002         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
77003         fanotify_mask for GLIBC_2.13.
77004         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
77005         fanotify_init and fanotify_mark.
77006         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
77007         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
77008
77009         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
77010         Add prlimit.
77011         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
77012         prlimit64 for GLIBC_2.13.
77013         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
77014         prlimit64.
77015         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
77016         syscall.
77017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
77018         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
77019         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
77020         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
77021         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
77022         add prlimit alias.
77023         * sysdeps/unix/sysv/linux/prlimit.c: New file.
77024
77025         [BZ #11903]
77026         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
77027         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
77028
77029         * nss/Makefile: Add rules to build and run tst-nss-test1.
77030         * shlib-versions: Add entry for libnss_test1.
77031         * nss/nss_test1.c: New file.
77032         * nss/tst-nss-test1.c: New file.
77033
77034         * nss/nsswitch.c (__nss_database_custom): Define new variable.
77035         (__nss_configure_lookup): Set appropriate entry in
77036         __nss_configure_lookup to true.
77037         * nss/nsswitch.h: Define enum with indeces of databases in
77038         databases and __nss_database_custom arrays.  Declare
77039         __nss_database_custom.
77040         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
77041         to avoid using nscd when custom rules are installed.
77042         * nss/getXXbyYY_r.c: Likewise.
77043         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
77044
77045         * nss/nss_files/files-parse.c: Whitespace fixes.
77046
77047 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
77048
77049         [BZ #11883]
77050         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
77051         * posix/fnmatch_loop.c: Likewise.
77052
77053 2010-07-17  Andi Kleen  <ak@linux.intel.com>
77054
77055         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
77056         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
77057         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
77058         * Versions.def [GLIBC_2.13]: Add.
77059
77060 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
77061
77062         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77063         Also fail if tpwd after pwuid call is NULL.
77064
77065 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77066
77067         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
77068         when converting to ms.
77069
77070 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77071
77072         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
77073         EOPNOTSUPP errors with ENOTTY.
77074         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
77075         EOPNOTSUPP errors with ENOTTY.
77076
77077 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
77078
77079         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
77080         Add strcasecmp_l-ssse3.
77081         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
77082         strcasecmp.
77083         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
77084         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
77085         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
77086
77087 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
77088
77089         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
77090
77091         * string/Makefile (strop-tests): Add strcasecmp.
77092         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
77093         strcasecmp_l-nonascii.
77094         (gen-as-const-headers): Add locale-defines.sym.
77095         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
77096         * sysdeps/x86_64/strcasecmp.S: New file.
77097         * sysdeps/x86_64/strcasecmp_l.S: New file.
77098         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
77099         * sysdeps/x86_64/locale-defines.sym: New file.
77100         * string/test-strcasecmp.c: New file.
77101
77102         * string/test-strcasestr.c: Test both ends of the range of characters.
77103         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
77104
77105 2010-07-29  Roland McGrath  <roland@redhat.com>
77106
77107         [BZ #11856]
77108         * manual/locale.texi (Yes-or-No Questions): Fix example code.
77109
77110 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
77111
77112         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
77113         for ld.so.
77114
77115 2010-07-27  Andreas Schwab  <schwab@redhat.com>
77116
77117         * manual/memory.texi (Malloc Tunable Parameters): Document
77118         M_PERTURB.
77119
77120 2010-07-26  Roland McGrath  <roland@redhat.com>
77121
77122         [BZ #11840]
77123         * configure.in (-fgnu89-inline check): Set and substitute
77124         gnu89_inline, not libc_cv_gnu89_inline.
77125         * configure: Regenerated.
77126         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
77127
77128 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
77129
77130         * string/test-strnlen.c: New file.
77131         * string/Makefile (strop-tests): Add strnlen.
77132         * string/tester.c (test_strnlen): Add a few more test cases.
77133         * string/tst-strlen.c: Better error reporting.
77134
77135         * sysdeps/x86_64/strnlen.S: New file.
77136
77137 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
77138
77139         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
77140         lower-latency instructions.
77141
77142 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
77143
77144         * string/test-strcasestr.c: New file.
77145         * string/test-strstr.c: New file.
77146         * string/Makefile (strop-tests): Add strstr and strcasestr.
77147         * string/str-two-way.h: Don't undefine MAX.
77148         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
77149
77150 2010-07-21  Andreas Schwab  <schwab@redhat.com>
77151
77152         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77153         strcasestr-nonascii.
77154         (CFLAGS-strcasestr-nonascii.c): Define.
77155         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
77156         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
77157         Remove unused attribute.
77158
77159 2010-07-20  Roland McGrath  <roland@redhat.com>
77160
77161         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
77162         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
77163         ld.so.cache was broken.  With it, there is no way to disable dsocaps
77164         like LD_HWCAP_MASK can disable hwcaps.
77165
77166 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77167
77168         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
77169
77170 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
77171
77172         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
77173         call in strcasestr.
77174         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
77175         __strcasestr_sse42_nonascii.
77176         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
77177         strcasestr-nonascii.c.
77178         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
77179
77180 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
77181
77182         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
77183         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
77184         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
77185         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
77186
77187 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
77188
77189         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
77190         fcntl.
77191
77192 2010-07-06  Andreas Schwab  <schwab@redhat.com>
77193
77194         [BZ #11577]
77195         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
77196         dl_signal_cerror.
77197
77198 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
77199
77200         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
77201         _PC_PIPE_BUF using F_GETPIPE_SZ.
77202
77203 2010-07-05  Roland McGrath  <roland@redhat.com>
77204
77205         * manual/arith.texi (Rounding Functions): Fix rint description
77206         implicit in round description.
77207
77208 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
77209
77210         * elf/Makefile: Fix linking for a few tests to make recent linker
77211         happy.
77212
77213 2010-06-30  Andreas Schwab  <schwab@redhat.com>
77214
77215         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
77216         $(common-objpfx)libc_nonshared.a.
77217
77218 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
77219
77220         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
77221         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
77222         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77223         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77224         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
77225         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
77226         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77227         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
77229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
77230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
77231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
77233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
77235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
77236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
77237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
77238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
77240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
77242         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
77243         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
77244         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
77245         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
77246         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
77247         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
77248         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
77249         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
77250         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
77251         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
77252         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
77253         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
77254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
77255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
77256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
77257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
77258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
77259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
77260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
77261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
77262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
77263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
77264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
77265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
77266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
77267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
77268
77269 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
77270
77271         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
77272         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
77273         * string/memmove.c (memmove): Renamed to ...
77274         (MEMMOVE): ...this.  Default to memmove.
77275         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
77276         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
77277         (END_CHK): Define.
77278         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77279         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
77280         mempcpy-ssse3-back memmove-ssse3-back.
77281         * sysdeps/x86_64/multiarch/bcopy.S: New file .
77282         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
77283         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
77284         * sysdeps/x86_64/multiarch/memcpy.S: New file.
77285         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
77286         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
77287         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
77288         * sysdeps/x86_64/multiarch/memmove.c: New file.
77289         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
77290         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
77291         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
77292         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
77293         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
77294         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
77295         Define.
77296         (index_Fast_Copy_Backward): Define.
77297         (HAS_ARCH_FEATURE): Define.
77298         (HAS_FAST_REP_STRING): Define.
77299         (HAS_FAST_COPY_BACKWARD): Define.
77300
77301 2010-06-21  Andreas Schwab  <schwab@redhat.com>
77302
77303         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77304         Restore proper fallback handling.
77305
77306 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
77307
77308         [BZ #11701]
77309         * posix/group_member.c (__group_member): Correct checking loop.
77310
77311         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
77312         OOM in getpwuid_r correctly.  Return error number when the caller
77313         should return, otherwise -1.
77314         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
77315         call returning > 0 value.
77316         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
77317
77318 2010-06-07  Andreas Schwab  <schwab@redhat.com>
77319
77320         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
77321         libc_nonshared.a from targets in modules-names.
77322
77323 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
77324
77325         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
77326         requires it.
77327
77328 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
77329
77330         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
77331         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
77332         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
77333         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
77334
77335 2010-06-02  Andreas Schwab  <schwab@redhat.com>
77336
77337         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
77338
77339 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
77340
77341         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
77342         and F_GETPIPE_SZ.
77343         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
77344         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
77345         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
77346         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
77347         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
77348         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
77349
77350 2010-06-14  Roland McGrath  <roland@redhat.com>
77351
77352         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
77353
77354 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
77355
77356         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
77357         __REDIRECT followed by __THROW.
77358         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
77359         * posix/getopt.h (getopt): Likewise.
77360
77361 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77362
77363         * hurd/lookup-at.c (__file_name_lookup_at): Accept
77364         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
77365         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
77366         in AT_FLAGS.
77367         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
77368         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
77369
77370 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
77371
77372         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
77373
77374 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
77375
77376         [BZ #11640]
77377         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77378         Properly check family and model.
77379
77380 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
77381
77382         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
77383
77384 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
77385
77386         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
77387
77388 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
77389
77390         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
77391         symbol reference.
77392
77393 2010-05-19  Andreas Schwab  <schwab@redhat.com>
77394
77395         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
77396         symbol reference.
77397
77398 2010-05-21  Andreas Schwab  <schwab@redhat.com>
77399
77400         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
77401         and internal_recvmmsg.
77402         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
77403         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
77404         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
77405         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
77406
77407         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
77408         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
77409         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
77410
77411 2010-05-20  Andreas Schwab  <schwab@redhat.com>
77412
77413         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
77414
77415 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
77416
77417         POWER7 optimizations.
77418         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
77419         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
77420
77421 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
77422
77423         * version.h: Update for 2.13 development version.
77424
77425 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
77426
77427         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
77428         exceptions.  Return 0.
77429
77430 2010-05-07  Roland McGrath  <roland@redhat.com>
77431
77432         * elf/ldconfig.c (main): Add a const.
77433
77434 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
77435
77436         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
77437         (args_options): Add no-idn option.
77438         (ahosts_keys_int): Add idn_flags to ai_flags.
77439         (parse_option): Handle 'i' option to clear idn_flags.
77440
77441         * malloc/malloc.c (_int_free): Possible race in the most recently
77442         added check.  Only act on the data if no current modification
77443         happened.
77444
77445 See ChangeLog.17 for earlier changes.